1111# Valid machine names:
1212# dane (LC, Linux, x86_64, toss4),
1313# rzwhippet (LC, Linux, x86_64, toss4),
14+ # magma (LC, Linux, x86_64, toss4),
1415# rzvernal (LC, Linux, x86_64, toss4-cray),
1516# crossroads (LANL, x86_64),
1617# tuolumne (LC, Linux, x86_64, toss4-cray),
115116#
116117# Cyrus Harrison, Mon Dec 1 14:40:14 PST 2025
117118# Added support for building on dane.
119+ #
120+ # Justin Privitera, Thu Mar 19 13:51:40 PDT 2026
121+ # Re-added magma case (secretly dane case). Combined rzwhippet and
122+ # dane case.
118123#
119124# -----------------------------------------------------------------------
120125
123128#
124129
125130dane=false
126- rzwhippet=false
127131rzvernal=false
128132crossroads=false
129133tuolumne=false
149153 shift
150154 ;;
151155 -rzwhippet)
152- rzwhippet =true
156+ dane =true
153157 machine_name=" rzwhippet"
154158 shift
155159 ;;
160+ -magma)
161+ dane=true
162+ machine_name=" magma"
163+ shift
164+ ;;
156165 -rzvernal)
157166 rzvernal=true
158167 machine_name=" rzvernal"
@@ -196,13 +205,14 @@ if [ "$build_visit_script" = "undefined" ] || [ "$version" = "undefined" ]
196205then
197206 echo " Usage: -<machine name> -v <version> -s <build_visit_script>"
198207 echo " Valid machine names:"
199- echo " dane (LC, Linux, x86_64, toss4),"
200- echo " rzwhippet (LC, Linux, x86_64, toss4),"
201- echo " rzvernal (LC, Linux, x86_64, toss4-cray),"
208+ echo " dane (LC, Linux, x86_64, toss4),"
209+ echo " rzwhippet (LC, Linux, x86_64, toss4),"
210+ echo " magma (LC, Linux, x86_64, toss4),"
211+ echo " tuolumne (LC, Linux, x86_64, toss4-cray),"
212+ echo " rzvernal (LC, Linux, x86_64, toss4-cray),"
213+ echo " rzadams (LC, Linux, x86_64, toss4-cray),"
214+ echo " elcap (LC, Linux, x86_64, toss4-cray)"
202215 echo " crossroads (LANL, Linux, x86_64),"
203- echo " tuolumne (LC, Linux, x86_64, toss4-cray),"
204- echo " rzadams (LC, Linux, x86_64, toss4-cray),"
205- echo " elcap (LC, Linux, x86_64, toss4-cray)"
206216 exit
207217fi
208218
222232#
223233# Info and set ran_build_visit
224234#
225- if [ " $dane " = true ] || [ " $rzwhippet " = true ] || \
235+ if [ " $dane " = true ] || \
226236 [ " $rzvernal " = true ] || [ " $crossroads " = true ] || \
227237 [ " $tuolumne " = true ]; then
228238 echo " Building on $machine_name "
235245#
236246# Set destination directory
237247#
238- if [ " $dane " = true ] || [ " $rzwhippet " = true ] ; then
248+ if [ " $dane " = true ]; then
239249 dest_dir=/usr/workspace/visit/visit/thirdparty_shared/$version /toss4
240250elif [ " $rzvernal " = true ]; then
241251 dest_dir=/usr/workspace/visit/visit/thirdparty_shared/$version /toss4-cray-gfx90a
251261#
252262# Set destination group
253263#
254- if [ " $dane " = true ] || [ " $rzwhippet " = true ] || \
264+ if [ " $dane " = true ] || \
255265 [ " $rzvernal " = true ] || [ " $tuolumne " = true ]; then
256266 dest_group=visit
257267elif [ " $crossroads " = true ]; then
264274#
265275# housekeeping
266276#
267- if [ " $dane " = true ] || [ " $rzwhippet " = true ] || \
277+ if [ " $dane " = true ] || \
268278 [ " $rzvernal " = true ] || [ " $crossroads " = true ] || \
269279 [ " $tuolumne " = true ]; then
270280 if [ -f ${build_visit_script} _log.${machine_name} ]; then
281291#
282292# Call build_visit
283293#
284- if [ " $dane " = true ] || [ " $rzwhippet " = true ]; then
294+ if [ " $dane " = true ]; then
295+ ml gcc
285296 env PAR_COMPILER=/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-10.3.1/bin/mpicc \
286297 PAR_COMPILER_CXX=/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-10.3.1/bin/mpicxx \
287298 PAR_INCLUDE=-I/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-10.3.1/include \
@@ -305,11 +316,11 @@ elif [ "$crossroads" = true ]; then
305316 --meson --ninja --xcb --xkbcommon --qwt --parallel \
306317 --no-visit --makeflags -j16 --thirdparty-path ${dest_dir}
307318elif [ " $tuolumne " = true ]; then
308- export LD_LIBRARY_PATH= " /opt/cray/pe/lib64:/opt/cray/lib64:/opt/cray/pe/papi/7.2.0.2/lib64:/opt/cray/libfabric/2.1/lib64: ${LD_LIBRARY_PATH} "
309- env CC= gcc \
310- CXX=g++ \
311- PAR_COMPILER=cc \
312- PAR_COMPILER_CXX=CC \
319+ env CC=/usr/tce/packages/gcc/gcc-10.3.1-magic/bin/gcc \
320+ CXX=/usr/tce/packages/ gcc/gcc-10.3.1-magic/bin/g++ \
321+ PAR_COMPILER=/usr/tce/packages/cray-mpich/cray-mpich-9.0.1-gcc-10.3.1-magic/bin/mpicc \
322+ PAR_COMPILER_CXX=/usr/tce/packages/cray-mpich/cray-mpich-9.0.1-gcc-10.3.1-magic/bin/mpic++ \
323+ PKG_CONFIG_PATH=/opt/cray/libfabric/2.1/lib64/pkgconfig: $PKG_CONFIG_PATH \
313324 ./$build_visit_script --group ${dest_group} --required --optional --anari --osmesa --parallel \
314325 --qwt --no-uintah --no-visit --makeflags -j24 --thirdparty-path ${dest_dir}
315326else
320331#
321332# Final housekeeping and permissions
322333#
323- if [ " $dane " = true ] || [ " $rzwhippet " = true ] || \
334+ if [ " $dane " = true ] || \
324335 [ " $rzvernal " = true ] || [ " $crossroads " = true ] || \
325336 [ " $tuolumne " = true ]; then
326337 mv ${build_visit_script} _log ${build_visit_script} _log.${machine_name}
@@ -341,12 +352,13 @@ then
341352 echo " Invalid or missing machine name."
342353 echo " Usage: -<machine name> -v <version> -s <build_visit_script>"
343354 echo " Valid machine names:"
344- echo " dane (LC, Linux, x86_64, toss4),"
345- echo " rzwhippet (LC, Linux, x86_64, toss4),"
346- echo " rzvernal (LC, Linux, x86_64, toss4-cray),"
355+ echo " dane (LC, Linux, x86_64, toss4),"
356+ echo " rzwhippet (LC, Linux, x86_64, toss4),"
357+ echo " magma (LC, Linux, x86_64, toss4),"
358+ echo " tuolumne (LC, Linux, x86_64, toss4-cray),"
359+ echo " rzvernal (LC, Linux, x86_64, toss4-cray),"
360+ echo " rzadams (LC, Linux, x86_64, toss4-cray),"
361+ echo " elcap (LC, Linux, x86_64, toss4-cray)"
347362 echo " crossroads (LANL, Linux, x86_64),"
348- echo " tuolumne (LC, Linux, x86_64, toss4-cray),"
349- echo " rzadams (LC, Linux, x86_64, toss4-cray),"
350- echo " elcap (LC, Linux, x86_64, toss4-cray)"
351363 exit
352364fi
0 commit comments