DotandLog

@DotandLog

Joined on Sep 8, 2020

  • contributed by < dotandlog > Source code. :::danger Choose one problem (A, B, or C) from Quiz1, translate it from C code to a complete RISC-V assembly program, and include the relevant test data. ::: In computer graphics, calculating lighting and shading often involves normalizing vectors, which requires computing the reciprocal square root of a number $\frac{1}{\sqrt{x}}$. This operation is computationally expensive if done directly. The Fast Inverse Square Root algorithm, made famous by its use in Quake III Arena, provides a fast approximation.
     Like  Bookmark
  • Basic Information This container is tailored for ASTRA, featuring the Intel-based toolkit with icx, icpx, and ifort installed. Additionally, it includes MPI, MKL, netCDF-C, and netCDF-Fortran libraries, all compiled using Intel's compiler. The path of the compilers and libraries: $ icx --version Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/intel/oneapi/compiler/2024.1/bin/compiler
     Like  Bookmark
  • contributed by < DotandLog > 第一週測驗題 測驗 1 測驗 2 第二週測驗題 測驗 1 測驗 2 測驗 3
     Like  Bookmark
  • contributed by < DotandLog > 開發環境 $ gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 $ lscpu Architecture: aarch64 CPU op-mode(s): 64-bit Byte Order: Little Endian
     Like  Bookmark
  • contributed by < DotandLog > 題目 測驗 1 補完以下程式碼: uint64_t next_pow2(uint64_t x) { x |= x >> 1;
     Like  Bookmark
  • contributed by < DotandLog > Reverse Linked List Implementation You can find the source code here C code struct ListNode* reverseList(struct ListNode* head) struct ListNode* reverseList(struct ListNode* head) { struct ListNode* curr = head;
     Like  Bookmark
  • Problem description: This problem is based on LeetCode 1929 from 楊淳皓. motivation:In assignment 1,I tried to practice pointer in assembly,so in assignment 2,I want to practice with array. Code implementation Origin C code is From 楊淳皓 #include <stdio.h>
     Like  Bookmark