Skip to content

Commit da990ca

Browse files
committed
workaround windows cuda installation issue
1 parent 291f6a7 commit da990ca

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
"C:/Program Files (x86)/Microsoft Visual Studio/Installer/VisualStudioSetup.exe" --channelUri https://aka.ms/vs/17/release.LTSC.17.12/channel --locale en-US
7777
C:/msys64/usr/bin/wget.exe https://developer.download.nvidia.com/compute/cuda/12.6.0/network_installers/cuda_12.6.0_windows_network.exe
78-
./cuda_12.6.0_windows_network.exe -s cudart_12.6 nvcc_12.6 visual_studio_integration_12.6 nvtx_12.6 curand_dev_12.6
78+
./cuda_12.6.0_windows_network.exe -s cudart_12.6 nvcc_12.6 nvtx_12.6 curand_dev_12.6
7979
- uses: actions/setup-python@v5
8080
with:
8181
python-version: |
@@ -166,37 +166,37 @@ jobs:
166166
[
167167
build-linux-all,
168168
build-linux-aarch64-all,
169-
# build-windows-pybind,
169+
build-windows-pybind,
170170
build-mac,
171171
]
172172
permissions:
173173
contents: write
174174
steps:
175-
# - name: Download wheels
176-
# uses: actions/download-artifact@v4
177-
# with:
178-
# name: windows-wheel-3.9
179-
# path: wheelhouse
180-
# - name: Download wheels
181-
# uses: actions/download-artifact@v4
182-
# with:
183-
# name: windows-wheel-3.10
184-
# path: wheelhouse
185-
# - name: Download wheels
186-
# uses: actions/download-artifact@v4
187-
# with:
188-
# name: windows-wheel-3.11
189-
# path: wheelhouse
190-
# - name: Download wheels
191-
# uses: actions/download-artifact@v4
192-
# with:
193-
# name: windows-wheel-3.12
194-
# path: wheelhouse
195-
# - name: Download wheels
196-
# uses: actions/download-artifact@v4
197-
# with:
198-
# name: windows-wheel-3.13
199-
# path: wheelhouse
175+
- name: Download wheels
176+
uses: actions/download-artifact@v4
177+
with:
178+
name: windows-wheel-3.9
179+
path: wheelhouse
180+
- name: Download wheels
181+
uses: actions/download-artifact@v4
182+
with:
183+
name: windows-wheel-3.10
184+
path: wheelhouse
185+
- name: Download wheels
186+
uses: actions/download-artifact@v4
187+
with:
188+
name: windows-wheel-3.11
189+
path: wheelhouse
190+
- name: Download wheels
191+
uses: actions/download-artifact@v4
192+
with:
193+
name: windows-wheel-3.12
194+
path: wheelhouse
195+
- name: Download wheels
196+
uses: actions/download-artifact@v4
197+
with:
198+
name: windows-wheel-3.13
199+
path: wheelhouse
200200
- name: Download wheels
201201
uses: actions/download-artifact@v4
202202
with:

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ def build_sapien(sapien_source_dir, sapien_build_dir):
142142
cmake_args += ["-DCMAKE_TOOLCHAIN_FILE=toolchains/macos.toolchain.cmake"]
143143

144144
if sys.platform == "win32":
145-
cmake_args += [f"-DBUILD_TESTING=Off"]
145+
cmake_args += ["-DBUILD_TESTING=Off"]
146+
cmake_args += [
147+
"-DCMAKE_CUDA_COMPILER=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/bin/nvcc.exe",
148+
"-DCUDA_TOOLKIT_ROOT_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6"
149+
]
146150

147151
deps_dir = os.path.join(sapien_build_dir, "_sapien_deps")
148152
cmake_args += [f"-DFETCHCONTENT_BASE_DIR={deps_dir}"]

0 commit comments

Comments
 (0)