summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorJakub Benda <jacob.benda@gmail.com>2019-05-16 08:00:21 (GMT)
committerJakub Benda <jacob.benda@gmail.com>2019-05-16 09:35:37 (GMT)
commit89ab54c11239f4832668ecca6a0b0b9edf112bd8 (patch)
tree86ab34241e48d8c024e64406615ea4aba19d46ca /Tests
parent82c6ec964db9ff3cc6bece9bc0667e5ec691f02d (diff)
downloadCMake-89ab54c11239f4832668ecca6a0b0b9edf112bd8.zip
CMake-89ab54c11239f4832668ecca6a0b0b9edf112bd8.tar.gz
CMake-89ab54c11239f4832668ecca6a0b0b9edf112bd8.tar.bz2
FindBLAS: Choose MKL arch based on BLA_VENDOR
Recently, FindBLAS has been extended with additional library search path based on the environment variable MKLROOT. However, the choice of the Intel MKL architecture (IA-32 vs Intel64) was based on unrelated (and possibly undefined) size of integer. This commit changes the selection of the Intel MKL architecture to instead consider the variable BLA_VENDOR, if available. So, if the environment variable MKLROOT is defined and BLA_VENDOR=Intel10_32, then $ENV{MKLROOT}/lib/ia32_<OS> will be added to the search path (OS = lin, win, or mac). Similarly, if MKLROOT is defined and BLA_VENDOR=Intel10_64lp or BLA_VENDOR=Intel10_64ilp, then the path $ENV{MKLROOT}/intel64_<OS> will be used. If either MKLROOT or BLA_VENDOR is undefined, no additional search path on top of LD_LIBRARY_PATH / DYLD_LIBRARY_PATH / LIB is be added.
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions