0
내가 NVIDIACUDA-GDB보기 변수/C++
[email protected]:~/NVIDIA_CUDA-7.5_Samples$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
에서 사용할 수있는 CUDA 드라이버의 최신 버전을 설치하지만 프로그램을 디버깅 할 때 내가 파이썬에 대한 오류 메시지가 표시됩니다.
[email protected]:~$ cuda-gdb hello.out
NVIDIA (R) CUDA Debugger
7.5 release
Portions Copyright (C) 2007-2015 NVIDIA Corporation
GNU gdb (GDB) 7.6.2
Copyright (C) 2013 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mmiller/hello.out...done.
(cuda-gdb) b main
Breakpoint 1 at 0x402546: file hello.cu, line 3.
(cuda-gdb) r
Starting program: /home/mmiller/hello.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, main() at hello.cu:3
3 foo: int x = 1;
(cuda-gdb) s
4 int y = x+1;
(cuda-gdb) p x
Python Exception <type 'exceptions.AttributeError'> 'gdb.Type' object has no attribute 'name':
Python Exception <type 'exceptions.AttributeError'> 'gdb.Type' object has no attribute 'name':
$1 = 1
(cuda-gdb)
I 프로그램
매우 간단한 프로그램이며 나는 파이썬 gdb를 다루는 오류가있을 수 있음을 읽을 수 있지만 우분투와 엔비디아의 최신 소프트웨어를 사용하여 오류를 수정하는 방법에 대한 확신입니다. 이 문제를 해결하는 방법에 대한 제안 사항은 무엇입니까?
1. cuda로 업그레이드하십시오. 8. 문제가 항상 해결됩니다. 2. 다른 누군가가 당신의 관찰을 재현하려고 시도 할 수 있도록 완전한 테스트 케이스를 제공하십시오. 나는 cuda-gdb를 자주 사용하며이 문제를 다루지 않았다. –
보고 된 내용 ([here])과 비슷한 것을 관찰 할 수 있습니다 (https://devtalk.nvidia.com/default/topic/994231/cuda-gdb/python-exception-lt-type-exceptions-attributeerror-gt-gdb). -type-object-has-no-attribute-name- /)를 사용하십시오. 이 문제는 이미 NVIDIA에 버그로보고되었습니다. NVIDIA 버그라는 것이 확실하지 않지만, 수정 사항이 곧 발표되지 않을 수도 있습니다. 이는 다음 CUDA 출시까지 기다릴 수 있습니다. 그 동안 몇 가지 언급이 있습니다. 1. OS와 CUDA의 바닐라로드 (예 : 사용중인 경우 Ubuntu 16.04의 클린로드)를 시도합니다. 파이썬을 업데이트하지 마십시오. –
2.이 문제로 인해 진행 과정이 진행되지 않는다고 명확하게 밝혀지지 않았습니다. 이 파이썬 예외 메시지를 얻고 있지만, cuda-gdb가 손상되지 않았고 실제로 요청한 것을 인쇄 한 것 같습니다 ('$ 1 = 1'). 그래서 그것은 성가신 일 수도 있지만 막연한 문제는 아닙니다. 나는 그 순간에 스스로를 재현 할 수 없기 때문에 확신 할 수 없다. –