You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UF HPC has all of the dependencies we need in the module system. CMake cannot automatically find the dependencies using the module system. We need to use a script similar to this to specify all the dependencies in the CMake:
First line loads the required modules. It basically sets the environment variables that we are using in the next line. Next line is a CMake command that sets the value of several CMake variables from environment variables.
In order to test or run swarm applications, you would need to submit jobs to `gpu` queue. For example:
#!/bin/bash
#
#PBS -q gpu
#PBS -l nodes=1:ppn=1:gpus=1:fermi
#PBS -l walltime=00:30:00
#PBS -N SwarmTest
#PBS -d /path/to/swarm/build
echo On Host $HOSTNAME
export CUDA_DEVICE=`sed -e 's/.*-gpu//g' < $PBS_GPUFILE`
echo Running on GPU: $CUDA_DEVICE
make test
On the 7th line, change the part after -d to the absolute path to your Swarm-NG build directory, (e.g. the directory from which you run cmake).