remove make pylib-copy command (#249)

Fix #216
Remove `make pylib-copy`
This commit is contained in:
Binyang Li
2024-01-19 12:29:15 -08:00
committed by GitHub
parent 1178a9ee47
commit 422c81f0f8
4 changed files with 4 additions and 8 deletions

View File

@@ -28,7 +28,6 @@ jobs:
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBYPASS_GPU_CHECK=ON -DUSE_CUDA=ON ..
make -j
make pylib-copy
workingDirectory: '$(System.DefaultWorkingDirectory)'
- task: DownloadSecureFile@1

View File

@@ -77,6 +77,5 @@ jobs:
script: |
set -e
export PATH=/usr/local/mpi/bin:$PATH
cd build && make pylib-copy
mpirun -tag-output -x MSCCLPP_HOME=$(System.DefaultWorkingDirectory) -np 8 python3 -m pytest ../python/test/test_mscclpp.py -x
mpirun -tag-output -x MSCCLPP_HOME=$(System.DefaultWorkingDirectory) -np 8 python3 -m pytest ./python/test/test_mscclpp.py -x
workingDirectory: '$(System.DefaultWorkingDirectory)'

View File

@@ -49,5 +49,4 @@ jobs:
- name: PyTests
run: |
set -e
cd build && make pylib-copy
mpirun --allow-run-as-root -tag-output -np 8 $(which pytest) ../python/test/test_mscclpp.py -x
mpirun --allow-run-as-root -tag-output -np 8 $(which pytest) ./python/test/test_mscclpp.py -x

View File

@@ -4,13 +4,12 @@
add_subdirectory(mscclpp)
add_subdirectory(test)
add_custom_target(pylib-copy)
add_custom_command(TARGET pylib-copy POST_BUILD
add_custom_target(pytest_lib_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/mscclpp/_mscclpp.*.so
${CMAKE_CURRENT_SOURCE_DIR}/mscclpp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/test/_ext.*.so
${CMAKE_CURRENT_SOURCE_DIR}/test/_cpp
COMMAND ${CMAKE_COMMAND} -E echo "Copy python libraries"
DEPENDS mscclpp_py mscclpp_py_test
)