Dark SHINE Simulation Software Framework
2.6K
In a terminal or PowerShell:
git clone https://gitlab.com/ykrsama/darkshine-docker.git
Which contains scripts for Docker on MacOS, Linux, WSL, Windows, and Singularity on Linux. Currently, GUI is only supported on local hosts.
[[TOC]]
Setup X11 forwarding for Event Display Apps
Install XQuartz
To enable the OpenGL rendering, run in the host terminal:
defaults write org.xquartz.X11 enable_iglx -bool true
From the XQuartz preferences, in the security tab, make sure Allow connections from network clients is enabled.
Restart XQuartz.
Run Simple example
cd darkshine-docker
./docker-macos.sh # Mount current directory, mkdir run, and create config files
# Test
DSimu -b 100 # Simulation, reads default.yaml, outputs dp_simu.root
DDis # Event display, reads dp_simu.root
exit
Alias command
echo alias dss-docker=\"$PWD/docker-macos.sh bash --init-file /root/dss.sh\" >> ~/.zshrc
source ~/.zshrc
dss-docker will simply mount the current directory, without creating config files.
Install Docker and run
sudo apt install docker.io # Threre are some problem in snap version
cd darkshine-docker
./docker-linux.sh # Mount current directory, mkdir run, and create config files
# Test
DSimu -b 100 # Simulation, reads default.yaml, outputs dp_simu.root
DDis # Event display, reads dp_simu.root
exit
Alias command
echo alias dss-docker=\"$PWD/docker-linux.sh bash --init-file /root/dss.sh\" >> ~/.bashrc
source ~/.bashrc
dss-docker will simply mount the current directory, without creating config files.
Setup X11 forwarding
Run a new PowerShell as an Administrator:
choco install vcxsrv
Run Xlaunch from start menu, go with all the default settings, however do check Disable access control. X server should show up in your tray icons.
Run (PowerShell as normal user)
cd darkshine-docker
./docker-win.ps1 # Mount current directory, mkdir run, and create config files
# Test
DSimu -b 100 # Simulation, reads default.yaml, outputs dp_simu.root
DDis # Event display, reads dp_simu.root
exit
Install singularity. If you have access to a machine running CVMFS, simply
export PATH="/cvmfs/atlas.cern.ch/repo/containers/sw/singularity/x86_64-el7/current/bin:$PATH"
For SJTU bl-0 cluster: don't work in the login node
condor_submit -i
Run
cd darkshine-docker
./singularity.sh
echo alias dss-docker=\"$PWD/singularity.sh bash --init-file /root/dss.sh\" >> ~/.bashrc
source ~/.bashrc
The Docker supports debugger gdb, dynamic analysis tools valgrind, and profiler perf.
Toolchains
DSSykrsama/darkshine-simulation:latest-e DISPLAY=host.docker.internal:0 -v /tmp/.X11-unix:/tmp/.X11-unix:ro --net host --rmCMake
DSSRun/Debug Configurations
Environment variables:
HOME /root
DISPLAY host.docker.internal:0
Environment variables - Load variables from file: /entry-point.sh
Content type
Image
Digest
sha256:b9d37fffd…
Size
3 GB
Last updated
8 months ago
docker pull ykrsama/darkshine-simulation