Totally n00b - Some help pls Ask some basic steps

Hello everyone,

I am having a 8800GTS and i am trying to set up the CUDA SDK, i have read every pdf but still can’t get started.

I am having 2 major questions:

  1. I should have Visual Studio ONLY or every C compiler is ok?

  2. I have followed the next steps:

But i can’t move on further of Step 4 cause i can’t understand how i will build the executable file :(

Could you help me with this questions? I would be really grateful to anyone who could help me…

If you’re following those steps and using Windows XP, you should be using Visual Studio.NET or Visual Studio 2005.

Are you able to compile any of the projects in the ‘projects’ directory? Just double click one of the .sln files and build the project to test it. Try running the ‘bitonic’ project and see if it says Test PASSED.

thanx alot for your reply, i’ll install Visual Studio and i’ll post again if i have any further problems

PLEASE HELP ME!
I can’t find out where to start!
Please i need your help!
Could someone in some steps to explain me how to make a source file for G80 and how to compile?
I am trying to make a simple source file of adding the number from 1 to 10 but i can’t configure our how!
Pls some help! :blink:
:wacko: :wacko: :wacko:

Once you have CUDA installed, I’d say play with one of the sample projects to get started with programming. I believe there’s even a sample on integration with existing cpp projects. You can find samples in the C:/program files/Nvidia Corporation/SDK10/CUDA/Projects (or something like that) directory, assuming you used installation defaults.

Paulius

P.S. Also, read the programming guide first :) The matrix multiplication sample at the end gives you a really good idea of how things work.

Still can’t configure the set up!
PLEASE SOME HELP!
I am desperate! <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ />
I can’t find out how to compile a simple program like the following one:

int a,b=10,c=5;
a=b+c;
print("%d", a);

How i compile it?
I have read ALL the pdf but still don’t know where to start…PLS some help
<img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ /> <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ />

The CUDA compiler is called nvcc.

To compile a file called sample.cu ( .cu indicates a CUDA file):
nvcc sample.cu

If you want to know all the possible flags for the compiler or have a better understanding of the compilation process, there is a pdf file called NVCC_0.8.pdf in the doc folder.

Now i got it…i just read the rest flags…
I have one more question… Could someone write the source code of adding for example 2 nubers and printing out the result? Which is the source code of this program on CUDA?

pls some help? <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=’:’(’ />

Look at this post:

http://forums.nvidia.com/index.php?showtopic=34309

There is an example on how to add 2 vectors.