Intel MKL & ATLAS 测试

来源:互联网 发布:国内量化交易软件 编辑:程序博客网 时间:2024/05/18 09:04


    picture from 


MKL test example source code here,   good material  introduction to Intel MKL 


- 定义环境变量

MKL_PATH=$MKL/lib/[32, 64, em64t]

MKL_INCLUDE=$MKL/include

注意系统构架(architecture) 是32 or 64

-编译(intel compiler)链接

icc/ifort example1.c/example.f90 -o example -L$MKL_PATH -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_lapack95_lp64 -liomp5 -lpthread -I$(MKL_INCLUDE) 


 两个问题: 

1, c++ 下的 mkl/blas 调用

2, mkl 稀疏求解器跟petsc 比较


BLAS test with ATLAS, test example source code here


-编译(intel compiler)链接

icc example.c -L$ATLAS/lib -lblas -lcblas -latlas -I$ATLAS/include -o test


In Atlas Readme file, it says:  for uniprocessor lib, compiler as:

-Llibdir -llapack -lcblas -lf77blas -latlas


路径报错的,或者找不到库文件的,请检查库文件,头文件路径是否正确。

    

         

0 0