mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-22 08:04:25 +00:00
Progetti svolti di laboratorio di High Performance Computing
.idea | ||
.media | ||
.vscode | ||
common | ||
OpenMP | ||
.clang-format | ||
.gitignore | ||
CONTRIBUTING.md | ||
README.md |
**Stefano Pigozzi** + **Caterina Gazzotti** + **Fabio Zanichelli** | Topic OpenMP | High Performance Computing Laboratory | Unimore
C code optimization using NVIDIA CUDA
Assignment #2
Every team is called to optimize (parallellize) the execution time of the assigned applications on multi-processor system.
Expected outcomes
- Repository of the code (github/gitlab is ok, or .zip )
- Oral presentation (5 min + 5 min Q&A) of your work
Assigned application
Group 3:
OpenMP/linear-algebra/kernels/atax
Developed features
- Workaround for unavailable
M_PI
- Enabled
POLYBENCH_TIME
by default - Enabled extra warnings by default
- Applied the maximum level of compiler optimizations
- Replaced
tmp
array with a iteration-local variable - Allowed the addition of
CFLAGS
frommake
calls - Disabled
make
output - Created
make bench
target to run a script performing multiple parametrized tests on the code to determine the best optimizations - Moved
polybench_start_instruments
to include theinit_array
function
Results
TBD
Validation
- Compiler used: nvcc
- Jetson Nano used:
8
To reproduce the obtained results:
-
Clone the repository on a Jetson Nano:
$ git clone https://github.com/Steffo99/unimore-hpc-assignments
-
Access our group's assigned folder:
$ cd unimore-hpc-1/OpenMP/linear-algebra/kernels/atax
-
Checkout the exact commit the tests were executed on:
$ git checkout TBD
-
Run the benchmarking script:
$ make bench