If you haven't done so already, follow this guide to build the exercise directory structure.
From the syclacademy directory
cd build/Code_Exercises/<Exercise directory>
and execute:
make <exercise name>_source
- to build source.cppmake <exercise name>_solution
- to build the solution providedmake
- to build both
Alternatively from a terminal at the command line:
icpx -fsycl -o <exercise name>_source ../Code_Exercises/<Exercise directory>/source.cpp
In Intel DevCloud, to run computational applications, you will submit jobs to a queue for execution on compute nodes, especially some features like longer walltime and multi-node computation is only available through the job queue. Please refer to the guide.
So wrap the binary into a script job_submission
#!/bin/bash
./<exercise name>_source
and run:
qsub -l nodes=1:gpu:ppn=2 -d . job_submission
The stdout will be stored in job_submission.o<job id>
and stderr in job_submission.e<job id>
.