[Solid_software] test singularity container with gemc
Zhiwen Zhao
zwzhao at jlab.org
Mon Aug 14 18:14:14 EDT 2017
Hi, All
jlab ifarm and farm start to support singularity container and I made a
singularity container for gemc for you to test.
Let's see if this can be a standard way to run simulation on any machine
for consistent result without need for installation
container.
If you are new to container and singularity, read
http://singularity.lbl.gov/ and
http://singularity.lbl.gov/faq
==== test it on ifarm ========================
ssh -X ifarm
cd /group/solid/solid_svn/solid_gemc2
singularity shell
/group/solid/apps/singularity_jlab_version_1.3_centos7_20170811.img
(enter container. current dir, you home dir and your login script are
shared between the host and container)
source /apps/jlab_root/setup
setenv LD_LIBRARY_PATH ${GEMC}/source:${LD_LIBRARY_PATH}
setenv SoLID_GEMC /group/solid/solid_svn/solid_gemc2
setenv PATH ${SoLID_GEMC}/source/${GEMC_VERSION}:${PATH}
cd script
solid_gemc solid_SIDIS_He3_full.gcard
exit (leave container)
==============================================
Please don't submit any farm job yet as jlab scicomp is fixing a problem
running singularity farm job
==== install singularity and test it on your machine ==========
quick way to install singularity on linux
wget --no-check-certificate
https://github.com/singularityware/singularity/releases/download/2.3.1/singularity-2.3.1.tar.gz
tar singularity-2.3.1.tar.gz
cd singularity-2.3.1
./configure
make dist
rpmbuild -ta singularity-2.3.1.tar.gz
sudo yum install
~/rpmbuild/RPMS/x86_64/singularity-2.3.1-0.1.el7.centos.x86_64.rpm
for windows and mac
http://singularity.lbl.gov/install-windows
http://singularity.lbl.gov/install-mac
download the image
scp
jlab_username at ftp.jlab.org:/group/solid/apps/singularity_jlab_version_1.3_centos7_20170811.img
./
then check out solid SVN
do your test
================================================================
Please let me know any problem you see and any suggestion
Thanks
Zhiwen
More information about the Solid_software
mailing list