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
one
TransferBench
Commits
d5039b70
Commit
d5039b70
authored
Dec 10, 2025
by
Gilbert Lee
Browse files
Revert "Use parallel-jobs to speed up the build. (#216)"
This reverts commit
321945de
.
parent
1f3e679b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
CMakeLists.txt
CMakeLists.txt
+0
-18
No files found.
CMakeLists.txt
View file @
d5039b70
...
...
@@ -105,11 +105,6 @@ if(NOT (("${CMAKE_CXX_COMPILER}" MATCHES ".*hipcc") OR ("${CMAKE_CXX_COMPILER}"
message
(
FATAL_ERROR
"On ROCm platform 'hipcc' or HIP-aware Clang must be used as C++ compiler."
)
endif
()
check_cxx_compiler_flag
(
"-parallel-jobs=12"
HAVE_PARALLEL_JOBS
)
if
(
HAVE_PARALLEL_JOBS
)
message
(
STATUS
"Parallel jobs enabled"
)
endif
()
## Check for Threads
find_package
(
Threads REQUIRED
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
...
...
@@ -168,10 +163,6 @@ if(IBVERBS_FOUND)
target_link_libraries
(
TransferBench PRIVATE
${
IBVERBS_LIBRARY
}
)
target_compile_definitions
(
TransferBench PRIVATE NIC_EXEC_ENABLED
)
endif
()
if
(
HAVE_PARALLEL_JOBS
)
target_compile_options
(
TransferBench PRIVATE -parallel-jobs=12
)
endif
()
target_link_libraries
(
TransferBench PRIVATE -fgpu-rdc
)
# Required when linking relocatable device code
target_link_libraries
(
TransferBench PRIVATE Threads::Threads
)
...
...
@@ -180,15 +171,6 @@ target_link_libraries(TransferBench PRIVATE hip::device)
target_link_libraries
(
TransferBench PRIVATE dl
)
target_link_libraries
(
TransferBench PRIVATE
${
NUMA_LIBRARY
}
)
target_link_libraries
(
TransferBench PRIVATE
${
HSA_LIBRARY
}
)
## Reserve 16GB for each linker job. Limit max number of linker jobs to 16
if
(
HAVE_PARALLEL_JOBS
)
math
(
EXPR num_linker_jobs
"(
${
memory_in_gb
}
+ 15) / 16"
)
if
(
${
num_linker_jobs
}
GREATER_EQUAL
"16"
)
set
(
num_linker_jobs
"16"
)
endif
()
message
(
STATUS
"Use
${
num_linker_jobs
}
jobs for linking"
)
target_link_options
(
TransferBench PRIVATE -parallel-jobs=
${
num_linker_jobs
}
)
# Use multiple threads to link
endif
()
rocm_install
(
TARGETS TransferBench COMPONENT devel
)
rocm_setup_version
(
VERSION
${
VERSION_STRING
}
)
...
...
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