[Çözüldü] Cuda Derleme sorunu

Başlatan zeusmaster, 15 Ekim 2012 - 16:19:11

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

zeusmaster

┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample/callback_event$
└──>>gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


└──>>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2012 NVIDIA Corporation
Built on Thu_Apr__5_00:24:31_PDT_2012
Cuda compilation tools, release 4.2, V0.2.1221


Cuda ve sürücülerimi kurmama rağmen derleme işleminde hata alıyorum.

┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample/callback_event$
└──>>make
nvcc -c -I../../include callback_event.cu
nvcc -o callback_event callback_event.o -lcuda -L ../../lib -L ../../lib64 -lcupti
/usr/bin/ld: skipping incompatible ../../lib/libcupti.so when searching for -lcupti
┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample/callback_event$
└──>>./callback_event
./callback_event: error while loading shared libraries: libcupti.so.4: cannot open shared object file: No such file or directory

Cuda da çalışmış arkadaş varsa yardımcı olursa sevinirim :)

Up and Running...

if

@bahdem, export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH ile libcupti.so.4'ü kütüphaneye ekleyelim sonra aynı uçbirimde make komutunu verin.

zeusmaster

#2
Sanırım oldu :)
┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample$
└──>>export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH
┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample$
└──>>cd activity_trace/
┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample/activity_trace$
└──>>make
make: `activity_trace' is up to date.
┌─[bahdem]──[ZeuS]:/usr/local/cuda/extras/CUPTI/sample/activity_trace$
└──>>./activity_trace
Device Name: GeForce GT 430
==== Starting dump for context 0x8e2190 ====
MEMCPY HtoD [ 141708903 - 141742600 ] device 0, context 1, stream 2, correlation 73/r4
MEMCPY HtoD [ 141801289 - 141833642 ] device 0, context 1, stream 2, correlation 74/r5
KERNEL "_Z6VecAddPKiS0_Pii" [ 141845482 - 141877771 ] device 0, context 1, stream 2, correlation 75/r11
    grid [196,1,1], block [256,1,1], shared memory (static 0, dynamic 0)
KERNEL "_Z6VecSubPKiS0_Pii" [ 141879467 - 141910124 ] device 0, context 1, stream 2, correlation 76/r17
    grid [196,1,1], block [256,1,1], shared memory (static 0, dynamic 0)
MEMCPY DtoH [ 141912108 - 141944429 ] device 0, context 1, stream 2, correlation 77/r18
==== Finished dump for context 0x8e2190 ====
==== Starting dump for context 0x8e2190 ====
==== Finished dump for context 0x8e2190 ====
==== Starting dump for context 0x8e2190, stream 7 ====
MEMCPY HtoD [ 142399867 - 142465372 ] device 0, context 1, stream 7, correlation 86/r27
MEMCPY HtoD [ 142469020 - 142502877 ] device 0, context 1, stream 7, correlation 87/r28
KERNEL "_Z6VecAddPKiS0_Pii" [ 142513437 - 142544637 ] device 0, context 1, stream 7, correlation 88/r34
    grid [196,1,1], block [256,1,1], shared memory (static 0, dynamic 0)
KERNEL "_Z6VecSubPKiS0_Pii" [ 142547389 - 142577566 ] device 0, context 1, stream 7, correlation 89/r40
    grid [196,1,1], block [256,1,1], shared memory (static 0, dynamic 0)
MEMCPY DtoH [ 142583198 - 142616862 ] device 0, context 1, stream 7, correlation 90/r41
==== Finished dump for context 0x8e2190, stream 7 ====
==== Starting dump for context 0x8e2190, stream 7 ====
==== Finished dump for context 0x8e2190, stream 7 ====
==== Starting dump for global ====
DEVICE GeForce GT 430 (0), capability 2.1, global memory (bandwidth 24 GB/s, size 1023 MB), multiprocessors 2, clock 1400 MHz
DRIVER cbid=3 [ 28267000 - 28270000 ] process 17037, thread 4228691776, correlation 1
DRIVER cbid=5 [ 28274000 - 28296000 ] process 17037, thread 4228691776, correlation 2
DRIVER cbid=2 [ 28494000 - 28495000 ] process 17037, thread 4228691776, correlation 3
DRIVER cbid=1 [ 28496000 - 28497000 ] process 17037, thread 4228691776, correlation 4
DRIVER cbid=4 [ 28498000 - 28499000 ] process 17037, thread 4228691776, correlation 5
DRIVER cbid=3 [ 28513000 - 28513000 ] process 17037, thread 4228691776, correlation 6
DRIVER cbid=5 [ 28516000 - 28543000 ] process 17037, thread 4228691776, correlation 7
DRIVER cbid=259 [ 28544000 - 28575000 ] process 17037, thread 4228691776, correlation 8
DRIVER cbid=6 [ 28575000 - 28576000 ] process 17037, thread 4228691776, correlation 9
DRIVER cbid=9 [ 28576000 - 28577000 ] process 17037, thread 4228691776, correlation 10
DRIVER cbid=9 [ 28577000 - 28577000 ] process 17037, thread 4228691776, correlation 11
DRIVER cbid=9 [ 28577000 - 28578000 ] process 17037, thread 4228691776, correlation 12
DRIVER cbid=9 [ 28578000 - 28603000 ] process 17037, thread 4228691776, correlation 13
DRIVER cbid=9 [ 28603000 - 28603000 ] process 17037, thread 4228691776, correlation 14
DRIVER cbid=9 [ 28604000 - 28604000 ] process 17037, thread 4228691776, correlation 15
DRIVER cbid=9 [ 28604000 - 28604000 ] process 17037, thread 4228691776, correlation 16
DRIVER cbid=9 [ 28604000 - 28605000 ] process 17037, thread 4228691776, correlation 17
DRIVER cbid=9 [ 28605000 - 28605000 ] process 17037, thread 4228691776, correlation 18
DRIVER cbid=9 [ 28605000 - 28606000 ] process 17037, thread 4228691776, correlation 19
DRIVER cbid=9 [ 28606000 - 28606000 ] process 17037, thread 4228691776, correlation 20
DRIVER cbid=9 [ 28606000 - 28606000 ] process 17037, thread 4228691776, correlation 21
DRIVER cbid=9 [ 28607000 - 28607000 ] process 17037, thread 4228691776, correlation 22
DRIVER cbid=9 [ 28607000 - 28607000 ] process 17037, thread 4228691776, correlation 23
DRIVER cbid=9 [ 28608000 - 28608000 ] process 17037, thread 4228691776, correlation 24
DRIVER cbid=9 [ 28608000 - 28608000 ] process 17037, thread 4228691776, correlation 25
DRIVER cbid=9 [ 28608000 - 28609000 ] process 17037, thread 4228691776, correlation 26
DRIVER cbid=9 [ 28609000 - 28609000 ] process 17037, thread 4228691776, correlation 27
DRIVER cbid=9 [ 28609000 - 28610000 ] process 17037, thread 4228691776, correlation 28
DRIVER cbid=9 [ 28610000 - 28610000 ] process 17037, thread 4228691776, correlation 29
DRIVER cbid=9 [ 28610000 - 28610000 ] process 17037, thread 4228691776, correlation 30
DRIVER cbid=9 [ 28611000 - 28611000 ] process 17037, thread 4228691776, correlation 31
DRIVER cbid=9 [ 28611000 - 28611000 ] process 17037, thread 4228691776, correlation 32
DRIVER cbid=9 [ 28611000 - 28612000 ] process 17037, thread 4228691776, correlation 33
DRIVER cbid=9 [ 28612000 - 28612000 ] process 17037, thread 4228691776, correlation 34
DRIVER cbid=9 [ 28612000 - 28613000 ] process 17037, thread 4228691776, correlation 35
DRIVER cbid=9 [ 28613000 - 28613000 ] process 17037, thread 4228691776, correlation 36
DRIVER cbid=9 [ 28613000 - 28613000 ] process 17037, thread 4228691776, correlation 37
DRIVER cbid=9 [ 28614000 - 28614000 ] process 17037, thread 4228691776, correlation 38
DRIVER cbid=9 [ 28614000 - 28614000 ] process 17037, thread 4228691776, correlation 39
DRIVER cbid=9 [ 28614000 - 28615000 ] process 17037, thread 4228691776, correlation 40
DRIVER cbid=9 [ 28615000 - 28615000 ] process 17037, thread 4228691776, correlation 41
DRIVER cbid=9 [ 28615000 - 28616000 ] process 17037, thread 4228691776, correlation 42
DRIVER cbid=9 [ 28616000 - 28616000 ] process 17037, thread 4228691776, correlation 43
DRIVER cbid=9 [ 28616000 - 28616000 ] process 17037, thread 4228691776, correlation 44
DRIVER cbid=9 [ 28617000 - 28617000 ] process 17037, thread 4228691776, correlation 45
DRIVER cbid=9 [ 28617000 - 28617000 ] process 17037, thread 4228691776, correlation 46
DRIVER cbid=9 [ 28617000 - 28618000 ] process 17037, thread 4228691776, correlation 47
DRIVER cbid=9 [ 28618000 - 28618000 ] process 17037, thread 4228691776, correlation 48
DRIVER cbid=9 [ 28618000 - 28619000 ] process 17037, thread 4228691776, correlation 49
DRIVER cbid=9 [ 28619000 - 28619000 ] process 17037, thread 4228691776, correlation 50
DRIVER cbid=9 [ 28619000 - 28619000 ] process 17037, thread 4228691776, correlation 51
DRIVER cbid=9 [ 28620000 - 28620000 ] process 17037, thread 4228691776, correlation 52
DRIVER cbid=9 [ 28620000 - 28620000 ] process 17037, thread 4228691776, correlation 53
DRIVER cbid=9 [ 28620000 - 28621000 ] process 17037, thread 4228691776, correlation 54
DRIVER cbid=9 [ 28621000 - 28621000 ] process 17037, thread 4228691776, correlation 55
DRIVER cbid=9 [ 28621000 - 28622000 ] process 17037, thread 4228691776, correlation 56
DRIVER cbid=9 [ 28622000 - 28710000 ] process 17037, thread 4228691776, correlation 57
DRIVER cbid=9 [ 28711000 - 28711000 ] process 17037, thread 4228691776, correlation 58
DRIVER cbid=9 [ 28711000 - 28711000 ] process 17037, thread 4228691776, correlation 59
DRIVER cbid=9 [ 28712000 - 28712000 ] process 17037, thread 4228691776, correlation 60
DRIVER cbid=9 [ 28712000 - 28712000 ] process 17037, thread 4228691776, correlation 61
DRIVER cbid=9 [ 28712000 - 28713000 ] process 17037, thread 4228691776, correlation 62
DRIVER cbid=8 [ 28713000 - 28801000 ] process 17037, thread 4228691776, correlation 63
CONTEXT 1, device 0, compute API CUDA
RUNTIME cbid=20 [ 28809000 - 141583000 ] process 17037, thread 4228691776, correlation 1
RUNTIME cbid=20 [ 141584000 - 141591000 ] process 17037, thread 4228691776, correlation 2
RUNTIME cbid=20 [ 141591000 - 141597000 ] process 17037, thread 4228691776, correlation 3
RUNTIME cbid=41 [ 141601000 - 141706000 ] process 17037, thread 4228691776, correlation 4
RUNTIME cbid=41 [ 141706000 - 141798000 ] process 17037, thread 4228691776, correlation 5
RUNTIME cbid=8 [ 141802000 - 141805000 ] process 17037, thread 4228691776, correlation 6
RUNTIME cbid=9 [ 141806000 - 141808000 ] process 17037, thread 4228691776, correlation 7
RUNTIME cbid=9 [ 141808000 - 141809000 ] process 17037, thread 4228691776, correlation 8
RUNTIME cbid=9 [ 141809000 - 141810000 ] process 17037, thread 4228691776, correlation 9
RUNTIME cbid=9 [ 141810000 - 141810000 ] process 17037, thread 4228691776, correlation 10
RUNTIME cbid=13 [ 141812000 - 141842000 ] process 17037, thread 4228691776, correlation 11
RUNTIME cbid=8 [ 141842000 - 141843000 ] process 17037, thread 4228691776, correlation 12
RUNTIME cbid=9 [ 141843000 - 141844000 ] process 17037, thread 4228691776, correlation 13
RUNTIME cbid=9 [ 141844000 - 141844000 ] process 17037, thread 4228691776, correlation 14
RUNTIME cbid=9 [ 141850000 - 141850000 ] process 17037, thread 4228691776, correlation 15
RUNTIME cbid=9 [ 141851000 - 141851000 ] process 17037, thread 4228691776, correlation 16
RUNTIME cbid=13 [ 141851000 - 141858000 ] process 17037, thread 4228691776, correlation 17
RUNTIME cbid=41 [ 141859000 - 142056000 ] process 17037, thread 4228691776, correlation 18
RUNTIME cbid=126 [ 142059000 - 142077000 ] process 17037, thread 4228691776, correlation 19
RUNTIME cbid=22 [ 142102000 - 142113000 ] process 17037, thread 4228691776, correlation 20
RUNTIME cbid=22 [ 142114000 - 142120000 ] process 17037, thread 4228691776, correlation 21
RUNTIME cbid=22 [ 142120000 - 142199000 ] process 17037, thread 4228691776, correlation 22
RUNTIME cbid=129 [ 142202000 - 142214000 ] process 17037, thread 4228691776, correlation 23
RUNTIME cbid=20 [ 142214000 - 142319000 ] process 17037, thread 4228691776, correlation 24
RUNTIME cbid=20 [ 142320000 - 142329000 ] process 17037, thread 4228691776, correlation 25
RUNTIME cbid=20 [ 142329000 - 142336000 ] process 17037, thread 4228691776, correlation 26
RUNTIME cbid=41 [ 142336000 - 142394000 ] process 17037, thread 4228691776, correlation 27
RUNTIME cbid=41 [ 142394000 - 142467000 ] process 17037, thread 4228691776, correlation 28
RUNTIME cbid=8 [ 142467000 - 142468000 ] process 17037, thread 4228691776, correlation 29
RUNTIME cbid=9 [ 142468000 - 142469000 ] process 17037, thread 4228691776, correlation 30
RUNTIME cbid=9 [ 142469000 - 142469000 ] process 17037, thread 4228691776, correlation 31
RUNTIME cbid=9 [ 142469000 - 142470000 ] process 17037, thread 4228691776, correlation 32
RUNTIME cbid=9 [ 142470000 - 142470000 ] process 17037, thread 4228691776, correlation 33
RUNTIME cbid=13 [ 142471000 - 142482000 ] process 17037, thread 4228691776, correlation 34
RUNTIME cbid=8 [ 142482000 - 142483000 ] process 17037, thread 4228691776, correlation 35
RUNTIME cbid=9 [ 142483000 - 142483000 ] process 17037, thread 4228691776, correlation 36
RUNTIME cbid=9 [ 142484000 - 142484000 ] process 17037, thread 4228691776, correlation 37
RUNTIME cbid=9 [ 142484000 - 142484000 ] process 17037, thread 4228691776, correlation 38
RUNTIME cbid=9 [ 142484000 - 142485000 ] process 17037, thread 4228691776, correlation 39
RUNTIME cbid=13 [ 142485000 - 142493000 ] process 17037, thread 4228691776, correlation 40
RUNTIME cbid=41 [ 142493000 - 142677000 ] process 17037, thread 4228691776, correlation 41
RUNTIME cbid=131 [ 142680000 - 142693000 ] process 17037, thread 4228691776, correlation 42
RUNTIME cbid=22 [ 142694000 - 142702000 ] process 17037, thread 4228691776, correlation 43
RUNTIME cbid=22 [ 142702000 - 142708000 ] process 17037, thread 4228691776, correlation 44
RUNTIME cbid=22 [ 142708000 - 142777000 ] process 17037, thread 4228691776, correlation 45
RUNTIME cbid=165 [ 142779000 - 142795000 ] process 17037, thread 4228691776, correlation 46
RUNTIME cbid=164 [ 142796000 - 158780000 ] process 17037, thread 4228691776, correlation 47
==== Finished dump for global ====
==== Starting dump for global ====
==== Finished dump for global ====

@if, gene yetiştin imdadıma :) Teşekkürler.


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 15 Ekim 2012 - 16:37:36

.bashrc dosyasına;
export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH
eklemeyi unutmamak lazım :)
Up and Running...

if