|
1 |
| -$ NUMBA_OPT=0 gdb-oneapi -q python |
| 1 | +$ NUMBA_OPT=0 NUMBA_DPEX_OPT=0 gdb-oneapi -q python |
2 | 2 | (gdb) set breakpoint pending on
|
3 |
| -(gdb) break sum_local_vars.py:22 |
| 3 | +(gdb) break sum_local_vars.py:13 |
4 | 4 | (gdb) run sum_local_vars.py
|
5 | 5 | ...
|
6 |
| -Thread 2.2 hit Breakpoint 1, with SIMD lanes [0-7], __main__::data_parallel_sum () at sum_local_vars.py:22 |
7 |
| -22 i = dpex.get_global_id(0) |
| 6 | +Thread 11 "python" hit Breakpoint 1, __main__::data_parallel_sum_241dpex_fn[abi:v1][abi:c8tJTC_2fWgMemLSg1AEMDLWKQhCFpAEkANV7BEpoA]( |
| 7 | + DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>) (a=..., b=..., c=...) |
| 8 | + at sum_local_vars.py:13 |
| 9 | +13 i = ndpx.get_global_id(0) |
8 | 10 | (gdb) info locals
|
9 |
| -a = '\000' <repeats 55 times> |
10 |
| -b = '\000' <repeats 55 times> |
11 |
| -c = '\000' <repeats 55 times> |
| 11 | +__ocl_dbg_gid0 = 2 |
| 12 | +__ocl_dbg_gid1 = 0 |
| 13 | +__ocl_dbg_gid2 = 0 |
12 | 14 | i = 0
|
13 | 15 | l1 = 0
|
14 | 16 | l2 = 0
|
15 |
| -__ocl_dbg_gid0 = 0 |
16 |
| -__ocl_dbg_gid1 = 0 |
17 |
| -__ocl_dbg_gid2 = 0 |
18 |
| -__ocl_dbg_lid0 = 0 |
19 |
| -__ocl_dbg_lid1 = 0 |
20 |
| -__ocl_dbg_lid2 = 0 |
21 |
| -__ocl_dbg_grid0 = 0 |
22 |
| -__ocl_dbg_grid1 = 0 |
23 |
| -__ocl_dbg_grid2 = 0 |
24 | 17 | (gdb) next
|
25 |
| -Thread 2.3 hit Breakpoint 1, with SIMD lanes [0-1], __main__::data_parallel_sum () at sum_local_vars.py:22 |
26 |
| -22 i = dpex.get_global_id(0) |
| 18 | +[Switching to thread 1 (Thread 0x7ffff7c71740 (LWP 45181))] |
| 19 | + |
| 20 | +Thread 1 "python" hit Breakpoint 1, __main__::data_parallel_sum_241dpex_fn[abi:v1][abi:c8tJTC_2fWgMemLSg1AEMDLWKQhCFpAEkANV7BEpoA]( |
| 21 | + DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>, DpnpNdArray<float, 1, C, opencl_cpu>) (a=..., b=..., c=...) |
| 22 | + at sum_local_vars.py:13 |
| 23 | +13 i = ndpx.get_global_id(0) |
27 | 24 | (gdb) next
|
28 | 25 | 23 l1 = a[i] + 2.5
|
29 | 26 | (gdb) next
|
30 | 27 | 24 l2 = b[i] * 0.3
|
31 | 28 | (gdb) info locals
|
32 |
| -a = '\000' <repeats 55 times> |
33 |
| -b = '\000' <repeats 16 times>, "\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\240\016XUU\000\000\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000" |
34 |
| -c = '\000' <repeats 16 times>, "\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000@\256WUU\000\000\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000" |
35 |
| -i = 8 |
36 |
| -l1 = 2.5931931659579277 |
37 |
| -l2 = 0 |
38 |
| -__ocl_dbg_gid0 = 0 |
| 29 | +__ocl_dbg_gid0 = 3 |
39 | 30 | __ocl_dbg_gid1 = 0
|
40 | 31 | __ocl_dbg_gid2 = 0
|
41 |
| -__ocl_dbg_lid0 = 42949672970 |
42 |
| -__ocl_dbg_lid1 = 0 |
43 |
| -__ocl_dbg_lid2 = 93825037590528 |
44 |
| -__ocl_dbg_grid0 = 4612811918334230528 |
45 |
| -__ocl_dbg_grid1 = 0 |
46 |
| -__ocl_dbg_grid2 = 0 |
47 |
| -(gdb) next |
48 |
| -25 c[i] = l1 + l2 |
49 |
| -(gdb) info locals |
50 |
| -a = '\000' <repeats 55 times> |
51 |
| -b = '\000' <repeats 55 times> |
52 |
| -c = '\000' <repeats 16 times>, "\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000@\256WUU\000\000\n\000\000\000\000\000\000\000\004\000\000\000\000\000\000" |
53 |
| -i = 8 |
54 |
| -l1 = 2.5931931659579277 |
55 |
| -l2 = 0.22954882979393004 |
56 |
| -__ocl_dbg_gid0 = 0 |
57 |
| -__ocl_dbg_gid1 = 8 |
58 |
| -__ocl_dbg_gid2 = 8 |
59 |
| -__ocl_dbg_lid0 = 93825034429928 |
60 |
| -__ocl_dbg_lid1 = 0 |
61 |
| -__ocl_dbg_lid2 = 93825034429936 |
62 |
| -__ocl_dbg_grid0 = 4599075939470750515 |
63 |
| -__ocl_dbg_grid1 = 0 |
64 |
| -__ocl_dbg_grid2 = 0 |
| 32 | +i = 3 |
| 33 | +l1 = 3.4331700205802917 |
| 34 | +l2 = 0 |
65 | 35 | (gdb) print a
|
66 |
| -$1 = '\000' <repeats 55 times> |
| 36 | +$1 = {meminfo = 0x0, parent = 0x0, nitems = 0, itemsize = 0, data = 0x0, sycl_queue = 0x0, shape = {0}, strides = {0}} |
67 | 37 | (gdb) print l1
|
68 |
| -$3 = 2.5931931659579277 |
| 38 | +$2 = 2.5931931659579277 |
69 | 39 | (gdb) print l2
|
70 |
| -$4 = 0.22954882979393004 |
| 40 | +$4 = 0 |
71 | 41 | (gdb) ptype a
|
72 |
| -type = byte [56] |
| 42 | +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) |
| 43 | +({float addrspace(1)*, i8* addrspace(1)*, i64, i64, float addrspace(1)*, i8* addrspace(1)*, [1 x i64], [1 x i64]}) { |
| 44 | + float *meminfo; |
| 45 | + i8 **parent; |
| 46 | + int64 nitems; |
| 47 | + int64 itemsize; |
| 48 | + float *data; |
| 49 | + i8 **sycl_queue; |
| 50 | + i64 shape[1]; |
| 51 | + i64 strides[1]; |
| 52 | +} |
73 | 53 | (gdb) whatis a
|
74 |
| -type = byte [56] |
| 54 | +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) |
| 55 | +({float addrspace(1)*, i8* addrspace(1)*, i64, i64, float addrspace(1)*, i8* addrspace(1)*, [1 x i64], [1 x i64]}) |
75 | 56 | (gdb) ptype l1
|
76 |
| -type = double |
| 57 | +type = float64 |
77 | 58 | (gdb) whatis l1
|
78 |
| -type = double |
79 |
| -(gdb) continue |
| 59 | +type = float64 |
80 | 60 | ...
|
81 |
| -Done... |
0 commit comments