Skip to content

Latest commit

 

History

History
186 lines (141 loc) · 4.96 KB

File metadata and controls

186 lines (141 loc) · 4.96 KB

ANSYS software installation procedure

Home: Software management

This is a complete installation procedure of ANSYS 18.1 with EasyBuild.

Contents

Source files

On the build node (see Initial setup), one needs to download all three (3) ISO files in the restricted space:

cd /cvmfs/restricted.computecanada.ca/easybuild/sources/a/ANSYS/
ls -1 ANSYS_181*
  ANSYS_181_LINX64_DISK1.iso
  ANSYS_181_LINX64_DISK2.iso
  ANSYS_181_LINX64_DISK3.iso

Mount (or ask someone to mount as root) all three ISO files. Create folder ANSYS-18.1 and merge the content of the three ISO files in that new folder. Then, archive the ANSYS-18.1 folder in ANSYS-18.1.tar.

mkdir disk1 disk2 disk3
mount -o loop ANSYS_181_LINX64_DISK1.iso disk1
mount -o loop ANSYS_181_LINX64_DISK2.iso disk2
mount -o loop ANSYS_181_LINX64_DISK3.iso disk3
mkdir ANSYS-18.1
rsync -a disk1/ ANSYS-18.1/
rsync -a disk2/ ANSYS-18.1/
rsync -a disk3/ ANSYS-18.1/
umount disk1 disk2 disk3 && rmdir disk1 disk2 disk3
tar -cf ANSYS-18.1.tar ANSYS-18.1

cd /cvmfs/restricted.computecanada.ca/easybuild/sources/a/ANSYS/
ls -1 ANSYS-18.1.tar
  ANSYS-18.1.tar

Easybuild recipe

On the build-nodes:

# Clone repository if not done already
cd
git clone https://github.com/ComputeCanada/easybuild-easyconfigs.git

# Update repository and checkout the computecanada-main branch
cd easybuild-easyconfigs/
git pull
git checkout computecanada-main

From ANSYS-18.2.eb, create ANSYS-18.1.eb. Update the version number and the path to the tmi.conf file:

cd easybuild/easyconfigs/a/ANSYS
cp ANSYS-18.2.eb ANSYS-18.1.eb

# Edit ANSYS-18.1.eb: the version number and the tmi.conf path
diff ANSYS-18.1.eb ANSYS-18.2.eb
  2c2
  < version = '18.1'
  ---
  > version = '18.2'
  40c40
  <     setenv("TMI_CONFIG",pathJoin(root,"v181/commonfiles/MPI/Intel/5.1.3.223/linx64/etc/tmi.conf"))
  ---
  >     setenv("TMI_CONFIG",pathJoin(root,"v182/commonfiles/MPI/Intel/5.1.3.223/linx64/etc/tmi.conf"))

Testing the local installation

Proceed with a test installation in a temporary directory (/tmp/$USER) on a worker node on Archimedes with X11 forwarding enabled:

screen -S ansys181
salloc -n 8 --nodes=1 --time=24:00:00 --mem=15G --x11
eb ANSYS-18.1.eb --sourcepath=/cvmfs/restricted.computecanada.ca/easybuild/sources --prefix /tmp/$USER
# To detach from screen: Ctrl+A, D

module use /tmp/$USER/modules/2023/x86-64-v3/Core
module load ansys/18.1

# You may have to put the build-nodes's IP address in the license server firewall
export ANSYSLMD_LICENSE_FILE=1055@<license_server>
export ANSYSLI_SERVERS=2325@<license_server>

fluent &

If the test succeeds, publish the Easybuild file and do some cleanup:

# on login node
cd $HOME/easybuild-easyconfigs/easybuild/easyconfigs/a/ANSYS
git add ANSYS-18.1.eb
git pull origin computecanada-main
git commit -m "New ANSYS version 18.1"
git push origin computecanada-main

# on worker node
chmod -R u+w /tmp/$USER
rm -rf /tmp/$USER

Main installation and publication on dev

Installation on the restricted space:

screen -d -r ansys181

sudo -iu ebuser eb-pull-cc
sudo -i -g rsnt_soft -u ebuser eb ANSYS-18.1.eb --bwrap

Publication on the dev repository:

ssh publisher1
sudo su - libuser

sudo /etc/rsnt/start_transaction dev
sudo /etc/rsnt/start_transaction restricted
/etc/rsnt/rsnt-sync --what easybuild --software ansys --version 18.1 --tarball /shared_tmp/ansys-18.1-Core-x86-64-v3-2023-ebuser.tar
ls /cvmfs/restricted.computecanada.ca/easybuild/software/2023/x86-64-v3/Core/ansys/18.1
sudo /etc/rsnt/publish_transaction restricted
sudo /etc/rsnt/publish_transaction dev && exit

Testing the dev publication

Connect to cvmfs-client.computecanada.ca with X11-forwarding. Then:

proot -b /cvmfs/soft-dev.computecanada.ca:/cvmfs/soft.computecanada.ca bash
touch .licenses/ansys.lic

The content of the ansys.lic is described on that page. Then:

module load ansys/18.1
fluent &

If the test succeed, then it is possible to publish to the prod repository.

Publication on prod

Back to build-nodes:

screen -d -r ansys181
sudo su - libuser

sudo /etc/rsnt/start_transaction prod
sudo /etc/rsnt/start_transaction restricted
/etc/rsnt/rsnt-sync --what easybuild --software ansys --version 18.1 --tarball /shared_tmp/ansys-18.1-Core-x86-64-v3-2023-ebuser.tar
sudo /etc/rsnt/publish_transaction restricted
sudo /etc/rsnt/publish_transaction prod && exit

exit # Screen