compile the executable megdnn_test
based on cmake managed project, i have set -g -G
to nvcc flags and have read cuda-gdb docs, but cuda-gdb hangs.
is there any methods to know why or how to debug the hangs problem? or would i supply more information about this issue?
(base) tangke@jy-apu-engine-test-ba220200319:~/MegBrain/build/dnn/test$ cuda-gdb megdnn_test
NVIDIA (R) CUDA Debugger
11.1 release
Portions Copyright (C) 2007-2020 NVIDIA Corporation
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
On the next run, the CUDA kernel launches will be blocking.
--Type <RET> for more, q to quit, c to continue without paging--
Reading symbols from megdnn_test...
(cuda-gdb) r --gtest_filter="CUDA.REGION*FORWARD*"
Starting program: /home/tangke/MegBrain/build/dnn/test/megdnn_test --gtest_filter="CUDA.REGION*FORWARD*"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Note: Google Test filter = CUDA.REGION*FORWARD*
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CUDA
[ RUN ] CUDA.REGION_RESTRICTED_CONV_FORWARD_LARGE_FILTER
[Detaching after fork from child process 59976]
[New Thread 0x7fffaa8c3700 (LWP 59986)]
[New Thread 0x7fffaa0c2700 (LWP 59987)]
[Context Create of context 0x55557076be70 on Device 0]
[New Thread 0x7fffa97bf700 (LWP 59988)]