Git Product home page Git Product logo

abaqus-2017-centos-7-singularity's Introduction

Singularity container for Abaqus 2017

Abaqus works well under Centos but is much less likely to work well under a bleeding edge distro like Arch, so let's run Abaqus within a Singularity container, setting things up in such a way that we can run Abaqus CAE with hardware-accelerated (NVIDIA) graphics.

Preparations

  1. Make sure you have Singularity 2.4.2 installed.

  2. Symlink the .iso installer for Abaqus 2017 into a clone of this repository.

  3. Ensure that the license server(s) listed in assets/cae-UserIntentions_CODE.xml (see licenseServer1/licenseServer2/licenseServer3 in that file) are accessible i.e. if they are only reachable after bringing up a VPN connection, then bring that up now.

  4. If /tmp is 'small' (e.g. 'only' 16GB) then Singularity will run out of space when trying to build your Abaqus image, so you may want to create a directory somewhere else for Singularity to write temporary files to:

    mkdir -p -m 0700 $HOME/.cache/singularity 

Building the image

Right, let's start building our Singularity image. The build process as defined in our .def file:

  1. Unpacks the installer ISO;
  2. Installs install-time and run-time OS dependencies. The run-time dependencies include VirtualGL and libjpeg-turbo.
  3. Kicks off the Abaqus installer, using 'UserIntentions' files to automate the install.
sudo SINGULARITY_TMPDIR=$HOME/.cache/singularity singularity build abaqus-2017-centos-7.img abaqus-2017-centos-7.def

Running the container

To run Abaqus CAE with (NVIDIA) hardware-accelerated graphics:

singularity run --nv abaqus-2017-centos-7.img 

which is equivalent to:

singularity exec --nv abaqus-2017-centos-7.img vglrun abaqus cae

I need to prefix the above command(s) with optirun to ensure I use my NVIDIA GPU and not my on-board graphics chip.

Alternatively, to run Abaqus without hardware-accelerated graphics:

singularity exec --nv abaqus-2017-centos-7.img abaqus cae -mesa

How the 'UserIntentions' files were generated

These were produced by going through the Abaqus install process interactively within a Singularity 'sandbox' (writable directory-based container):

pushd some/dir
tar xfp Abaqus2017.iso
popd

# Build a writable container in a directory called 'centos-7-abaqus-2017-singuarity-sandbox'
sudo singularity build --sandbox centos-7-abaqus-2017-singuarity-sandbox  docker://centos:7

# Get a shell in that container
sudo singularity shell --bind some/dir:/iso-unpacked another/dir:/cfgs centos-7-abaqus-2017-singuarity-sandbox

# Within the container...
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum install -y ksh redhat-lsb-core perl && yum clean all
cd /iso-unpacked
# Run the Abaqus installer
ksh 1/StartTUI.sh
# Find the '*UserIntentions* files generated during the install process and save them outside the container

abaqus-2017-centos-7-singularity's People

Contributors

willfurnass avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.