News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

compile ANSI C project including CUDA from Code::Blocks

Started by Blokkolnam, August 20, 2008, 05:07:13 PM

Previous topic - Next topic

Blokkolnam

Hi!

I have an ANSI C project in Code::Blocks. I have the mingw compiler what comes from Code::Blocks. I can compile my project just fine, no problem. But. There is the NVidia CUDA (http://www.nvidia.com/object/cuda_home.html#) C language environment what I would like to use to replace parts of my codes to speed up my applications (data analysis with huge FFT and matrix operations). I have the videocard, and all of the necessary softwares installed for CUDA (precompiled CUDA examples run on my PC). 
I would like to know, how I could change the compiler settings in Code::Blocks so I could compile my project with built-in CUDA parts.
I tried some settings in the "global compiler settings", but i had no luck to manage compiling my project with the CUDA nvcc.exe compiler. I am not familiar in the topic of compilers, dependences, libraries,   I always compiled ANSI C with gcc in Code::Blocks...

Someone could help me? I google-ed half a day to find examples, but no luck.
thanks much,
regards!