undefined symbol: clock_gettime

45 views
Skip to first unread message

Saeed Salehi

unread,
Apr 23, 2013, 7:10:05 AM4/23/13
to gpuo...@googlegroups.com
hi all
please help me
when I want run example with gpuocelot , I can't
when I write  "g++ -o hello.cut hello.o `OcelotConfig -l`"
beacuse show me this error

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
OcelotConfig: symbol lookup error: /usr/lib/libocelot.so: undefined symbol: clock_gettime
saeed.o: In function `wrongMemcpyDirection()':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x3f): undefined reference to `cudaMalloc'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x61): undefined reference to `cudaMemcpy'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x6c): undefined reference to `cudaFree'
saeed.o: In function `hostPointerOnDevice()':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0xc2): undefined reference to `cudaMalloc'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0xe4): undefined reference to `cudaMemcpy'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x168): undefined reference to `cudaConfigureCall'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x182): undefined reference to `cudaFree'
saeed.o: In function `bufferOverrun()':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x1d8): undefined reference to `cudaMalloc'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x1fa): undefined reference to `cudaMemcpy'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x27e): undefined reference to `cudaConfigureCall'
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x298): undefined reference to `cudaFree'
saeed.o: In function `__cudaUnregisterBinaryUtil()':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x48b): undefined reference to `__cudaUnregisterFatBinary'
saeed.o: In function `__device_stub__Z4initPi(int*)':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x4ae): undefined reference to `cudaSetupArgument'
saeed.o: In function `__nv_cudaEntityRegisterCallback(void**)':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x546): undefined reference to `__cudaRegisterFunction'
saeed.o: In function `__sti____cudaRegisterAll_40_tmpxft_00006a0f_00000000_6_saeed_cpp1_ii_41d29f55()':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text+0x55a): undefined reference to `__cudaRegisterFatBinary'
saeed.o: In function `cudaError cudaLaunch<char>(char*)':
tmpxft_00006a0f_00000000-3_saeed.cudafe1.cpp:(.text._Z10cudaLaunchIcE9cudaErrorPT_[cudaError cudaLaunch<char>(char*)]+0xd): undefined reference to `cudaLaunch'
collect2: ld returned 1 exit status
//////////////////////////////////////////////////////////////////////////////////
please help me
how can I solve this problem?
tanks
Reply all
Reply to author
Forward
0 new messages