Skip to content

Commit 29d4993

Browse files
LD_LIBRARY_PATH passthrough
1 parent ba997ef commit 29d4993

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

.github/workflows/testing_wheels.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ jobs:
3838
cibw:
3939
build: "cp36-win_amd64 cp37-win_amd64 cp38-win_amd64 cp39-win_amd64"
4040
env:
41-
# Note: Location of env does not matter.
4241
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
4342
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
4443
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
4544
CIBW_BEFORE_ALL_LINUX: "bash build_tools/cuda_install.sh && echo $PATH"
46-
# overwriting PATH is breaking Python - need to add to PATH somehow?
4745
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
4947
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"
5248
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
5349
# due to package and module name conflict have to temporarily move it away to run tests
5450
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
@@ -60,39 +56,10 @@ jobs:
6056
- uses: actions/setup-python@v2
6157

6258
# 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
8459
- name: cuda-toolkit
8560
if: ${{ matrix.os == 'ubuntu-20.04' }}
8661
uses: Jimver/[email protected]
8762

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-
9663
- name: Install cibuildwheel and twine
9764
run: python -m pip install cibuildwheel==1.11.0
9865

0 commit comments

Comments
 (0)