-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Misc] Add MKL library path for standalone installation #5510
Conversation
To trigger regression tests:
|
ce56a7c
to
9a76f4a
Compare
dgl_sparse/CMakeLists.txt
Outdated
@@ -50,5 +50,12 @@ target_include_directories(${LIB_DGL_SPARSE_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/t | |||
message(STATUS "DGL include directories: ${DGL_INCLUDE_DIRS}") | |||
target_include_directories(${LIB_DGL_SPARSE_NAME} PRIVATE ${DGL_INCLUDE_DIRS}) | |||
target_link_directories(${LIB_DGL_SPARSE_NAME} PRIVATE ${DGL_BUILD_DIR} "${DGL_BUILD_DIR}/third_party/dmlc-core") | |||
|
|||
# Torch CMake sets up MKL library path only for conda distribution | |||
# WA for standalone MKL installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's WA?.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workaround, I changed it to be more readable
dgl_sparse/CMakeLists.txt
Outdated
@@ -50,5 +50,12 @@ target_include_directories(${LIB_DGL_SPARSE_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/t | |||
message(STATUS "DGL include directories: ${DGL_INCLUDE_DIRS}") | |||
target_include_directories(${LIB_DGL_SPARSE_NAME} PRIVATE ${DGL_INCLUDE_DIRS}) | |||
target_link_directories(${LIB_DGL_SPARSE_NAME} PRIVATE ${DGL_BUILD_DIR} "${DGL_BUILD_DIR}/third_party/dmlc-core") | |||
|
|||
# Torch CMake sets up MKL library path only for conda distribution | |||
# WA for standalone MKL installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, end the sentence with dot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
9a76f4a
to
0df796c
Compare
FYI @czkkkkkk |
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
Why does this PR fix #5474 ? In the issue, you mentioned that "libxsmm can use different compiler from what was used in cmake". How does this PR fix the problem of libxsmm? |
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
Description
Fix sparse library link issue, caused by wrong Torch MKL CMake settings
Resolves issue: #5474
Checklist
Please feel free to remove inapplicable items for your PR.
Changes