mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Build EigenBlas as static library (#44747)
Summary: Fixes https://github.com/pytorch/pytorch/issues/43709 Pull Request resolved: https://github.com/pytorch/pytorch/pull/44747 Reviewed By: ezyang Differential Revision: D23717927 Pulled By: malfet fbshipit-source-id: c46fbcf5a55895cb984dd4c5301fbcb784fc17d5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b63b684394
commit
a5cc151b8c
2
cmake/External/EigenBLAS.cmake
vendored
2
cmake/External/EigenBLAS.cmake
vendored
@ -43,7 +43,7 @@ set(EigenBlas_SRCS
|
||||
${EIGEN_BLAS_SRC_DIR}/f2c/complexdots.c
|
||||
)
|
||||
|
||||
add_library(eigen_blas ${EigenBlas_SRCS})
|
||||
add_library(eigen_blas STATIC ${EigenBlas_SRCS})
|
||||
|
||||
# We build static versions of eigen blas but link into a shared library, so they need PIC.
|
||||
set_property(TARGET eigen_blas PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
Reference in New Issue
Block a user