SDK 3.0 -- problem with emulation mode

I would like compile with emulation mode because I don’t have GPU with CUDA.

lite@lite-debian:~/NVIDIA_GPU_Computing_SDK/C$ make emu=1

make[1]: Wejście do katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

In file included from src/bank_checker.cpp:19:

./../common/inc/bank_checker.h:38: warning: type qualifiers ignored on function return type

./../common/inc/bank_checker.h:224: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:61: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:263: warning: type qualifiers ignored on function return type

In file included from ./../common/inc/stopwatch.h:22,

				 from src/cutil.cpp:37:

./../common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_base.h:64: warning: type qualifiers ignored on function return type

In file included from ./../common/inc/stopwatch_base.h:76,

				 from ./../common/inc/stopwatch.h:22,

				 from src/cutil.cpp:37:

./../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:29,

				 from src/cutil.cpp:37:

./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:54: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:130: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:147: warning: type qualifiers ignored on function return type

In file included from src/cutil.cpp:37:

./../common/inc/stopwatch.h:39: warning: type qualifiers ignored on function return type

In file included from src/cutil.cpp:38:

./../common/inc/bank_checker.h:38: warning: type qualifiers ignored on function return type

./../common/inc/bank_checker.h:224: warning: type qualifiers ignored on function return type

In file included from ./../common/inc/stopwatch.h:22,

				 from src/stopwatch.cpp:21:

./../common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_base.h:64: warning: type qualifiers ignored on function return type

In file included from ./../common/inc/stopwatch_base.h:76,

				 from ./../common/inc/stopwatch.h:22,

				 from src/stopwatch.cpp:21:

./../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:29,

				 from src/stopwatch.cpp:21:

./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:54: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:130: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:147: warning: type qualifiers ignored on function return type

In file included from src/stopwatch.cpp:21:

./../common/inc/stopwatch.h:39: warning: type qualifiers ignored on function return type

src/stopwatch.cpp:75: warning: type qualifiers ignored on function return type

In file included from src/stopwatch_linux.cpp:19:

./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:54: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:130: warning: type qualifiers ignored on function return type

./../common/inc/stopwatch_linux.h:147: warning: type qualifiers ignored on function return type

a - obj/x86_64/release/bank_checker.cpp.o

a - obj/x86_64/release/cmd_arg_reader.cpp.o

a - obj/x86_64/release/cutil.cpp.o

a - obj/x86_64/release/stopwatch.cpp.o

a - obj/x86_64/release/stopwatch_linux.cpp.o

a - obj/x86_64/release/multithreading.cpp.o

make[1]: Opuszczenie katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Wejście do katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Opuszczenie katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Wejście do katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Opuszczenie katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Wejście do katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/shared'

make[1]: Opuszczenie katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/shared'

make -C src/oceanFFT/ 

make[1]: Wejście do katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/src/oceanFFT'

obj/x86_64/emurelease/oceanFFT.cpp.o: In function `cleanup()':

oceanFFT.cpp:(.text+0xb7c): undefined reference to `cudaGraphicsUnregisterResource'

oceanFFT.cpp:(.text+0xb8c): undefined reference to `cudaGraphicsUnregisterResource'

obj/x86_64/emurelease/oceanFFT.cpp.o: In function `runCuda()':

oceanFFT.cpp:(.text+0x15d1): undefined reference to `cudaGraphicsMapResources'

oceanFFT.cpp:(.text+0x15f2): undefined reference to `cudaGraphicsResourceGetMappedPointer'

oceanFFT.cpp:(.text+0x162c): undefined reference to `cudaGraphicsMapResources'

oceanFFT.cpp:(.text+0x1648): undefined reference to `cudaGraphicsResourceGetMappedPointer'

oceanFFT.cpp:(.text+0x167e): undefined reference to `cudaGraphicsUnmapResources'

oceanFFT.cpp:(.text+0x1697): undefined reference to `cudaGraphicsUnmapResources'

obj/x86_64/emurelease/oceanFFT.cpp.o: In function `runTest(int, char**)':

oceanFFT.cpp:(.text+0x1cd6): undefined reference to `cudaGraphicsGLRegisterBuffer'

oceanFFT.cpp:(.text+0x1d02): undefined reference to `cudaGraphicsGLRegisterBuffer'

collect2: ld returned 1 exit status

make[1]: *** [../../bin/linux/emurelease/oceanFFT] BÅ‚Ä…d 1

make[1]: Opuszczenie katalogu `/home/lite/NVIDIA_GPU_Computing_SDK/C/src/oceanFFT'

make: *** [src/oceanFFT/Makefile.ph_build] BÅ‚Ä…d 2

With normal ‘make’ all works fine.

I have

cudatoolkit_3.0_linux_64_ubuntu9.04.run

gpucomputingsdk_3.0_linux.run

Same problem here!

Any suggestions how to solve this? Help would be very appreciated!

obj/i386/emurelease/bicubicTexture.cpp.o: In function `runBenchmark(int)':

bicubicTexture.cpp:(.text+0x924): undefined reference to `cudaGraphicsMapResources'

bicubicTexture.cpp:(.text+0x947): undefined reference to `cudaGraphicsResourceGetMappedPointer'

bicubicTexture.cpp:(.text+0xa4b): undefined reference to `cudaGraphicsUnmapResources'

obj/i386/emurelease/bicubicTexture.cpp.o: In function `initGLBuffers()':

bicubicTexture.cpp:(.text+0xc0d): undefined reference to `cudaGraphicsGLRegisterBuffer'

bicubicTexture.cpp:(.text+0xd51): undefined reference to `cudaGraphicsUnregisterResource'

obj/i386/emurelease/bicubicTexture.cpp.o: In function `cleanup()':

bicubicTexture.cpp:(.text+0x1264): undefined reference to `cudaGraphicsUnregisterResource'

obj/i386/emurelease/bicubicTexture.cpp.o: In function `display()':

bicubicTexture.cpp:(.text+0x1486): undefined reference to `cudaGraphicsMapResources'

bicubicTexture.cpp:(.text+0x14a9): undefined reference to `cudaGraphicsResourceGetMappedPointer'

bicubicTexture.cpp:(.text+0x1556): undefined reference to `cudaGraphicsUnmapResources'

collect2: ld gab 1 als Ende-Status zurück

make[1]: *** [../../bin/linux/emurelease/bicubicTexture] Fehler 1

make[1]: Verlasse Verzeichnis '/home/beckerm/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture'

make: *** [src/bicubicTexture/Makefile.ph_build] Fehler 2

I am facing a similar error. Anyone managed to solve this?

Try to disable compiling code examples. For instance on Gentoo you can set USE flag -examples for nvidia-cuda-sdk package and I was able to install SDK in emulation mode.

Hope this will help a bit.

Problem “solved”. Deleting a lot of the examples that contained OpenCL to OpenGL calls did the trick. They seem to be incompatible with the emulation option.