Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
courses:cs377-201951:tech_ref [2019/04/28 21:18] mlsmith [CUDA] |
courses:cs377-201951:tech_ref [2019/04/28 21:23] 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) |
- | To compile: | + | === Compiling and running CUDA programs === |
- | nvcc -o my-cuda-prog my-cuda-prog.cu | + | |
+ | Must ssh to hpc (from behind the CS firewall): | ||
+ | $ ssh VassarID@hpc.cs.vassar.edu | ||
+ | |||
+ | To compile | ||
+ | | ||
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 | + | |