开发者

Detect BLAS/LAPACK vendors using CMake

开发者 https://www.devze.com 2023-03-10 04:54 出处:网络
So my code wants to include different header files when occurs to different BLAS/LAPACK vendors. Are there开发者_JAVA百科 any predefined macros or something like that make me check it?CMake 2.8+ ships

So my code wants to include different header files when occurs to different BLAS/LAPACK vendors. Are there开发者_JAVA百科 any predefined macros or something like that make me check it?


CMake 2.8+ ships with FindBLAS.cmake FindLAPACK.cmake. You may want to review the comments in the files from your local cmake install: cmake-2.8.5/share/cmake/Modules/FindBLAS.cmake. This module supports a variety of BLAS and LAPACK implementations. For example:

set( ENV{BLA_VENDOR} "ATLAS" )
find_package( BLAS REQUIRED )

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消