Skip to content

Commit

Permalink
Also include MKL_THREAD_LIB in link libraries for caffe2::mkl (#89378)
Browse files Browse the repository at this point in the history
Actually fixes pytorch/audio#2784 for
real; in my previous testing I didn't check if I could import
torchaudio; now torchaudio successfully imports.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: #89378
Approved by: https://github.com/soumith
  • Loading branch information
ezyang authored and pytorchmergebot committed Nov 20, 2022
1 parent 7b0d577 commit c099296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/public/mkl.cmake
Expand Up @@ -9,7 +9,7 @@ set_property(
${MKL_INCLUDE_DIR})
set_property(
TARGET caffe2::mkl PROPERTY INTERFACE_LINK_LIBRARIES
${MKL_LIBRARIES})
${MKL_LIBRARIES} ${MKL_THREAD_LIB})
# TODO: This is a hack, it will not pick up architecture dependent
# MKL libraries correctly; see https://github.com/pytorch/pytorch/issues/73008
set_property(
Expand Down

0 comments on commit c099296

Please sign in to comment.