The CDS Turing cluster has 24 nodes with 8 cores each.
First OpenMP program
- Download test-openmp.c, Makefile, sample-script. The script runs a simple OpenMP program on a single node.
- Login to the turing cluster with your account.
- Create a directory called openmp_test. In another terminal, transfer the three downloaded files from your unix machine to the turing cluster’s openmp_test directory using scp:
>> scp submit-script <your-account>@<turing-cluster-ip>:<your-home-area>/openmp_test - Compile using
>> make - In the submission script, change “/home/<HOME>/openmp_test” to your directory containing test-openmp.c
- Submit to PBS using
>> qsub sample-script - Monitor your submitted job using
>> qstat - After your program finishes, you will see output of your program in “myjob<id>.o<num>” file. If your run produced error, you will see the error message in “myjob<id>.e<num>” file
Happy OpenMP!
First MPI program
- Download test-mpi.c, Makefile, sample-script. The script runs 32 MPI processes on 32 cores across 4 nodes with 8 processes per node..
- Login to the turing cluster with your account.
- Create a directory called mpi_test. In another terminal, transfer the three downloaded files from your unix machine to the turing cluster’s openmp_test directory using scp:
>> scp submit-script <your-account>@<turing-cluster-ip>:<your-home-area>/mpi_test - Compile using
>> make - In the submission script, change “/home/<HOME>/mpi_test” to your directory containing test-mpi.c
- Submit to PBS using
>> qsub sample-script - Monitor your submitted job using
>> qstat - After your program finishes, you will see output of your program in “myjob<id>.o<num>” file. If your run produced error, you will see the error message in “myjob<id>.e<num>” file
Happy MPI!
First CUDA program
- Download test-cuda.cu, Makefile, sample-script
- Login to the turing cluster with your account
- Create a directory called cuda_test. In another terminal, transfer the three downloaded files from your unix machine to the turing cluster’s cuda_test directory using scp:
>> sc p submit-script <your-account>@<turing-cluster-ip>:<your-home-area>/cuda_test - Compile using
>> make - In the submission script, change “ /home/secvss/cuda-test” to your directory containing test-cuda.cu
- Submit to PBS using
>> qsub sample-script - Monitor your submitted job using
>> qstat - After your program finishes, you will see output of your program in “myjob<id>.o<num>” file. If your run produced error, you will see the error message in “myjob<id>.e<num>” file.
Happy CUDA!