I’m trying to move some code from a 32-bit system to a 64-bit system.
For some reason I get "unspecified
[codebox]
This GDB was configured as “x86_64-unknown-linux-gnu”…
Using host libthread_db library “/lib/libthread_db.so.1”.
(cuda-gdb) break regressionKernel.cu :101
Breakpoint 1 at 0x427815: file regressionKernel.cu, line 101.
(cuda-gdb) run
Starting program: /path/to/CudaCallC
[Thread debugging using libthread_db enabled]
[New process 29113]
[New Thread 139871831000832 (LWP 29113)]
[Switching to Thread 139871831000832 (LWP 29113)]
[Current CUDA Thread <<<(0,0),(0,0,0)>>>]
Breakpoint 1, EvalPFI () at regressionKernel.cu:101
101 if(insmpT < MIN_TRADES) {
Current language: auto; currently c++
(cuda-gdb) step
[Current CUDA Thread <<<(0,0),(0,0,0)>>>]
EvalPFI () at regressionKernel.cu:102
102 fitness[Training][programIndex] = 9999999;
(cuda-gdb) print programIndex
$1 = 0
(cuda-gdb) print Training
$2 = Training
(cuda-gdb) print (int)Training
$3 = 0
(cuda-gdb) print fitness
$4 = (float * @global * const @global) 0x102cdc0
(cuda-gdb) print fitness[0][0]
$5 = 1000000
(cuda-gdb) step
[CUDA execution terminated]
0x00007f367289abff in cudaLaunch () from /opt/cuda/lib/libcudart.so.2
(cuda-gdb)
[/codebox]
[codebox]102 fitness[Training][programIndex] = 9999999;
(cuda-gdb) print Training
$1 = Training
(cuda-gdb) print (int)Training
$2 = 0
(cuda-gdb) print programIndex
$3 = 0
(cuda-gdb) print fitness
$4 = (float * @global * const @global) 0x1393dc0
(cuda-gdb) print fitness[0]
$5 = (float * @global) 0x13c8850
(cuda-gdb) print fitness[Training]
$6 = (float * @global) 0x13c8850
(cuda-gdb) print fitness[Training][0]
$7 = 1000000
(cuda-gdb) print fitness[Training][programIndex]
$8 = 1000000
(cuda-gdb) step
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x4a54e3e5: Input/output error.
[/codebox]
[codebox]102 fitness[Training][programIndex] = 9999999;
(cuda-gdb) print &fitness[Training][programIndex]
$1 = (float *) 0x18c8850
(cuda-gdb) print &fitness
$2 = (float * @global * const @global *) 0x44b154
(cuda-gdb) print &fitness[Training]
$3 = (float * @global *) 0x1893dc0
(cuda-gdb) set fitness[Training][programIndex] = 100
(cuda-gdb) step
[CUDA execution terminated]
0x00007fce0b831bff in cudaLaunch () from /opt/cuda/lib/libcudart.so.2[/codebox]