mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-04-20 06:49:29 +00:00
remove make pylib-copy command (#249)
Fix #216 Remove `make pylib-copy`
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)'
|
||||
|
||||
3
.github/workflows/ut-backup.yml
vendored
3
.github/workflows/ut-backup.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user