numba-cuda 0.0.21__py3-none-any.whl → 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- _numba_cuda_redirector.py +9 -3
- numba_cuda/VERSION +1 -1
- numba_cuda/numba/cuda/compiler.py +4 -0
- numba_cuda/numba/cuda/dispatcher.py +6 -0
- {numba_cuda-0.0.21.dist-info → numba_cuda-0.1.0.dist-info}/METADATA +1 -1
- {numba_cuda-0.0.21.dist-info → numba_cuda-0.1.0.dist-info}/RECORD +9 -9
- {numba_cuda-0.0.21.dist-info → numba_cuda-0.1.0.dist-info}/LICENSE +0 -0
- {numba_cuda-0.0.21.dist-info → numba_cuda-0.1.0.dist-info}/WHEEL +0 -0
- {numba_cuda-0.0.21.dist-info → numba_cuda-0.1.0.dist-info}/top_level.txt +0 -0
_numba_cuda_redirector.py
CHANGED
@@ -67,9 +67,15 @@ class NumbaCudaFinder(importlib.abc.MetaPathFinder):
|
|
67
67
|
oot_path = [p.replace(self.numba_path, self.numba_cuda_path)
|
68
68
|
for p in path]
|
69
69
|
for finder in sys.meta_path:
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
try:
|
71
|
+
spec = finder.find_spec(name, oot_path, target)
|
72
|
+
except AttributeError:
|
73
|
+
# Finders written to a pre-Python 3.4 spec for finders will
|
74
|
+
# not implement find_spec. We can skip those altogether.
|
75
|
+
continue
|
76
|
+
else:
|
77
|
+
if spec is not None:
|
78
|
+
return spec
|
73
79
|
|
74
80
|
|
75
81
|
finder = NumbaCudaFinder()
|
numba_cuda/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
@@ -206,6 +206,7 @@ def compile_cuda(pyfunc, return_type, args, debug=False, lineinfo=False,
|
|
206
206
|
|
207
207
|
if debug:
|
208
208
|
flags.error_model = 'python'
|
209
|
+
flags.dbg_extend_lifetimes = True
|
209
210
|
else:
|
210
211
|
flags.error_model = 'numpy'
|
211
212
|
|
@@ -497,6 +498,9 @@ def compile(pyfunc, sig, debug=None, lineinfo=False, device=True,
|
|
497
498
|
'opt': 3 if opt else 0
|
498
499
|
}
|
499
500
|
|
501
|
+
if debug:
|
502
|
+
nvvm_options['g'] = None
|
503
|
+
|
500
504
|
if lto:
|
501
505
|
nvvm_options['gen-lto'] = None
|
502
506
|
|
@@ -95,6 +95,9 @@ class _Kernel(serialize.ReduceMixin):
|
|
95
95
|
'opt': 3 if opt else 0
|
96
96
|
}
|
97
97
|
|
98
|
+
if debug:
|
99
|
+
nvvm_options['g'] = None
|
100
|
+
|
98
101
|
cc = get_current_device().compute_capability
|
99
102
|
cres = compile_cuda(self.py_func, types.void, self.argtypes,
|
100
103
|
debug=self.debug,
|
@@ -918,6 +921,9 @@ class CUDADispatcher(Dispatcher, serialize.ReduceMixin):
|
|
918
921
|
'fastmath': fastmath
|
919
922
|
}
|
920
923
|
|
924
|
+
if debug:
|
925
|
+
nvvm_options['g'] = None
|
926
|
+
|
921
927
|
cc = get_current_device().compute_capability
|
922
928
|
cres = compile_cuda(self.py_func, return_type, args,
|
923
929
|
debug=debug,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
_numba_cuda_redirector.pth,sha256=cmfMMmV0JPh3yEpl4bGeM9AuXiVVMSo6Z_b7RaQL3XE,30
|
2
|
-
_numba_cuda_redirector.py,sha256=
|
3
|
-
numba_cuda/VERSION,sha256=
|
2
|
+
_numba_cuda_redirector.py,sha256=QKJmYICSQvjvph0Zw9OW015MsuKxIF28GPFjR35AXLM,2681
|
3
|
+
numba_cuda/VERSION,sha256=6d2FB_S_DG9CRY5BrqgzrQvT9hJycjNe7pv01YVB7Wc,6
|
4
4
|
numba_cuda/__init__.py,sha256=atXeUvJKR3JHcAiCFbXCVOJQUHgB1TulmsqSL_9RT3Q,114
|
5
5
|
numba_cuda/_version.py,sha256=jbdUsbR7sVllw0KxQNB0-FMd929CGg3kH2fhHdrlkuc,719
|
6
6
|
numba_cuda/numba/cuda/__init__.py,sha256=idyVHOObC9lTYnp62v7rVprSacRM4d5F6vhXfG5ElTI,621
|
@@ -9,7 +9,7 @@ numba_cuda/numba/cuda/api_util.py,sha256=aQfUV2-4RM_oGVvckMjbMr5e3effOQNX04v1T0O
|
|
9
9
|
numba_cuda/numba/cuda/args.py,sha256=HloHkw_PQal2DT-I70Xf_XbnGObS1jiUgcRrQ85Gq28,1978
|
10
10
|
numba_cuda/numba/cuda/cg.py,sha256=9V1uZqyGOJX1aFd9c6GAPbLSqq83lE8LoP-vxxrKENY,1490
|
11
11
|
numba_cuda/numba/cuda/codegen.py,sha256=ghdYBKZ3Mzk2UlLE64HkrAjb60PN9fibSNkWFRQuj4M,13184
|
12
|
-
numba_cuda/numba/cuda/compiler.py,sha256=
|
12
|
+
numba_cuda/numba/cuda/compiler.py,sha256=_0qfSjnLnF29B-t8NQRJt4FBUIKxZJE6xN47_G7oRio,21339
|
13
13
|
numba_cuda/numba/cuda/cpp_function_wrappers.cu,sha256=iv84_F6Q9kFjV_kclrQz1msh6Dud8mI3qNkswTid7Qc,953
|
14
14
|
numba_cuda/numba/cuda/cuda_fp16.h,sha256=1IC0mdNdkvKbvAe0-f4uYVS7WFrVqOyI1nRUbBiqr6A,126844
|
15
15
|
numba_cuda/numba/cuda/cuda_fp16.hpp,sha256=vJ7NUr2X2tKhAP7ojydAiCoOjVO6n4QGoXD6m9Srrlw,89130
|
@@ -21,7 +21,7 @@ numba_cuda/numba/cuda/decorators.py,sha256=qSpir16-jPYSe2YuRZ6g9INeobmsMNg6ab9IZ
|
|
21
21
|
numba_cuda/numba/cuda/descriptor.py,sha256=rNMaurJkjNjIBmHPozDoLC35DMURE0fn_LtnXRmaG_w,985
|
22
22
|
numba_cuda/numba/cuda/device_init.py,sha256=lP79tCsQ0Np9xcbjv_lXcH4JOiVZvV8nwg3INdETxsc,3586
|
23
23
|
numba_cuda/numba/cuda/deviceufunc.py,sha256=yxAH71dpgJWK8okmCJm0FUV6z2AqdThCYOTZspT7z0M,30775
|
24
|
-
numba_cuda/numba/cuda/dispatcher.py,sha256=
|
24
|
+
numba_cuda/numba/cuda/dispatcher.py,sha256=nDfPCzxJ7UwA4uiz-fsMMgQb2WXByvzHLtkLMXW9JXk,41244
|
25
25
|
numba_cuda/numba/cuda/errors.py,sha256=XwWHzCllx0DXU6BQdoRH0m3pznGxnTFOBTVYXMmCfqg,1724
|
26
26
|
numba_cuda/numba/cuda/extending.py,sha256=URsyBYls2te-mgE0yvDY6akvawYCA0blBFfD7Lf9DO4,142
|
27
27
|
numba_cuda/numba/cuda/initialize.py,sha256=TQGHGLQoq4ch4J6CLDcJdGsZzXM-g2kDgdyO1u-Rbhg,546
|
@@ -236,8 +236,8 @@ numba_cuda/numba/cuda/tests/test_binary_generation/Makefile,sha256=P2WzCc5d64JGq
|
|
236
236
|
numba_cuda/numba/cuda/tests/test_binary_generation/generate_raw_ltoir.py,sha256=V0raLZLGSiWbE_K-JluI0CnmNkXbhlMVj-TH7P1OV8E,5014
|
237
237
|
numba_cuda/numba/cuda/tests/test_binary_generation/test_device_functions.cu,sha256=cUf-t6ZM9MK_x7X_aKwsrKW1LdR97XcpR-qnYr5faOE,453
|
238
238
|
numba_cuda/numba/cuda/tests/test_binary_generation/undefined_extern.cu,sha256=q3oxZziT8KDodeNcEBiWULH6vMrHCWucmJmtrg8C0d0,128
|
239
|
-
numba_cuda-0.0.
|
240
|
-
numba_cuda-0.0.
|
241
|
-
numba_cuda-0.0.
|
242
|
-
numba_cuda-0.0.
|
243
|
-
numba_cuda-0.0.
|
239
|
+
numba_cuda-0.1.0.dist-info/LICENSE,sha256=eHeYE-XjASmwbxfsP5AImgfzRwZurZGqH1f6OFwJ4io,1326
|
240
|
+
numba_cuda-0.1.0.dist-info/METADATA,sha256=5g2_KSGZGRHn8D-JbY7mnZREDqGMIRzVoqLAGNrmRIQ,1496
|
241
|
+
numba_cuda-0.1.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
242
|
+
numba_cuda-0.1.0.dist-info/top_level.txt,sha256=C50SsH-8tXDmt7I0Y3nlJYhS5s6pqWflCPdobe9vx2M,11
|
243
|
+
numba_cuda-0.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|