Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tags in this Discussion

CUDA samples not compiling - linux mint 12
  • Hello All,

    I'm trying to get the CUDA samples to compile in a recent linux distro.
    Using Linux mint (latest, 12), I can get use the nvidia display drivers (latest), but not the developer drivers as the kernel is not supported (>2.6)

    I've installed the toolkit 4.0, which seems to work.

    nvcc-version gives:

    Copyright (c) 2005-2011 NVIDIA Corporation
    Built on Thu_May_12_11:09:45_PDT_2011
    Cuda compilation tools, release 4.0, V0.2.1221


    The problem is that I can't compile the samples;
    I have taken care of the g++ version check (by changing line 82 in the host file)
    The environment is properly set

    This is the error:

    jeffrey@famicom ~/NVIDIA_GPU_Computing_SDK $ make
    make[1]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/shared'
    make[1]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/shared'
    make[1]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C'
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/common'
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/shared'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/shared'
    make -C src/matrixMul/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'
    make -C src/MonteCarloMultiGPU/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'
    make -C src/sortingNetworks/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'
    make -C src/fastWalshTransform/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'
    make -C src/simpleVoteIntrinsics/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'
    make -C src/matrixMulDrv/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDrv'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDrv'
    make -C src/convolutionSeparable/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/convolutionSeparable'
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/convolutionSeparable'
    make -C src/threadFenceReduction/
    make[2]: Entering directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction'
    obj/x86_64/release/threadFenceReduction.cu_11.o: In function `getNumBlocksAndThreads(int, int, int, int&, int&)':
    tmpxft_000014d8_00000000-4_threadFenceReduction.compute_20.cudafe1.cpp:(.text+0xf7b): undefined reference to `max'
    tmpxft_000014d8_00000000-4_threadFenceReduction.compute_20.cudafe1.cpp:(.text+0xf87): undefined reference to `min'
    obj/x86_64/release/threadFenceReduction.cu_11.o: In function `shmoo(int, int, int, int)':
    tmpxft_000014d8_00000000-4_threadFenceReduction.compute_20.cudafe1.cpp:(.text+0x144e): undefined reference to `min'
    collect2: ld returned 1 exit status
    make[2]: *** [../../bin/linux/release/threadFenceReduction] Error 1
    make[2]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction'
    make[1]: *** [src/threadFenceReduction/Makefile.ph_build] Error 2
    make[1]: Leaving directory `/home/jeffrey/NVIDIA_GPU_Computing_SDK/C'
    make: *** [all] Error 2


    thanks
  • 3 Comments sorted by
  • Hello amma!

    Did you forget to include header for min function?
    I'd like to have a look at a piece of your code.
  • And you also mentioned, that "I have taken care of the g++ version check (by changing line 82 in the host file)"
    What have you changed?
  • RU still there? Did you try to make single samples?
    G.