# ssh <IITK-username>@<server-name> -X e.g. ssh soumitri@gpu01.cc.iitk.ac.in -X
The following "hello world" program may help you in getting started with CUDA compiler to compile a program. Please note this program does not use cuda cores.
$ vi helloworld.cu ------------------------------- $include "stdio.h" int main() { printf("Hello, world\n"); return 0; } ------------------------------- $ nvcc -o helloworld helloworld.cu $./helloworld |
With the above sample C program, CUDA compiler is used to compile it. Use nvcc to compile programs which has CUDA functionality.