how can i run a cuda code on linux?

hi
i have a code that writed in c. this code have a kernel that will be run with gpu on the linux. but i dont now the commaond line that is needed.
who can help me?

Could you elaborate?

Some code snippets, error codes, etc.?

Which functions do you call and whether they work or not.

Could you elaborate?

Some code snippets, error codes, etc.?

Which functions do you call and whether they work or not.

i have run my code on widows with vs08. i have no error when running my code with vs08. but now i want to run my code on linux. i want to now the command line that is needed for compilation and execution of my code.

i have run my code on widows with vs08. i have no error when running my code with vs08. but now i want to run my code on linux. i want to now the command line that is needed for compilation and execution of my code.

How about starting with the Linux getting started guide?

How about starting with the Linux getting started guide?

Download the linux version run ‘Make’. You can execute the code in ‘bin’ directory.

Download the linux version run ‘Make’. You can execute the code in ‘bin’ directory.

please tell me the command line that is needed

for example if i have a file in cuda that is named “example.cu” how can i compile and run it.

i’m not familiar with linux please tell the COMPLETE command line.

please tell me the command line that is needed

for example if i have a file in cuda that is named “example.cu” how can i compile and run it.

i’m not familiar with linux please tell the COMPLETE command line.

please tell me the command line that is needed

for example if i have a file in cuda that is named “example.cu” how can i compile and run it?

i’m not familiar with linux please tell the COMPLETE command line.

please tell me the command line that is needed

for example if i have a file in cuda that is named “example.cu” how can i compile and run it?

i’m not familiar with linux please tell the COMPLETE command line.

Assuming you have everything installed correctly, and you have a simple code that’s all in one file, you should be able to type

nvcc -o example example.cu

at a command prompt. This will produce the executable file “example”. To run it, simply type “example” at the command prompt. (Again, this is assuming your system is set up correctly. Many aren’t by default, so you may have to type “./example” if you get a “command not found” message.)

Assuming you have everything installed correctly, and you have a simple code that’s all in one file, you should be able to type

nvcc -o example example.cu

at a command prompt. This will produce the executable file “example”. To run it, simply type “example” at the command prompt. (Again, this is assuming your system is set up correctly. Many aren’t by default, so you may have to type “./example” if you get a “command not found” message.)

Thanks a lot

Thanks a lot