Skip to content
Snippets Groups Projects
Commit 3acb15d9 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Merge branch 'karolina-amd-threads' into 'master'

Karolina amd threads

See merge request !353
parents c7b63d57 4192ec91
No related branches found
No related tags found
1 merge request!353Karolina amd threads
Pipeline #24390 passed with warnings
...@@ -92,6 +92,32 @@ $ icc -w source/cblas_dgemmx.c source/common_func.c -o cblas_dgemmx.x -I$MKL_INC ...@@ -92,6 +92,32 @@ $ icc -w source/cblas_dgemmx.c source/common_func.c -o cblas_dgemmx.x -I$MKL_INC
In this example, we compile and link the cblas_dgemm example, using LP64 interface to threaded MKL and Intel OMP threads implementation. In this example, we compile and link the cblas_dgemm example, using LP64 interface to threaded MKL and Intel OMP threads implementation.
#### Karolina AMD Threading
Threading on Karolina AMD processors requires [TBB][2].
**MKL threads**
Example 1
```code
icpc -O2 -qopenmp -DMKL_ILP64 -I"${MKLROOT}/include" source.cpp -o program.x -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -ltbb -lstdc++ -lp
thread -lm -ldl
```
Example 2
```code
icpc -qopenmp mkltest.cpp -o mkltest.x -lmkl_tbb_thread -ltbb -mkl
```
**Intel/GNU compilator**
```code
[Monday 10:23 AM] Krupcik Lukas
g++ -fopenmp mkl_test.cpp -o test -lmkl_tbb_thread -lmkl_core -lmkl_intel_ilp64 -ltbb
```
## LAPACKE C Interface ## LAPACKE C Interface
MKL includes LAPACKE C Interface to LAPACK. However, note that although Intel is the author of LAPACKE, the LAPACKE header files are not present in MKL. For this reason, we have prepared the LAPACKE module, which includes Intel's LAPACKE headers from official LAPACK, which you can use to compile code using the LAPACKE interface against MKL. MKL includes LAPACKE C Interface to LAPACK. However, note that although Intel is the author of LAPACKE, the LAPACKE header files are not present in MKL. For this reason, we have prepared the LAPACKE module, which includes Intel's LAPACKE headers from official LAPACK, which you can use to compile code using the LAPACKE interface against MKL.
...@@ -101,6 +127,7 @@ MKL includes LAPACKE C Interface to LAPACK. However, note that although Intel is ...@@ -101,6 +127,7 @@ MKL includes LAPACKE C Interface to LAPACK. However, note that although Intel is
Read more on [Intel website][c], in particular the [MKL user guide][d]. Read more on [Intel website][c], in particular the [MKL user guide][d].
[1]: #examples [1]: #examples
[2]: ../intel-tbb/
[a]: http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mklman/index.htm [a]: http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mklman/index.htm
[b]: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor [b]: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment