Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
03c2c6d1
Unverified
Commit
03c2c6d1
authored
Nov 29, 2021
by
Jinjing Zhou
Committed by
GitHub
Nov 29, 2021
Browse files
Fix #3497 (#3546)
parent
a7b5085a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
CMakeLists.txt
CMakeLists.txt
+10
-3
No files found.
CMakeLists.txt
View file @
03c2c6d1
...
@@ -34,6 +34,7 @@ dgl_option(BUILD_CPP_TEST "Build cpp unittest executables" OFF)
...
@@ -34,6 +34,7 @@ dgl_option(BUILD_CPP_TEST "Build cpp unittest executables" OFF)
dgl_option
(
LIBCXX_ENABLE_PARALLEL_ALGORITHMS
"Enable the parallel algorithms library. This requires the PSTL to be available."
OFF
)
dgl_option
(
LIBCXX_ENABLE_PARALLEL_ALGORITHMS
"Enable the parallel algorithms library. This requires the PSTL to be available."
OFF
)
dgl_option
(
USE_S3
"Build with S3 support"
OFF
)
dgl_option
(
USE_S3
"Build with S3 support"
OFF
)
dgl_option
(
USE_HDFS
"Build with HDFS support"
OFF
)
# Set env HADOOP_HDFS_HOME if needed
dgl_option
(
USE_HDFS
"Build with HDFS support"
OFF
)
# Set env HADOOP_HDFS_HOME if needed
dgl_option
(
REBUILD_LIBXSMM
"Clean LIBXSMM build cache at every build"
OFF
)
# Set env HADOOP_HDFS_HOME if needed
dgl_option
(
USE_EPOLL
"Build with epoll for socket communicator"
OFF
)
dgl_option
(
USE_EPOLL
"Build with epoll for socket communicator"
OFF
)
# Set debug compile option for gdb, only happens when -DCMAKE_BUILD_TYPE=DEBUG
# Set debug compile option for gdb, only happens when -DCMAKE_BUILD_TYPE=DEBUG
...
@@ -230,9 +231,15 @@ endif(NOT MSVC)
...
@@ -230,9 +231,15 @@ endif(NOT MSVC)
# Compile LIBXSMM
# Compile LIBXSMM
if
((
NOT MSVC
)
AND USE_LIBXSMM
)
if
((
NOT MSVC
)
AND USE_LIBXSMM
)
add_custom_target
(
libxsmm COMMAND make realclean COMMAND make -j BLAS=0
if
(
REBUILD_LIBXSMM
)
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/third_party/libxsmm
add_custom_target
(
libxsmm COMMAND make realclean COMMAND make -j BLAS=0
)
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/third_party/libxsmm
)
else
(
REBUILD_LIBXSMM
)
add_custom_target
(
libxsmm COMMAND make -j BLAS=0
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/third_party/libxsmm
)
endif
(
REBUILD_LIBXSMM
)
add_dependencies
(
dgl libxsmm
)
add_dependencies
(
dgl libxsmm
)
list
(
APPEND DGL_LINKER_LIBS -L
${
CMAKE_SOURCE_DIR
}
/third_party/libxsmm/lib/ xsmm
)
list
(
APPEND DGL_LINKER_LIBS -L
${
CMAKE_SOURCE_DIR
}
/third_party/libxsmm/lib/ xsmm
)
endif
((
NOT MSVC
)
AND USE_LIBXSMM
)
endif
((
NOT MSVC
)
AND USE_LIBXSMM
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment