This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision |
software:lapack:caviness [2020-03-11 10:55] – [Compiling with Intel and mkl library] anita | software:lapack:caviness [2021-04-27 16:21] (current) – external edit 127.0.0.1 |
---|
| |
<code> | <code> |
| workgroup -g <<investing-entity>> |
vpkg_devrequire intel | vpkg_devrequire intel |
ifort -mkl dgels-ex.f -o dgels-ex | ifort -mkl dgels-ex.f -o dgels-ex |
</code> | </code> |
</note> | </note> |
==== qsub file to test ==== | ==== sbatch file to test ==== |
| |
The ''ifort'' compiler with flag ''-mkl'' will compile and link to the threaded MKL libraries. Thus you should test in the threaded parallel environment, and export the number of slots to the ''MKL_NUM_THREAD'' environment variable. Remember to use our templates for threaded jobs which can be found in ''/opt/templates/slurm/generic/threads.qs'' as a starting point. Here is a simple ''test.qs'' based on the ''threads.qs'' template. | The ''ifort'' compiler with flag ''-mkl'' will compile and link to the threaded MKL libraries. Thus you should test in the threaded parallel environment, and export the number of slots to the ''MKL_NUM_THREAD'' environment variable. Remember to use our templates for threaded jobs which can be found in ''/opt/shared/templates/slurm/generic/threads.qs'' as a starting point. Here is a simple ''test.qs'' based on the ''threads.qs'' template. |
<file bash test.qs> | <file bash test.qs> |
#!/bin/bash -l | #!/bin/bash -l |
[(it_css:traine)@login01 nagex]$ more slurm-6718859.out | [(it_css:traine)@login01 nagex]$ more slurm-6718859.out |
-- OpenMP job setup complete: | -- OpenMP job setup complete: |
-- OMP_NUM_THREADS = 4 | -- OMP_THREAD_LIMIT = 4 |
-- OMP_PROC_BIND = true | -- OMP_PROC_BIND = true |
-- OMP_PLACES = cores | -- OMP_PLACES = cores |