Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
#!/bin/bash
#
#SBATCH --job-name=hello
#SBATCH --output=hello.out
#SBATCH --ntasks=4 # The job spawns in 4 cores
#SBATCH --time=10:00
# From here the job starts
srun parallel.sh
srun sleep 60

Example of gpu use:

Now in Altamira are available 3 gpus with 12 cpus (limit the number of tasks running on the gpu). The user can access them by adding a new parameter name --partition  in the script and allocates the job in one of the gpus. 

Code Block
languagebash
#!/bin/bash
#
#SBATCH --job-name=hello
#SBATCH --partition=gpus
#SBATCH --output=hello.out
#SBATCH --ntasks=12 # The job spawns in 12 cores
#SBATCH --time=10:00
# From here the job starts
module load CUDA


Software

Modules Enviroment

...