-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathlocal_variables_0
More file actions
60 lines (59 loc) · 2.11 KB
/
local_variables_0
File metadata and controls
60 lines (59 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$ NUMBA_OPT=0 NUMBA_DPEX_OPT=0 gdb-oneapi -q python
(gdb) set breakpoint pending on
(gdb) break sum_local_vars.py:13
(gdb) run sum_local_vars.py
...
Thread 11 "python" hit Breakpoint 1, __main__::data_parallel_sum_241dpex_fn[abi:v1][abi:c8tJTC_2fWgMemLSg1AEMDLWKQhCFpAEkANV7BEpoA](
DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>) (a=..., b=..., c=...)
at sum_local_vars.py:13
13 i = ndpx.get_global_id(0)
(gdb) info locals
__ocl_dbg_gid0 = 2
__ocl_dbg_gid1 = 0
__ocl_dbg_gid2 = 0
i = 0
l1 = 0
l2 = 0
(gdb) next
[Switching to thread 1 (Thread 0x7ffff7c71740 (LWP 45181))]
Thread 1 "python" hit Breakpoint 1, __main__::data_parallel_sum_241dpex_fn[abi:v1][abi:c8tJTC_2fWgMemLSg1AEMDLWKQhCFpAEkANV7BEpoA](
DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>) (a=..., b=..., c=...)
at sum_local_vars.py:13
13 i = ndpx.get_global_id(0)
(gdb) next
23 l1 = a[i] + 2.5
(gdb) next
24 l2 = b[i] * 0.3
(gdb) info locals
__ocl_dbg_gid0 = 3
__ocl_dbg_gid1 = 0
__ocl_dbg_gid2 = 0
i = 3
l1 = 3.4331700205802917
l2 = 0
(gdb) print a
$1 = {meminfo = 0x0, parent = 0x0, nitems = 0, itemsize = 0, data = 0x0, sycl_queue = 0x0, shape = {0}, strides = {0}}
(gdb) print l1
$2 = 2.5931931659579277
(gdb) print l2
$4 = 0
(gdb) ptype a
type = struct DpnpNdArray(dtype=float32, ndim=1, layout=C, address_space=1, usm_type=device, device=opencl:cpu:0, sycl_queue=DpctlSyclQueue on opencl:cpu:0)
({float addrspace(1)*, i8* addrspace(1)*, i64, i64, float addrspace(1)*, i8* addrspace(1)*, [1 x i64], [1 x i64]}) {
float *meminfo;
i8 **parent;
int64 nitems;
int64 itemsize;
float *data;
i8 **sycl_queue;
i64 shape[1];
i64 strides[1];
}
(gdb) whatis a
type = DpnpNdArray(dtype=float32, ndim=1, layout=C, address_space=1, usm_type=device, device=opencl:cpu:0, sycl_queue=DpctlSyclQueue on opencl:cpu:0)
({float addrspace(1)*, i8* addrspace(1)*, i64, i64, float addrspace(1)*, i8* addrspace(1)*, [1 x i64], [1 x i64]})
(gdb) ptype l1
type = float64
(gdb) whatis l1
type = float64
...