@@ -38,17 +38,13 @@ jobs:
38
38
cibw :
39
39
build : " cp36-win_amd64 cp37-win_amd64 cp38-win_amd64 cp39-win_amd64"
40
40
env :
41
- # Note: Location of env does not matter.
42
41
CIBW_BUILD : " ${{ matrix.cibw.build || '*' }}"
43
42
CIBW_ARCHS : " ${{ matrix.cibw.arch || 'auto' }}"
44
43
CIBW_MANYLINUX_X86_64_IMAGE : " ${{ matrix.cibw.manylinux_image }}"
45
44
CIBW_BEFORE_ALL_LINUX : " bash build_tools/cuda_install.sh && echo $PATH"
46
- # overwriting PATH is breaking Python - need to add to PATH somehow?
47
45
CIBW_ENVIRONMENT_LINUX : PATH=$PATH:/usr/local/cuda-11/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11/lib64
48
- CIBW_ENVIRONMENT_PASS_LINUX : PATH
46
+ CIBW_ENVIRONMENT_PASS_LINUX : PATH LD_LIBRARY_PATH
49
47
CIBW_BEFORE_BUILD_MACOS : " brew install libomp"
50
- # *cuda.so was not built, suspect `which nvcc` is null
51
- # CIBW_BEFORE_BUILD_LINUX: "echo $PATH && which nvcc"
52
48
CIBW_REPAIR_WHEEL_COMMAND_MACOS : " "
53
49
# due to package and module name conflict have to temporarily move it away to run tests
54
50
CIBW_BEFORE_TEST : " mv {package}/qsimcirq /tmp"
@@ -60,39 +56,10 @@ jobs:
60
56
- uses : actions/setup-python@v2
61
57
62
58
# Install NVCC on Ubuntu to include GPU in the wheel.
63
- # TODO: some remaining issues
64
- # - `which nvcc` finds nothing? (need to add to path?)
65
- # - nope, confirmed working at workflow level
66
- # - might still be unavailable lower down? seems unlikely
67
- # - still skipping GPU-based tests
68
- # - checks suggest CUDA is on the path...what now?
69
- # - might not be getting to CIBW
70
- # - tested CIBW_ENVIRONMENT: PATH=$PATH, no visible change
71
- # - new test: `which nvcc` in CIBW (FAILED)
72
- # - hardcoded PATH generates absurd errors?
73
- # - but the first wheel-build works.
74
- # - reran with fixes and the result wheel didn't have GPU
75
- # - CIBW_ENVIRONMENT_PASS_LINUX: env vars might not be going through?
76
- # - failed
77
- # - CUDA install script in CIBW_BEFORE_ALL_LINUX
78
- # - tries and fails to reboot
79
- # - might be related to "drivers req'd outside container" issue
80
- # - attempt fix w/pre-installed dependencies
81
- # - no luck, but might require separate out-of-container install?
82
- # - failed again, trying OOC install + no pre-install <==========
83
- # - testing GPU on non-GPU machine will fail
84
59
- name : cuda-toolkit
85
60
if : ${{ matrix.os == 'ubuntu-20.04' }}
86
61
87
62
88
- # - name: First check
89
- # if: ${{ matrix.os == 'ubuntu-20.04' }}
90
- # run: echo "Cuda install location ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
91
-
92
- # - name: Second check
93
- # if: ${{ matrix.os == 'ubuntu-20.04' }}
94
- # run: echo $PATH
95
-
96
63
- name : Install cibuildwheel and twine
97
64
run : python -m pip install cibuildwheel==1.11.0
98
65
0 commit comments