HelpDesk

https://helpdeskgpa.pythonanywhere.com/

Steps to execute CUDA program On your CPU(host) open terminal

  1. Login to the server i.e GPU by executing the following command

ssh 172.16.8.97

  1. It will prompt you for password (Enter password)
  2. Create a empty file through terminal using following command

touch file_name.cu

  1. To open the file write the following command in the terminal

vim file_name.cu

  1. i) Press ‘i’ to get into the inserting mode. ii) After completion of the code press ‘ESC’ to exit inserting mode
  2. To save and exit the file press :wq
  3. To run the file create an object file by using following command

‘ nvcc file_name.cu -o obj_name’

  1. To execute the object file use the command

‘ ./obj_name‘