1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-26 10:04:23 +00:00

Fix inner README

This commit is contained in:
Steffo 2022-11-13 18:11:53 +01:00
parent 46dedaef45
commit a8d181c508
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,10 +1,12 @@
##Available Benchmarks # Available Benchmarks
### datamining
####datamining
* correlation * correlation
* covariance * covariance
####linear-algebra/kernels ### linear-algebra/kernels
* 2mm * 2mm
* 3mm * 3mm
* atax * atax
@ -21,14 +23,16 @@
* trisolv * trisolv
* trmm * trmm
####linear-algebra/solvers ### linear-algebra/solvers
* durbin * durbin
* dynprog * dynprog
* gramschmidt * gramschmidt
* lu * lu
* ludcmp * ludcmp
####stencils ### stencils
* adi * adi
* convolution-2d * convolution-2d
* convolution-3d * convolution-3d
@ -37,27 +41,28 @@
* jacobi-2d-imper * jacobi-2d-imper
* seidel-2d * seidel-2d
Modifying Codes ## Modifying Codes
------------------
Parameters such as the input sizes, data type, and threshold for GPU-CPU output comparison can be modified using constants Parameters such as the input sizes, data type, and threshold for GPU-CPU output comparison can be modified using constants
within the codes and .h files. After modifying, run `make clean` then `make` on relevant code for modifications to take effect in resulting executable. within the codes and .h files. After modifying, run `make clean` then `make` on relevant code for modifications to take effect in resulting executable.
###Parameter Configuration: ### Parameter Configuration
#### Input Size
####Input Size:
By default the `STANDARD_DATASET` as defined in the `.cuh/.h` file is used as the input size. The dataset choice can be adjusted from `STANDARD_DATASET` to other By default the `STANDARD_DATASET` as defined in the `.cuh/.h` file is used as the input size. The dataset choice can be adjusted from `STANDARD_DATASET` to other
options (`MINI_DATASET`, `SMALL_DATASET`, etc) in the `.cuh/.h` file, the dataset size can be adjusted by defining the input size manually in the `.cuh/.h` file, or options (`MINI_DATASET`, `SMALL_DATASET`, etc) in the `.cuh/.h` file, the dataset size can be adjusted by defining the input size manually in the `.cuh/.h` file, or
the input size can be changed by simply adjusting the `STANDARD_DATASET` so the program has different input dimensions. the input size can be changed by simply adjusting the `STANDARD_DATASET` so the program has different input dimensions.
###`DATA_TYPE` (in `.cuh/.h` files): #### `DATA_TYPE` (in `.cuh/.h` files):
By default, the `DATA_TYPE` used in these codes are `float` that can be changed to `double` by changing the `DATA_TYPE` typedef. Note that in OpenCL, the `DATA_TYPE` needs to be changed in both the .h and .cl files, as the .cl files contain the kernel code and is compiled separately at run-time. By default, the `DATA_TYPE` used in these codes are `float` that can be changed to `double` by changing the `DATA_TYPE` typedef. Note that in OpenCL, the `DATA_TYPE` needs to be changed in both the .h and .cl files, as the .cl files contain the kernel code and is compiled separately at run-time.
#### Other available options
####Other available options
These are passed as macro definitions during compilation time These are passed as macro definitions during compilation time
(e.g `-Dname_of_the_option`) or can be added with a `#define` to the code. (e.g `-Dname_of_the_option`) or can be added with a `#define` to the code.
- `POLYBENCH_STACK_ARRAYS` (only applies to allocation on host): - `POLYBENCH_STACK_ARRAYS` (only applies to allocation on host):
use stack allocation instead of malloc [default: off] use stack allocation instead of malloc [default: off]
- `POLYBENCH_DUMP_ARRAYS`: dump all live-out arrays on stderr [default: off] - `POLYBENCH_DUMP_ARRAYS`: dump all live-out arrays on stderr [default: off]