Skip to content

Commit 909ac68

Browse files
hardcoded PATH
1 parent 4f64548 commit 909ac68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/testing_wheels.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
4646
# due to package and module name conflict have to temporarily move it away to run tests
4747
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
48+
CIBW_TEST_COMMAND_LINUX: "echo $PATH"
4849
CIBW_TEST_COMMAND_LINUX: "which nvcc"
4950
CIBW_TEST_COMMAND: "pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
5051
steps:
@@ -62,7 +63,10 @@ jobs:
6263
# - checks suggest CUDA is on the path...what now?
6364
# - might not be getting to CIBW
6465
# - tested CIBW_ENVIRONMENT: PATH=$PATH, no visible change
65-
# - new test: `which nvcc` in CIBW
66+
# - new test: `which nvcc` in CIBW (FAILED)
67+
# - next up:
68+
# - try https://github.com/OpenNMT/CTranslate2/blob/master/.github/workflows/ci.yml
69+
# - CIBW_BEFORE_ALL_LINUX: <script to install CUDA / add to PATH>
6670
# - testing GPU on non-GPU machine will fail
6771
- name: cuda-toolkit
6872
if: ${{ matrix.os == 'ubuntu-20.04' }}
@@ -84,7 +88,7 @@ jobs:
8488

8589
- name: Build wheels
8690
env:
87-
CIBW_ENVIRONMENT: "PATH=$PATH"
91+
CIBW_ENVIRONMENT: "PATH=$PATH:/usr/local/cuda-11.2/bin"
8892
run: python -m cibuildwheel --output-dir wheelhouse
8993

9094
- uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)