Skip to content
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

TE with threading build #1092

Merged
merged 9 commits into from
Aug 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions transformer_engine/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ON)

project(transformer_engine LANGUAGES CUDA CXX)

if(NOT DEFINED NVTE_MAX_BUILD_THREADS)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --threads 4")
else()
timmoon10 marked this conversation as resolved.
Show resolved Hide resolved
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --threads ${NVTE_MAX_BUILD_THREADS}")
timmoon10 marked this conversation as resolved.
Show resolved Hide resolved
endif()

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG} -G")
endif()
Expand Down
Loading