Skip to content
Snippets Groups Projects
Commit f38410ef authored by Milan Jaros's avatar Milan Jaros
Browse files

add use case

parent 6a2890a9
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,10 @@ Along with the boundary conditions at the boundary nodes, we have a ...@@ -34,6 +34,10 @@ Along with the boundary conditions at the boundary nodes, we have a
linear system for U. We can apply the Jacobi iteration to estimate the linear system for U. We can apply the Jacobi iteration to estimate the
solution to the linear system. solution to the linear system.
Usage of the application: `poisson use_case`\
 `poisson 0` (tiny)\
 `poisson 1` (small)\
 `poisson 2` (large)
## STEP 0: Create git repository (10%) ## STEP 0: Create git repository (10%)
...@@ -45,7 +49,7 @@ Provide compilation script for your application (the script should run independe ...@@ -45,7 +49,7 @@ Provide compilation script for your application (the script should run independe
## STEP 2: Analysis of the application (10%) ## STEP 2: Analysis of the application (10%)
Use `Arm map` (module Forge) to analyze a sequential run of your application with given use case (`tests/large`). Identify the most time consuming regions that can be parallelized by OpenMP. Use `Arm map` (module Forge) to analyze a sequential run of your application with given use case (`large`). Identify the most time consuming regions that can be parallelized by OpenMP.
## STEP 3: Use OpenMP to run the application in parallel (10%) ## STEP 3: Use OpenMP to run the application in parallel (10%)
...@@ -60,8 +64,7 @@ Create script that automatically check correctness of your application for at le ...@@ -60,8 +64,7 @@ Create script that automatically check correctness of your application for at le
1. Implement time measurement for all parallel regions using omp_get_wtime(). 1. Implement time measurement for all parallel regions using omp_get_wtime().
2. Create script for run strong scalability measurement (PBS script). 2. Create script for run strong scalability measurement (PBS script).
3. Evaluate strong scalability of measured regions up to 128 threads and different thread affinity (compact, scatter, balanced, none). 3. Evaluate strong scalability of measured regions up to 128 threads and different thread affinity (compact, scatter, balanced, none).
4. Evaluate behaviour for domain specific parameters of your applications (project dependent, maybe none). (Blocking implementation for this project) 4. Prepare charts for all measurements.
5. Prepare charts for all measurements.
## STEP 6: Presentation of your project (10%) ## STEP 6: Presentation of your project (10%)
......
...@@ -74,7 +74,7 @@ int main(int argc, char* argv[]) ...@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
//Check args //Check args
if (argc < 2) { if (argc < 2) {
printf("USAGE:\tpoisson 0 (tiny)\n\tpoisson 1 (large)\n"); printf("USAGE:\tpoisson 0 (tiny)\n\tpoisson 1 (small)\n\tpoisson 2 (large)\n");
return 0; return 0;
} }
...@@ -86,8 +86,14 @@ int main(int argc, char* argv[]) ...@@ -86,8 +86,14 @@ int main(int argc, char* argv[])
ny = 16; ny = 16;
it_max = 1000; it_max = 1000;
} }
//large //small
if (type == 1) { if (type == 1) {
nx = 64;
ny = 64;
it_max = 100000;
}
//large
if (type == 2) {
nx = 256; nx = 256;
ny = 256; ny = 256;
it_max = 100000; it_max = 100000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment