Skip to content

Commit

Permalink
Merge pull request #218 from vzhurba01/patch-11.8.5
Browse files Browse the repository at this point in the history
Update __pyx_capi__ due to layout change
  • Loading branch information
vzhurba01 authored Nov 6, 2024
2 parents e10a4c4 + 74069a6 commit 965a695
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions cuda_bindings/cuda/ccuda.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ cdef extern from *:
#pragma message ( "The cuda.ccuda module is deprecated and will be removed in a future release, " \
"please switch to use the cuda.bindings.cydriver module instead." )
"""


from cuda.bindings import cydriver
__pyx_capi__ = cydriver.__pyx_capi__
del cydriver
5 changes: 5 additions & 0 deletions cuda_bindings/cuda/ccudart.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ cdef extern from *:
#pragma message ( "The cuda.ccudart module is deprecated and will be removed in a future release, " \
"please switch to use the cuda.bindings.cyruntime module instead." )
"""


from cuda.bindings import cyruntime
__pyx_capi__ = cyruntime.__pyx_capi__
del cyruntime
5 changes: 5 additions & 0 deletions cuda_bindings/cuda/cnvrtc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ cdef extern from *:
#pragma message ( "The cuda.cnvrtc module is deprecated and will be removed in a future release, " \
"please switch to use the cuda.bindings.cynvrtc module instead." )
"""


from cuda.bindings import cynvrtc
__pyx_capi__ = cynvrtc.__pyx_capi__
del cynvrtc
6 changes: 2 additions & 4 deletions cuda_bindings/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ def do_cythonize(extensions):
["cuda/bindings/*.pyx"],
# public (deprecated, to be removed)
["cuda/*.pyx"],
# tests
["tests/*.pyx"],
]

for sources in sources_list:
Expand Down Expand Up @@ -260,9 +258,9 @@ def finalize_options(self):
setup(
version=versioneer.get_version(),
ext_modules=do_cythonize(extensions),
packages=find_packages(include=["cuda.cuda", "cuda.cuda.*", "cuda.cuda.bindings", "cuda.cuda.bindings._bindings", "cuda.cuda.bindings._lib", "cuda.cuda.bindings._lib.cyruntime", "tests"]),
packages=find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime"]),
package_data=dict.fromkeys(
find_packages(include=["cuda.cuda", "cuda.cuda.*", "cuda.cuda.bindings", "cuda.cuda.bindings._bindings", "cuda.cuda.bindings._lib", "cuda.cuda.bindings._lib.cyruntime", "tests"]),
find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime"]),
["*.pxd", "*.pyx", "*.py", "*.h", "*.cpp"],
),
cmdclass=cmdclass,
Expand Down

0 comments on commit 965a695

Please sign in to comment.