mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fix missing mkl-dnn include paths (#117492)
Fixes #91968 and #100960 This commit fixes missing include paths by linking `caffe2_pybind11_state_gpu` against `caffe2::mkldnn` Pull Request resolved: https://github.com/pytorch/pytorch/pull/117492 Approved by: https://github.com/ezyang
This commit is contained in:
parent
46a8408fa1
commit
b1c3f9f1b9
1 changed files with 3 additions and 0 deletions
|
|
@ -1971,6 +1971,9 @@ if(BUILD_PYTHON)
|
|||
target_include_directories(caffe2_pybind11_state_gpu PRIVATE ${Caffe2_CPU_INCLUDE})
|
||||
target_link_libraries(caffe2_pybind11_state_gpu PRIVATE
|
||||
torch_library python::python pybind::pybind11)
|
||||
if(USE_MKLDNN)
|
||||
target_link_libraries(caffe2_pybind11_state_gpu PRIVATE caffe2::mkldnn)
|
||||
endif()
|
||||
if(WIN32)
|
||||
target_link_libraries(caffe2_pybind11_state_gpu PRIVATE onnx_proto)
|
||||
endif(WIN32)
|
||||
|
|
|
|||
Loading…
Reference in a new issue