Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
courses:cs377-201951:tech_ref [2019/04/28 21:22] mlsmith [CUDA] |
courses:cs377-201951:tech_ref [2019/04/28 21:23] mlsmith [CUDA] |
||
---|---|---|---|
Line 70: | Line 70: | ||
=== Compiling and running CUDA programs === | === Compiling and running CUDA programs === | ||
- | Must ssh to hpc: | + | Must ssh to hpc (from behind the CS firewall): |
- | ssh VassarID@hpc.cs.vassar.edu | + | |
To compile (using Nvidia C compiler): | To compile (using Nvidia C compiler): | ||
- | nvcc -o my-cuda-prog my-cuda-prog.cu | + | |
To run interactive: | To run interactive: | ||
- | srun my-cuda-prog | + | |
To run batch: (using slurm--requires script) | To run batch: (using slurm--requires script) | ||
- | sbatch my-cuda-script | + | |