Skip to content

Commit 1c6f3bc

Browse files
authored
Merge pull request #517 from vzhurba01/100-static-runtime
Statically link to CUDA Runtime
2 parents 4d0b5a6 + 56532c9 commit 1c6f3bc

30 files changed

+9636
-9211
lines changed

.github/workflows/build-and-test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ jobs:
139139
# CIBW mounts the host filesystem under /host
140140
CIBW_ENVIRONMENT_LINUX: >
141141
CUDA_PATH=/host/${{ env.CUDA_PATH }}
142+
LIBRARY_PATH=/host/${{ env.CUDA_PATH }}/lib
142143
CUDA_BINDINGS_PARALLEL_LEVEL=${{ env.CUDA_BINDINGS_PARALLEL_LEVEL }}
143144
CIBW_ENVIRONMENT_WINDOWS: >
144145
CUDA_HOME="$(cygpath -w ${{ env.CUDA_PATH }})"
146+
LIB="${CUDA_HOME}\\lib\\x64;${LIB}"
145147
CUDA_BINDINGS_PARALLEL_LEVEL=${{ env.CUDA_BINDINGS_PARALLEL_LEVEL }}
146148
with:
147149
package-dir: ./cuda_bindings/

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ __pycache__/
1717
# CUDA Python specific (auto-generated)
1818
cuda_bindings/cuda/bindings/_bindings/cydriver.pxd
1919
cuda_bindings/cuda/bindings/_bindings/cydriver.pyx
20+
cuda_bindings/cuda/bindings/_bindings/cyruntime.pxi
21+
cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd
22+
cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx
23+
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd
24+
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx
2025
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd
2126
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx
2227
cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx

cuda_bindings/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ recursive-include cuda/ *.pyx *.pxd
22
# at least with setuptools 75.0.0 this folder was added erroneously
33
# to the payload, causing file copying to the build environment failed
44
exclude cuda/bindings cuda?bindings
5+
exclude cuda/bindings/_bindings cuda?bindings?_bindings

cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2024 NVIDIA Corporation. All rights reserved.
1+
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
#
33
# Please refer to the NVIDIA end user license agreement (EULA) associated
44
# with this source code for terms and conditions that govern your use of

cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2024 NVIDIA Corporation. All rights reserved.
1+
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
#
33
# Please refer to the NVIDIA end user license agreement (EULA) associated
44
# with this source code for terms and conditions that govern your use of

cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2024 NVIDIA Corporation. All rights reserved.
1+
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
#
33
# Please refer to the NVIDIA end user license agreement (EULA) associated
44
# with this source code for terms and conditions that govern your use of

cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2024 NVIDIA Corporation. All rights reserved.
1+
# Copyright 2021-2025 NVIDIA Corporation. All rights reserved.
22
#
33
# Please refer to the NVIDIA end user license agreement (EULA) associated
44
# with this source code for terms and conditions that govern your use of

cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in

+1,470
Large diffs are not rendered by default.

cuda_bindings/cuda/bindings/_bindings/cyruntime.pxi.in

+1,496
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)