File tree 9 files changed +33
-27
lines changed 9 files changed +33
-27
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ from cuda.bindings.cydriver cimport *
2
2
3
3
cdef extern from * :
4
4
"""
5
+ #ifdef _MSC_VER
5
6
#pragma message ( "The cuda.ccuda module is deprecated and will be removed in a future release, " \
6
7
"please switch to use the cuda.bindings.cydriver module instead." )
8
+ #else
9
+ #warning The cuda.ccuda module is deprecated and will be removed in a future release, \
10
+ please switch to use the cuda.bindings.cydriver module instead.
11
+ #endif
7
12
"""
Original file line number Diff line number Diff line change 1
1
from cuda.bindings.cydriver cimport *
2
-
3
- cdef extern from * :
4
- """
5
- #pragma message ( "The cuda.ccuda module is deprecated and will be removed in a future release, " \
6
- "please switch to use the cuda.bindings.cydriver module instead." )
7
- """
8
-
9
-
10
2
from cuda.bindings import cydriver
11
3
__pyx_capi__ = cydriver.__pyx_capi__
12
4
del cydriver
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ from cuda.bindings.cyruntime cimport *
2
2
3
3
cdef extern from * :
4
4
"""
5
+ #ifdef _MSC_VER
5
6
#pragma message ( "The cuda.ccudart module is deprecated and will be removed in a future release, " \
6
7
"please switch to use the cuda.bindings.cyruntime module instead." )
8
+ #else
9
+ #warning The cuda.ccudart module is deprecated and will be removed in a future release, \
10
+ please switch to use the cuda.bindings.cyruntime module instead.
11
+ #endif
7
12
"""
Original file line number Diff line number Diff line change 1
1
from cuda.bindings.cyruntime cimport *
2
-
3
- cdef extern from * :
4
- """
5
- #pragma message ( "The cuda.ccudart module is deprecated and will be removed in a future release, " \
6
- "please switch to use the cuda.bindings.cyruntime module instead." )
7
- """
8
-
9
-
10
2
from cuda.bindings import cyruntime
11
3
__pyx_capi__ = cyruntime.__pyx_capi__
12
4
del cyruntime
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ from cuda.bindings.cynvrtc cimport *
2
2
3
3
cdef extern from * :
4
4
"""
5
+ #ifdef _MSC_VER
5
6
#pragma message ( "The cuda.cnvrtc module is deprecated and will be removed in a future release, " \
6
7
"please switch to use the cuda.bindings.cynvrtc module instead." )
8
+ #else
9
+ #warning The cuda.cnvrtc module is deprecated and will be removed in a future release, \
10
+ please switch to use the cuda.bindings.cynvrtc module instead.
11
+ #endif
7
12
"""
Original file line number Diff line number Diff line change 1
1
from cuda.bindings.cynvrtc cimport *
2
-
3
- cdef extern from * :
4
- """
5
- #pragma message ( "The cuda.cnvrtc module is deprecated and will be removed in a future release, " \
6
- "please switch to use the cuda.bindings.cynvrtc module instead." )
7
- """
8
-
9
-
10
2
from cuda.bindings import cynvrtc
11
3
__pyx_capi__ = cynvrtc.__pyx_capi__
12
4
del cynvrtc
Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ from cuda.bindings.driver import *
5
5
6
6
cdef extern from * :
7
7
"""
8
+ #ifdef _MSC_VER
8
9
#pragma message ( "The cuda.cuda module is deprecated and will be removed in a future release, " \
9
10
"please switch to use the cuda.bindings.driver module instead." )
11
+ #else
12
+ #warning The cuda.cuda module is deprecated and will be removed in a future release, \
13
+ please switch to use the cuda.bindings.driver module instead.
14
+ #endif
10
15
"""
11
16
12
17
13
18
_warnings.warn(" The cuda.cuda module is deprecated and will be removed in a future release, "
14
- " please switch to use the cuda.bindings.driver module instead." , DeprecationWarning , stacklevel = 2 )
19
+ " please switch to use the cuda.bindings.driver module instead." , UserWarning , stacklevel = 2 )
Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ from cuda.bindings.runtime import *
5
5
6
6
cdef extern from * :
7
7
"""
8
+ #ifdef _MSC_VER
8
9
#pragma message ( "The cuda.cudart module is deprecated and will be removed in a future release, " \
9
10
"please switch to use the cuda.bindings.runtime module instead." )
11
+ #else
12
+ #warning The cuda.cudart module is deprecated and will be removed in a future release, \
13
+ please switch to use the cuda.bindings.runtime module instead.
14
+ #endif
10
15
"""
11
16
12
17
13
18
_warnings.warn(" The cuda.cudart module is deprecated and will be removed in a future release, "
14
- " please switch to use the cuda.bindings.runtime module instead." , DeprecationWarning , stacklevel = 2 )
19
+ " please switch to use the cuda.bindings.runtime module instead." , UserWarning , stacklevel = 2 )
Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ from cuda.bindings.nvrtc import *
5
5
6
6
cdef extern from * :
7
7
"""
8
+ #ifdef _MSC_VER
8
9
#pragma message ( "The cuda.nvrtc module is deprecated and will be removed in a future release, " \
9
10
"please switch to use the cuda.bindings.nvrtc module instead." )
11
+ #else
12
+ #warning The cuda.nvrtc module is deprecated and will be removed in a future release, \
13
+ please switch to use the cuda.bindings.nvrtc module instead.
14
+ #endif
10
15
"""
11
16
12
17
13
18
_warnings.warn(" The cuda.nvrtc module is deprecated and will be removed in a future release, "
14
- " please switch to use the cuda.bindings.nvrtc module instead." , DeprecationWarning , stacklevel = 2 )
19
+ " please switch to use the cuda.bindings.nvrtc module instead." , UserWarning , stacklevel = 2 )
You can’t perform that action at this time.
0 commit comments