howto:libcusmm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:libcusmm [2014/03/28 14:33] – oschuett | howto:libcusmm [2014/10/27 18:16] – oschuett | ||
---|---|---|---|
Line 2: | Line 2: | ||
=== Step 1: Go to the directory libcusmm directory === | === Step 1: Go to the directory libcusmm directory === | ||
< | < | ||
- | $ cd $CP2K_ROOT/ | + | $ cd $CP2K_ROOT/ |
</ | </ | ||
- | === Step 2: Run the script tune.py === | + | === Step 2: Adopt tune.py for your Environment === |
+ | The '' | ||
+ | <code python> | ||
+ | ... | ||
+ | def gen_jobfile(outdir, | ||
+ | t = "/ | ||
+ | all_exe_src = [basename(fn) for fn in glob(outdir+t+" | ||
+ | all_exe = sorted([fn.replace(" | ||
+ | |||
+ | output = "# | ||
+ | output += "# | ||
+ | output += "# | ||
+ | output += "# | ||
+ | output += " | ||
+ | output += " | ||
+ | output += " | ||
+ | output += " | ||
+ | output += " | ||
+ | output += "cd $SLURM_SUBMIT_DIR \n" | ||
+ | output += " | ||
+ | output += " | ||
+ | for exe in all_exe: | ||
+ | output += "aprun -b -n 1 -N 1 -d 8 make -j 16 %s & | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | === Step 3: Run the script tune.py === | ||
The script takes as arguments the blocksizes you want to add to libcusmm. For example, if your system contains blocks of size 5 and 8 type: | The script takes as arguments the blocksizes you want to add to libcusmm. For example, if your system contains blocks of size 5 and 8 type: | ||
< | < | ||
Line 42: | Line 68: | ||
Currently, up to 10000 launchers are benchmarked by one // | Currently, up to 10000 launchers are benchmarked by one // | ||
- | === Step 3: Submit Jobs === | + | === Step 4: Adopt submit.py for your Environment === |
+ | The script '' | ||
+ | |||
+ | === Step 5: Submit Jobs === | ||
Each tune-directory contains a job file. | Each tune-directory contains a job file. | ||
- | Since, there might be many tune-directories the convenience script '' | + | Since, there might be many tune-directories the convenience script '' |
When '' | When '' | ||
Line 82: | Line 111: | ||
</ | </ | ||
- | === Step 4: Collect Results === | + | === Step 5: Collect Results === |
Run '' | Run '' | ||
< | < |