File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ from ._backend cimport ( # noqa: E211
46
46
_backend_type,
47
47
)
48
48
49
+ import warnings
50
+
49
51
from .enum_types import backend_type
50
52
51
53
__all__ = [
@@ -199,14 +201,14 @@ cdef class SyclPlatform(_SyclPlatform):
199
201
cdef size_t v = 0
200
202
201
203
if not isinstance (verbosity, int ):
202
- print (
204
+ warnings.warn (
203
205
" Illegal verbosity level. Accepted values are 0, 1, or 2. "
204
206
" Using the default verbosity level of 0."
205
207
)
206
208
else :
207
209
v = < size_t> (verbosity)
208
210
if v > 2 :
209
- print (
211
+ warnings.warn (
210
212
" Illegal verbosity level. Accepted values are 0, 1, or 2. "
211
213
" Using the default verbosity level of 0."
212
214
)
@@ -331,7 +333,7 @@ def lsplatform(verbosity=0):
331
333
else :
332
334
v = < size_t> (verbosity)
333
335
if v > 2 :
334
- print (
336
+ warnings.warn (
335
337
" Illegal verbosity level. Accepted values are 0, 1, or 2. "
336
338
" Using the default verbosity level of 0."
337
339
)
You can’t perform that action at this time.
0 commit comments