File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,6 @@ MACRO(CHECK_ALL_LIBRARIES LIBRARIES OPENMP_TYPE OPENMP_LIBRARY _name _list _flag
292
292
SET (_found_tbb TRUE )
293
293
ELSE ()
294
294
SET (lib_names ${_library} )
295
- message ("!!!!! lib_names: ${lib_names} .${SHARED_SO_VERSION_NUM} " )
296
295
FIND_LIBRARY (${_prefix} _${_library} _LIBRARY NAMES ${lib_names} ${lib_names} .${SHARED_SO_VERSION_NUM} )
297
296
ENDIF ()
298
297
MARK_AS_ADVANCED (${_prefix} _${_library} _LIBRARY)
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ set_property(
23
23
${MKL_ROOT} /lib ${MKL_ROOT} /lib/intel64 ${MKL_ROOT} /lib/intel64_win ${MKL_ROOT} /lib/win-x64)
24
24
25
25
if (UNIX )
26
- # if(USE_STATIC_MKL AND 0)
27
- if (USE_STATIC_MKL)
26
+ # Disable it for it will caused torch_cuda_linalg link failed.
27
+ # Link: https://github.com/pytorch/pytorch/issues/146551#issuecomment-2655672240
28
+ # TODO: if torch_cuda_linalg USE mkl, need to find link mkl directly, but not torch_cpu.so.
29
+ if (USE_STATIC_MKL AND NOT USE_CUDA)
28
30
foreach (MKL_LIB_PATH IN LISTS MKL_LIBRARIES)
29
31
if (NOT EXISTS "${MKL_LIB_PATH} " )
30
32
continue ()
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ find_package(Torch REQUIRED)
11
11
add_library (custom_ops SHARED op.cpp)
12
12
set_property (TARGET custom_ops PROPERTY CXX_STANDARD 17)
13
13
14
+ message ("!!!!!!!!! TORCH_LIBRARIES: ${TORCH_LIBRARIES} " )
14
15
target_compile_features (custom_ops PUBLIC cxx_range_for)
15
16
target_link_libraries (custom_ops "${TORCH_LIBRARIES} " )
16
17
target_compile_definitions (custom_ops PRIVATE custom_ops_EXPORTS)
You can’t perform that action at this time.
0 commit comments