Fix bootstrapping mechanism (#278)

Co-authored-by: Binyang Li <binyli@microsoft.com>
Co-authored-by: Pashupati Kumar <74680231+pash-msft@users.noreply.github.com>
This commit is contained in:
Changho Hwang
2024-03-26 19:24:24 -07:00
committed by GitHub
parent bc465aefcd
commit 5ba6ce00c7
12 changed files with 81 additions and 50 deletions

View File

@@ -9,5 +9,5 @@ FetchContent_MakeAvailable(nanobind)
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS *.cpp)
nanobind_add_module(mscclpp_py_test ${SOURCES})
set_target_properties(mscclpp_py_test PROPERTIES OUTPUT_NAME _ext)
target_link_libraries(mscclpp_py_test PRIVATE ${GPU_LIBRARIES} mscclpp_static)
target_include_directories(mscclpp_py_test PRIVATE ${GPU_INCLUDE_DIRS})
target_link_libraries(mscclpp_py_test PRIVATE mscclpp_static ${GPU_LIBRARIES})
target_include_directories(mscclpp_py_test SYSTEM PRIVATE ${GPU_INCLUDE_DIRS})