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
TransformerEngine
Commits
91b754e0
Unverified
Commit
91b754e0
authored
Oct 24, 2023
by
niboshi
Committed by
GitHub
Oct 23, 2023
Browse files
Fix CMakeList.txt to build as a sub-project (#479)
Signed-off-by:
niboshi
<
niboshi000@gmail.com
>
parent
427c736d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
transformer_engine/CMakeLists.txt
transformer_engine/CMakeLists.txt
+2
-2
transformer_engine/common/CMakeLists.txt
transformer_engine/common/CMakeLists.txt
+1
-1
No files found.
transformer_engine/CMakeLists.txt
View file @
91b754e0
...
...
@@ -14,12 +14,12 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ON)
project
(
transformer_engine LANGUAGES CUDA CXX
)
list
(
APPEND
CMAKE_CUDA_FLAGS
"
--threads 4"
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
--threads 4"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
set
(
CMAKE_CUDA_FLAGS_DEBUG
"
${
CMAKE_CUDA_FLAGS_DEBUG
}
-G"
)
endif
()
list
(
A
PPEND CMAKE_MODULE_PATH
"
${
CMAKE_SOURCE_DIR
}
/cmake/"
)
list
(
P
RE
PEND CMAKE_MODULE_PATH
"
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/cmake/"
)
find_package
(
CUDAToolkit REQUIRED cublas nvToolsExt
)
find_package
(
CUDNN REQUIRED cudnn
)
find_package
(
Python COMPONENTS Interpreter Development REQUIRED
)
...
...
transformer_engine/common/CMakeLists.txt
View file @
91b754e0
...
...
@@ -41,7 +41,7 @@ target_include_directories(transformer_engine PUBLIC
# Check for cuDNN frontend API
set
(
CUDNN_FRONTEND_INCLUDE_DIR
"
${
CMAKE_SOURCE_DIR
}
/../3rdparty/cudnn-frontend/include"
)
"
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/../
../
3rdparty/cudnn-frontend/include"
)
if
(
NOT EXISTS
"
${
CUDNN_FRONTEND_INCLUDE_DIR
}
"
)
message
(
FATAL_ERROR
"Could not find cuDNN frontend API. "
...
...
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