Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
courses:cs377-201951:tech_ref [2019/04/28 21:15] mlsmith [CUDA] |
courses:cs377-201951:tech_ref [2019/04/28 21:22] mlsmith [CUDA] |
||
---|---|---|---|
Line 66: | Line 66: | ||
* hpc is the cluster' | * hpc is the cluster' | ||
* webpage: https:// | * webpage: https:// | ||
- | * uses Slurm (Simple Linux Resource Manager) to run jobs (interactive or batch) | + | * uses Slurm (Simple Linux Resource Manager) to run jobs (interactive or batch) |
+ | === Compiling and running CUDA programs === | ||
+ | Must ssh to hpc: | ||
+ | ssh VassarID@hpc.cs.vassar.edu | ||
+ | |||
+ | To compile (using Nvidia C compiler): | ||
+ | nvcc -o my-cuda-prog my-cuda-prog.cu | ||
+ | |||
+ | To run interactive: | ||
+ | srun my-cuda-prog | ||
+ | |||
+ | To run batch: (using slurm--requires script) | ||
+ | sbatch my-cuda-script | ||