mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Set BLAS_LIBRARIES to ${MKL_LIBRARIES} for MKL case (#72806)
This reverts [suggestion](https://github.com/pytorch/pytorch/pull/49647#discussion_r677737470) proposed to https://github.com/pytorch/pytorch/pull/49647
Which is somehow sufficient to workaround symptoms of https://github.com/pytorch/pytorch/issue/72653
I.e. before this change, `BLAS_LIBRARIES` were set to `caffe2::mkl`
which is an interface library with link property set as follows:
59dd84cab6/cmake/public/mkl.cmake (L10-L12)
This commit is contained in:
parent
59dd84cab6
commit
17b3ba148d
|
|
@ -216,7 +216,7 @@ elseif(BLAS STREQUAL "MKL")
|
|||
set(CAFFE2_USE_MKL ON)
|
||||
set(BLAS_INFO "mkl")
|
||||
set(BLAS_FOUND 1)
|
||||
set(BLAS_LIBRARIES caffe2::mkl)
|
||||
set(BLAS_LIBRARIES ${MKL_LIBRARIES})
|
||||
else()
|
||||
message(WARNING "MKL could not be found. Defaulting to Eigen")
|
||||
set(CAFFE2_USE_EIGEN_FOR_BLAS ON)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user