Ubuntu with CERN ROOT and Intel's Fortran installed.
450
This image is primarily written for the following purposes:
This image can be used like any other Docker images. If you are new to Docker, visit https://docs.docker.com/get-started/.
sudo privilegeIt is hard to use Docker when you do not have admin privileges. Instead, shared servers like HPC typically offer users an alternative way to use Docker images via Singularity. To check if singularity command is available, do the following:
user@server $ singularity --version
singularity version 3.8.0-1.el7
If things work, you should see something similar as above.
Now, you can build a local singularity image as below. We will name our singularity image as image.sif. This process will take a while.
user@server $ singularity build image.sif docker://fanurs/ifort-root
INFO: Starting build...
Getting image source signatures
...
INFO: Creating SIF file...
INFO: Build complete: image.sif
Known warnings
You will see many lines of
warn rootless{opt/root/lib/libASImage.so} ignoring (usually) harmless EPERM on setxattr "user.rootlesscontainers". As mentioned in the warning itself, this is currently harmless. It shall not affect the usage of this image.
Having built the image, you can now invoke it to compile and run code. Here is an example to compile a Fortran script named main.for:
user@server $ ls
main.for
user@server $ singularity exec <path-to-image.sif> ifort main.for -o main
user@server $ ls
main main.for
<path-to-image.sif> should be replaced accordingly. The remaining parts, ifort main.for, will then be executed within the image. You can replace them with any command that you would like to run. For instance, to run the compiled code main, simply do:
user@server $ singularity exec <path-to-image.sif> ./main
Hello Docker!
To read more about the Singularity commands, visit https://docs.sylabs.io/guides/latest/user-guide/cli.html.
The latest version (v1.0) is built upon ROOT's image, particularly, 6.26.10-ubuntu22.04. See https://hub.docker.com/r/rootproject/root for more information.
Intel's Fortran Compiler for Linux (2022.2.1 release) is then installed on top of it to provide the command ifort for compilation of Fortran code. See https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#fortran for more information.
Unless the code does not compile or run properly, you should always try to use the latest version of this image for the best performance and security. By default, when you pull this image without a tag, e.g. docker pull fanurs/ifort-root, the latest version will be downloaded. To specify a version, say, v0.1, do docker pull fanurs/ifort-root:0.1. See https://hub.docker.com/r/fanurs/ifort-root/tags for all the tags available.
For singularity users, you can use similar syntax, e.g. singularity build image.sif docker://fanurs/ifort-root:0.1 would download v0.1.
This image is maintained by Fanurs, on behalf of the HiRA group.
Content type
Image
Digest
sha256:f671a3fe0…
Size
1.5 GB
Last updated
almost 4 years ago
docker pull fanurs/ifort-root