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
0fbfbdd5
Unverified
Commit
0fbfbdd5
authored
Jun 16, 2025
by
gilbertlee-amd
Committed by
GitHub
Jun 16, 2025
Browse files
CMake builds require explicit opt-in by setting NIC_EXEC_ENABLE=1 (#186)
parent
4e2be38c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
CMakeLists.txt
CMakeLists.txt
+7
-2
No files found.
CMakeLists.txt
View file @
0fbfbdd5
...
...
@@ -56,14 +56,19 @@ set( CMAKE_CXX_FLAGS "${flags_str} ${CMAKE_CXX_FLAGS}")
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-O3 -L
${
ROCM_PATH
}
/lib"
)
include_directories
(
${
ROCM_PATH
}
/include
)
find_library
(
IBVERBS_LIBRARY ibverbs
)
find_path
(
IBVERBS_INCLUDE_DIR infiniband/verbs.h
)
if
(
DEFINED ENV{DISABLE_NIC_EXEC}
)
message
(
STATUS
"Disabling NIC Executor support"
)
elseif
(
IBVERBS_LIBRARY AND IBVERBS_INCLUDE_DIR
)
message
(
STATUS
"Found ibverbs:
${
IBVERBS_LIBRARY
}
. Building with NIC executor support. Can set DISABLE_NIC_EXEC=1 to disable"
)
if
(
DEFINED ENV{ENABLE_NIC_EXEC}
)
add_definitions
(
-DNIC_EXEC_ENABLED
)
link_libraries
(
ibverbs
)
else
()
message
(
STATUS
"For CMake builds, NIC executor also requires explicit opt-in by setting NIC_EXEC_ENABLE=1"
)
endif
()
else
()
if
(
NOT IBVERBS_LIBRARY
)
message
(
WARNING
"IBVerbs library not found"
)
...
...
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