I'm failed in make SDK sample codes Some codes are 'make' well, but the other codes didn

Hello, I am just beginner in CUDA.

Thank you for reading this post.

Let me introduce my system environment.

x86_64

Fedora release 14 (Laughlin)

Kernel ver 2.6.32.27

# lspci | grep -i nVidia

03:00.0 VGA compatible controller: nVidia Corporation Device 1080 (rev a1)

03:00.1 Audio device: nVidia Corporation Device 0e09 (rev a1)

87:00.0 VGA compatible controller: nVidia Corporation Device 1080 (rev a1)

87:00.1 Audio device: nVidia Corporation Device 0e09 (rev a1)

# gcc --version

gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

First, I download below 3 files in NVIDIA Developer Zone.

[b]Developer Drivers for Linux (256.40)

CUDA Toolkit for Fedora 12

GPU Computing SDK code samples[/b]

I installed Developer Driver.

# sh devdriver_3.1_linux_64_256.40.run

And I installed CUDA Toolkit.

# sh cudatoolkit_3.1_linux_64_fedora12.run

And I installed SDK code samples, and try to make them.

# sh gpucomputingsdk_3.1_linux.run

Enter install path (default ~/NVIDIA_GPU_Computing_SDK): ~/CUDA/SDK

...

# cd ~/CUDA/SDK/C

# make

I solved errors with missing Library.

But after that problem, some codes are succeeded in ‘make’ but the others are failed.

The first hitter is ‘SobelFilter’.

SobelFilter_kernels.cu(53): error: calling a host function from a __device__/__global__ function is not allowed

I am try and search, but fail to solve this problem.

For temporary solution, I moved codes that failed in ‘make’ to other directory.

And try make, and another code fail, move that code, and try make again… Finally…

Below are succeed in ‘make’.

BlackScholes    deviceQueryDrv  matrixMulDrv         reduction             smokeParticles

FDTD3d          dxtc            matrixMulDynlinkJIT  simpleCUBLAS          threadMigration

cppIntegration  fluidsGL        mergeSort            simpleTextureDrv      vectorAddDrv

deviceQuery     lineOfSight     ptxjit               simpleVoteIntrinsics

Below are Failed in ‘make’.

FunctionPointers    binomialOptions       histogram             scalarProd                simpleTexture3D

Mandelbrot          boxFilter             imageDenoising        scan                      simpleZeroCopy

MersenneTwister     clock                 marchingCubes         simpleAtomicIntrinsics    sortingNetworks

MonteCarlo          concurrentKernels     matrixMul             simpleCUFFT               template

MonteCarloMultiGPU  convolutionFFT2D      nbody                 simpleGL                  threadFenceReduction

SobelFilter         convolutionSeparable  oceanFFT              simpleMultiCopy           transpose

SobolQRNG           convolutionTexture    particles             simpleMultiGPU            transposeNew

alignedTypes        dct8x8                postProcessGL         simplePitchLinearTexture  vectorAdd

asyncAPI            dwtHaar1D             quasirandomGenerator  simpleStreams             volumeRender

bandwidthTest       eigenvalues           radixSort             simpleTemplates

bicubicTexture      fastWalshTransform    recursiveGaussian     simpleTexture

Is any wrong in my install process? Or do you know how to compile those sample codes?

How can I finish CUDA install and execute SDK sample codes?

I will do polling this post. Thank to read.

Hello everybody,

I am getting a bunch of problems to compile the NVIDIA_GPU_COMPUTING_SDK/C/
I just installed ubuntu 11.04 and also the previous version of gcc…but still doesn’t compile except for dct8x8
and nothing else…
Does one have the same problems???
I rellay need help…because I am thinking to move to ubuntu 10.10 where it works for many!!

Thanks in advance for any help

I am getting this error:

sudo make
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
In file included from src/bank_checker.cpp:15:
./…/common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type
./…/common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:57: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:259: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:18,
from src/cutil.cpp:33:
./…/common/inc/stopwatch_base.h:56: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch_base.h:72,
from ./…/common/inc/stopwatch.h:18,
from src/cutil.cpp:33:
./…/common/inc/stopwatch_base.inl:67: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.inl:78: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:25,
from src/cutil.cpp:33:
./…/common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:33:
./…/common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:34:
./…/common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type
./…/common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:18,
from src/stopwatch.cpp:17:
./…/common/inc/stopwatch_base.h:56: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch_base.h:72,
from ./…/common/inc/stopwatch.h:18,
from src/stopwatch.cpp:17:
./…/common/inc/stopwatch_base.inl:67: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_base.inl:78: warning: type qualifiers ignored on function return type
In file included from ./…/common/inc/stopwatch.h:25,
from src/stopwatch.cpp:17:
./…/common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
In file included from src/stopwatch.cpp:17:
./…/common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type
src/stopwatch.cpp:71: warning: type qualifiers ignored on function return type
In file included from src/stopwatch_linux.cpp:15:
./…/common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./…/common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
a - obj/i386/release/bank_checker.cpp.o
a - obj/i386/release/cmd_arg_reader.cpp.o
a - obj/i386/release/cutil.cpp.o
a - obj/i386/release/stopwatch.cpp.o
a - obj/i386/release/stopwatch_linux.cpp.o
a - obj/i386/release/multithreading.cpp.o
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/common »
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/shared »
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/shared »
make -C src/dct8x8/
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/src/dct8x8 »
In file included from …/…/common/inc/cutil_inline.h:20,
from Common.h:37,
from BmpUtil.cpp:32:
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argc’
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argv’
BmpUtil.cpp: In function ‘int PreLoadBmp(char*, int*, int*)’:
BmpUtil.cpp:281: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp:288: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp: In function ‘void LoadBmpAsGray(char*, int, ROI, byte*)’:
BmpUtil.cpp:326: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp:327: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp:334: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp:335: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
BmpUtil.cpp:336: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
In file included from …/…/common/inc/cutil_inline.h:20,
from Common.h:37,
from DCT8x8_Gold.cpp:24:
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argc’
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argv’
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/src/dct8x8 »
make -C src/randomFog/
make[1]: entrant dans le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/src/randomFog »
In file included from …/…/common/inc/cutil_inline.h:20,
from randomFog.cpp:21:
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argc’
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argv’
randomFog.cpp:357: warning: unused parameter ‘x’
randomFog.cpp:357: warning: unused parameter ‘y’
In file included from …/…/common/inc/cutil_inline.h:20,
from rng.cpp:28:
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argc’
…/…/common/inc/cutil_inline_runtime.h:472: warning: unused parameter ‘argv’
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/randomFog] Erreur 1
make[1]: quittant le répertoire « ~/NVIDIA_GPU_Computing_SDK/C/src/randomFog »
make: *** [src/randomFog/Makefile.ph_build] Erreur 2

Can one help me with this

Thanks in advance