Running CUDA without GPU

Hi Experts,

          I have developed a simple CUDA program. Since i don't have GPU card in my PC i am running it in Enudebug mode. i have included -deviceemu in command line while compiling .cu file. But i am not getting any output...

          Is it anything i am missing?...First of all, Is it possible to get output without GPU?

Thanks in Advance,

Karguvel

Sure you should get the output in deviceemu mode without having the GPU in your machine.
Have you checked the error returned after kernel execution or is the kernel not getting executed.

Sure you should get the output in deviceemu mode without having the GPU in your machine.
Have you checked the error returned after kernel execution or is the kernel not getting executed.

Hi Kargu,

Yes it is possible. for details please contact me at tingu.aman@gmail.com

Hi Kargu,

Yes it is possible. for details please contact me at tingu.aman@gmail.com

it would be great if you could post here on the forums so that others searching for the same answer may know…

K.Thank you. It’s some version problem. I have installed Cudatoolkit 3.0V and CudaSDK2.3v. Now i have reinstalled everything in same version.Now its working. :rolleyes:

I installed CUDA 3.0 toolkit and GPU SDk 3.0 on my Ubuntu 9.10 Karmic Kola x64 without any GPU.

I tried compiling the sample cuda files using “make emu=1” but it throws some errors.

ngv@ngv-laptop:~/NVIDIA_GPU_Computing_SDK/C$ make

make[1]: Entering directory `/home/ngv/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

src/cutil.cpp: In function ‘CUTBoolean::loadPPM(const char*, unsigned char**, unsigned int*, unsigned int*, unsigned int*)’:

src/cutil.cpp:174: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

src/cutil.cpp:196: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

src/cutil.cpp:231: 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/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]: Leaving directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Leaving directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Leaving directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/home/ngv/NVIDIA_GPU_Computing_SDK/shared’

make[1]: Leaving directory `/home/ngv/NVIDIA_GPU_Computing_SDK/shared’

make -C src/transposeNew/

make[1]: Entering directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/src/transposeNew’

/usr/include/string.h:43: error: inline function ‘void* memcpy(void*, const void*, size_t)’ cannot be declared weak

/usr/include/string.h:64: error: inline function ‘void* memset(void*, int, size_t)’ cannot be declared weak

/usr/include/bits/string3.h:49: error: inline function ‘void* memcpy(void*, const void*, size_t)’ cannot be declared weak

/usr/include/bits/string3.h:78: error: inline function ‘void* memset(void*, int, size_t)’ cannot be declared weak

/usr/local/cuda/bin/…/include/common_functions.h:59: error: inline function ‘void* memset(void*, int, size_t)’ cannot be declared weak

/usr/local/cuda/bin/…/include/common_functions.h:62: error: inline function ‘void* memcpy(void*, const void*, size_t)’ cannot be declared weak

/usr/local/cuda/bin/…/include/math_functions.h:422: error: inline function ‘int __signbit(double)’ cannot be declared weak

/usr/local/cuda/bin/…/include/math_functions.h:427: error: inline function ‘int __signbitf(float)’ cannot be declared weak

/usr/local/cuda/bin/…/include/math_functions.h:440: error: inline function ‘int __signbitl(long double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbit(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitf(float)’ cannot be declared weak

/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitl(long double)’ cannot be declared weak

/usr/include/bits/mathinline.h:36: error: inline function ‘int __signbitf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:42: error: inline function ‘int __signbit(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:48: error: inline function ‘int __signbitl(long double)’ cannot be declared weak

/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, …)’:

/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++locale.h:86: error: ‘__builtin_stdarg_start’ was not declared in this scope

make[1]: *** [obj/x86_64/release/transposeNew.cu.o] Error 1

make[1]: Leaving directory `/home/ngv/NVIDIA_GPU_Computing_SDK/C/src/transposeNew’

make: *** [src/transposeNew/Makefile.ph_build] Error 2

Can you please tell me how did you managed to get the code compiled and running in emulation mode?

thanks

ngv

Sorry… :huh:

I don’t know about how to work with Ubuntu…

But your errors seems to be some function declaration errors try to check that… otherwise

publish your questions on

General CUDA GPU Computing Discussion

hope you will get better response…