Skip to content

Commit dcb343c

Browse files
rwgkleofang
andauthored
Rebase to CTK 12.9 (#597)
* Apply unreleased-12.9 on top of main as squash-commit. * Make driver_cu_result_explanations.py, runtime_cuda_error_explanations.py identical to main (this diff looks like an accident or oversight). * Make 4_CUDA_Libraries/conjugateGradientMultiBlockCG_test.py identical to main (this diff looks like an accident or oversight). * Change 12.8.0 → 12.9.0 under .github * ruff-format auto fix * Fix oversight: 12.8.0 → 12.9.0 * also include .pxi files * update release notes * `python -m cybind --generate nvjitlink nvvm` with CTK 12.9.0 headers. * driver_cu_result_explanations.py does not need any changes for CTK 12.9.0 * runtime_cuda_error_explanations.py does not need any changes for CTK 12.9.0 * Add back line in .gitignore that got lost by accident. * document sanitizer fix * Revert "Add back line in .gitignore that got lost by accident." This reverts commit bec052f. --------- Co-authored-by: Leo Fang <[email protected]> Co-authored-by: Leo Fang <[email protected]>
1 parent 9579678 commit dcb343c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+11663
-7019
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- "3.9"
3636
cuda-version:
3737
# Note: this is for build-time only.
38-
- "12.8.0"
38+
- "12.9.0"
3939
name: Build (${{ matrix.host-platform }}, Python ${{ matrix.python-version }}, CUDA ${{ matrix.cuda-version }})
4040
if: ${{ github.repository_owner == 'nvidia' }}
4141
permissions:
@@ -224,7 +224,7 @@ jobs:
224224
- "3.9"
225225
cuda-version:
226226
# Note: this is for test-time only.
227-
- "12.8.0"
227+
- "12.9.0"
228228
- "12.0.1"
229229
- "11.8.0"
230230
local-ctk:
@@ -239,7 +239,7 @@ jobs:
239239
include:
240240
- host-platform: linux-64
241241
python-version: "3.12"
242-
cuda-version: "12.8.0"
242+
cuda-version: "12.9.0"
243243
local-ctk: 1
244244
runner: H100
245245
name: Test (${{ matrix.host-platform }}, Python ${{ matrix.python-version }}, CUDA ${{ matrix.cuda-version }}, Runner ${{ matrix.runner }}, ${{ (matrix.local-ctk == '1' && 'local CTK') || 'CTK wheels' }})
@@ -270,7 +270,7 @@ jobs:
270270
- "3.12"
271271
cuda-version:
272272
# Note: this is for test-time only.
273-
- "12.8.0"
273+
- "12.9.0"
274274
- "11.8.0"
275275
local-ctk:
276276
- 1 # use mini CTK

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,21 @@ __pycache__/
1313
*.cpp
1414
!cuda_bindings/cuda/bindings/_lib/param_packer.cpp
1515
!cuda_bindings/cuda/bindings/_bindings/loader.cpp
16+
cache_driver
17+
cache_runtime
18+
cache_nvrtc
1619

1720
# CUDA Python specific (auto-generated)
1821
cuda_bindings/cuda/bindings/_bindings/cydriver.pxd
1922
cuda_bindings/cuda/bindings/_bindings/cydriver.pyx
20-
cuda_bindings/cuda/bindings/_bindings/cyruntime.pxi
2123
cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd
2224
cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx
2325
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd
2426
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx
2527
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd
2628
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx
2729
cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx
30+
cuda_bindings/cuda/bindings/_internal/nvvm.pyx
2831
cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd
2932
cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pyx
3033
cuda_bindings/cuda/bindings/_lib/cyruntime/utils.pxd
@@ -35,6 +38,8 @@ cuda_bindings/cuda/bindings/cydriver.pxd
3538
cuda_bindings/cuda/bindings/cydriver.pyx
3639
cuda_bindings/cuda/bindings/cyruntime.pxd
3740
cuda_bindings/cuda/bindings/cyruntime.pyx
41+
cuda_bindings/cuda/bindings/cyruntime_functions.pxi
42+
cuda_bindings/cuda/bindings/cyruntime_types.pxi
3843
cuda_bindings/cuda/bindings/cynvrtc.pxd
3944
cuda_bindings/cuda/bindings/cynvrtc.pyx
4045
cuda_bindings/cuda/bindings/driver.pxd

cuda_bindings/MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
recursive-include cuda/ *.pyx *.pxd
1+
recursive-include cuda/ *.pyx *.pxd *.pxi
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

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

+26-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# this software and related documentation outside the terms of the EULA
77
# is strictly prohibited.
88
#
9-
# This code was automatically generated with version 12.8.0. Do not modify it directly.
9+
# This code was automatically generated with version 12.9.0. Do not modify it directly.
1010
from cuda.bindings.cydriver cimport *
1111

1212
{{if 'cuGetErrorString' in found_functions}}
@@ -2214,6 +2214,31 @@ cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?
22142214
cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
22152215
{{endif}}
22162216

2217+
{{if 'cuLogsRegisterCallback' in found_functions}}
2218+
2219+
cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil
2220+
{{endif}}
2221+
2222+
{{if 'cuLogsUnregisterCallback' in found_functions}}
2223+
2224+
cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
2225+
{{endif}}
2226+
2227+
{{if 'cuLogsCurrent' in found_functions}}
2228+
2229+
cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
2230+
{{endif}}
2231+
2232+
{{if 'cuLogsDumpToFile' in found_functions}}
2233+
2234+
cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
2235+
{{endif}}
2236+
2237+
{{if 'cuLogsDumpToMemory' in found_functions}}
2238+
2239+
cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
2240+
{{endif}}
2241+
22172242
{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}
22182243

22192244
cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil

0 commit comments

Comments
 (0)