Skip to content
Snippets Groups Projects
intel-devcloud.md 1.19 KiB
Newer Older

# Running on Intel DevCloud

Provided you have asked for an account ahead of time, on the [Intel Tiber Developer Cloud for oneAPI](https://devcloud.intel.com/oneapi/home/), and made the Intel recommended local ssh installation, that is how you may run the tests with `qsub`:

```sh
ssh devcloud
git clone https://gitlab.in2p3.fr/CodeursIntensifs/grayscott/GrayScottSyclSetup.git

# check CPU nodes
cd GrayScottSyclSetup/CheckOneApiCpu
CHAMONT David's avatar
CHAMONT David committed
qsub -l nodes=1:xeon:ppn=2 -d . coliru.bash
CHAMONT David's avatar
CHAMONT David committed
cd ../CheckOneApiGpu
qsub -l nodes=1:gpu:ppn=2 -d . coliru.bash
One can check the status of current jobs with `qstat`, or `watch -n 1 qstat -n -1`, and remove them with `qdel <job_id>`.
CHAMONT David's avatar
CHAMONT David committed
Additionally, if you source the script `env.bash`, you will be provided some shortcut and helper functions:

```sh
# prepare the bash environment
cd GrayScottSyclSetup
source env.bash

# check CPU nodes
cd CheckOneApiCpu
cpusub coliru.bash
qclean

# Check GPU nodes
cd ../CheckOneApiGpu
gpusub coliru.bash
qclean
```

The helper function `qclean` will remove all the output of the previous jobs you have submitted.

Have a look at `coliru.bash` to see the various compile and run steps, and optionally adapt it to your own needs.