Versions Compared

Key

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

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@a55
showSpacefalse
sortmodified
typepage
reversetrue
labelskb-how-to-article
cqllabel = "kb-how-to-article" and type = "page" and space = "SH" and text ~ "apptainer"

📋 Example definition file used to setup Ansys Rocky through Apptainer and apptainer command to call Ansys Rocky

Code Block
Bootstrap: docker
From: centos:7

%post

yum install -y squashfs-tools
yum install -y fontconfig
yum install -y mlocate
yum install -y rsync
yum install -y pciutils
yum install -y alsa-lib
#yum install -y nss-tools
#yum install -y firefox
yum install -y cmake pkg-config
yum install -y xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps
yum install -y mesa-libGL-devel mesa-libGLU mesa-dri-drivers mesa-libGLw-devel.x86_64
yum install -y qt5-qtbase qt5-qtbase-devel
yum install -y glx-utils

#export NOW=`date`
#export TZ=America/New_York
#export LANGUAGE=en_US.UTF-8
#export LC_ALL=en_US.UTF-8
#export LANG=en_US.UTF-8
#export LC_CTYPE=en_US.UTF-8
#export LSTC_LICENSE=network
#export LSTC_LICENSE_SERVER=1055@engr-license3.engr.uconn.edu
#export ANSYS241_DIR=/gpfs/sharedfs1/admin/hpc2.0/apps/ansys/2024R1/v241
#export ANSYSLMD_LICENSE_FILE=/gpfs/sharedfs1/admin/hpc2.0/apps/ansys/2024R1/shared_files/licensing/ansyslmd.ini
#export QT_DEBUG_PLUGINS=1

%environment
export NOW=$NOW
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8

export LSTC_LICENSE=network
export LSTC_LICENSE_SERVER=1055@engr-license3.engr.uconn.edu
#export ANSYS241_DIR=/gpfs/sharedfs1/admin/hpc2.0/apps/ansys/2024R1/v241
export ANSYSLMD_LICENSE_FILE=/gpfs/sharedfs1/admin/hpc2.0/apps/ansys/2024R1/shared_files/licensing/ansyslmd.ini
export ANSYS241_DIR=/ansys/v241
export AWP_ROOT241=/ansys/v241

%runscript
echo "Container was created $NOW"
echo $LANGUAGE
echo $LC_ALL
echo $LANG
echo $LC_CTYPE
echo $LSTC_LICENSE
echo $LSTC_LICENSE_SERVER
echo $ANSYS241_DIR
echo $ANSYSLMD_LICENSE_FILE
echo $AWP_ROOT241

%labels
Author hpc@uconn
Version v0.1

An interactive GPU job needs to be submitted, the apptainer module loaded, and the following apptainer command to call Ansys Rocky:

Code Block
apptainer exec --nv --unsquash -H $HOME:/home -B /gpfs/sharedfs1/admin/hpc2.0/apps/ansys/2024R1:/ansys -B /gpfs/sharedfs1/directory/on/HPC/here:/shared/PI(group)/directoryHere AnsysRocky.sif /ansys/v241/rocky/Rocky

Errors will show up, but say Y to the prompt Ansys Rocky gives about overwriting:

Code Block
mv: try to overwrite ‘/ansys/v241/rocky/Rocky.desktop’, overriding mode 0775 (rwxrwxr-x)? y

If other errors show up, ignore the errors and rerun the above apptainer command a couple of more times until Ansys Rocky loads. The errors are Red Herring errors and can be ignored.