summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorHE, Tao <sighingnow@gmail.com>2019-03-10 09:21:13 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-03-10 09:34:50 -0700
commit98c54e9fa6949c0c730e5c4b1dbb5bf12a084d4c (patch)
tree7f291f3680965cf7f7c2d0b52096ddff1b32948c /cmake
parenta6c4ea66dd78b28c9c0aecec64d4cf0b14ba55ff (diff)
downloadpytorch-98c54e9fa6949c0c730e5c4b1dbb5bf12a084d4c.tar.gz
pytorch-98c54e9fa6949c0c730e5c4b1dbb5bf12a084d4c.tar.bz2
pytorch-98c54e9fa6949c0c730e5c4b1dbb5bf12a084d4c.zip
When openblas exists, "OpenBLAS_FOUND" is defined, rather than "OPENBLAS_FOUND". (#17841)
Summary: See https://github.com/pytorch/pytorch/blob/master/cmake/Modules/FindOpenBLAS.cmake#L36 This typo lead to cmake fails to detect openblas on ubuntu. Pull Request resolved: https://github.com/pytorch/pytorch/pull/17841 Differential Revision: D14400261 Pulled By: soumith fbshipit-source-id: 287e019e122230cf6b70ab1ea94e5c514f429c88
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Dependencies.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index 690f251d51..297eacb174 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -133,7 +133,7 @@ if (NOT BUILD_ATEN_MOBILE)
set(AT_MKL_ENABLED 0)
set(AT_MKL_MT 0)
set(USE_BLAS 1)
- if(NOT (ATLAS_FOUND OR OPENBLAS_FOUND OR MKL_FOUND OR VECLIB_FOUND))
+ if(NOT (ATLAS_FOUND OR OpenBLAS_FOUND OR MKL_FOUND OR VECLIB_FOUND))
message(WARNING "Preferred BLAS (" ${BLAS} ") cannot be found, now searching for a general BLAS library")
find_package(BLAS)
if (NOT BLAS_FOUND)