Difference between revisions of "Cuda"

From Ghoulwiki
Jump to: navigation, search
(troubleshooting)
(troubleshooting)
 
Line 6: Line 6:
 
** cuda/shared/common.mk
 
** cuda/shared/common.mk
 
** cuda//C/common/common.mk
 
** cuda//C/common/common.mk
 +
  
 
* running example : segfault  
 
* running example : segfault  
Line 11: Line 12:
 
** try :  make emu=1
 
** try :  make emu=1
 
** try :  make dbg=1 emu=1
 
** try :  make dbg=1 emu=1
 +
** gdb ... backtrace:  0xb7fa7ccd in cudaGetDeviceProperties () from /usr/local/cuda/lib/libcudart.so.2
  
  

Latest revision as of 00:16, 29 November 2009

troubleshooting


  • running example : segfault
    • cuda driver not installed ?
    • try : make emu=1
    • try : make dbg=1 emu=1
    • gdb ... backtrace: 0xb7fa7ccd in cudaGetDeviceProperties () from /usr/local/cuda/lib/libcudart.so.2


  • error : /usr/bin/ld: cannot find -lglut
    • solution : apt-get install libglut3-dev


  • error (during launch) : error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory
    • solution : /etc/ld.so.conf
    • add line : /usr/local/cuda/lib
    • start /sbin/ldconfig

old

cuda_old_notes