Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
9a8cac60
Commit
9a8cac60
authored
Mar 09, 2022
by
gsell
Browse files
Update README.md
parent
c1d243d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
MPI/elegant/README.md
MPI/elegant/README.md
+10
-4
No files found.
MPI/elegant/README.md
View file @
9a8cac60
...
...
@@ -30,10 +30,12 @@ Instructions to build [`Pelegant`](https://ops.aps.anl.gov/publish/Pelegant_manu
### Initialize environment
```
SDDS_VERSION=5.1
ELEGANT_VERSION=2021.4.0
ELEGANT_RELEASE=-1
DOWNLOAD_DIR="/opt/psi/var/distfiles/elegant"
```
With OpenMPI not optimized for Merlin/SLURM:
```
module load gcc/10.3.0 gsl/2.7 lapack/3.10.0 openmpi/4.0.5
...
...
@@ -45,11 +47,12 @@ module load gcc/10.3.0 gsl/2.7 lapack/3.10.0 openmpi/4.0.5-1_slurm
USE_FLAGS="_slurm"
```
PREFIX="${PMODULES_ROOT}/MPI/elegant/${ELEGANT_VERSION}${USE_FLAGS}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}"
```
PREFIX="${PMODULES_ROOT}/MPI/elegant/${ELEGANT_VERSION}${ELEGANT_RELEASE}${USE_FLAGS}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}"
```
### Setup Environment
```
export EPICS_BASE="${PREFIX}/epics/base"
export HOST_ARCH=linux-x86_64
export EPICS_HOST_ARCH=linux-x86_64
...
...
@@ -83,11 +86,13 @@ tar xvf "${DOWNLOAD_DIR}/elegant.${ELEGANT_VERSION}.tar.gz"
### Configure EPICS base and OAG applications
```
cd epics/base
cd
"${PREFIX}/
epics/base
"
make "${ARGS[@]}"
cd "${PREFIX}/oag/apps/configure"
sed -i "s/clean::/clean:/" RULES_PYTHON
make "${ARGS[@]}"
cd "${PREFIX}/oag/apps/src/physics"
make "${ARGS[@]}"
```
### Compile SDDS 5.1
...
...
@@ -214,6 +219,7 @@ make "${ARGS[@]}" MPI=1 -C SDDSlib
```
cd "${PREFIX}/oag/apps/src/elegant"
make "${ARGS[@]}" STATIC_BUILD=NO
make "${ARGS[@]}" -C elegantTools
```
### Compile Pelegant
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment