Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xingran Wang
cdi-pio-build
Commits
04859f91
Commit
04859f91
authored
Jan 07, 2022
by
Thomas Jahns
🤸
Browse files
Add scripts for levante.
parent
35946f0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
build-cdi-pio-stack-levante-icc-impi.sh
0 → 100755
View file @
04859f91
#! /bin/bash
set
-eu
script_dir
=
$(
dirname
"
$0
"
)
if
[[
x
$script_dir
!=
x
]]
;
then
script_dir+
=
/
fi
# shellcheck source=scripts/bash_functions
source
"
${
script_dir
}
scripts/bash_functions"
module use /sw/intel/oneapi/compiler/2021.3.0/modulefiles
\
/sw/intel/oneapi/tbb/2021.3.0/modulefiles
\
/sw/intel/oneapi/mpi/2021.3.0/modulefiles
#module load intel-oneapi-compilers intel-oneapi-mpi cmake
module load compiler mpi
# for patching of sources:
PATH+
=
":/sw/spack-levante/patch-2.7.6-vgfpls/bin"
INTEL_VERSION
=
$(
ifort
-V
2>&1
\
|
sed
-n
-e
'/Version/{'
-e
's/.*Version \([0-9][0-9.]*\) .*/\1/;p;}'
)
I_MPI_VERSION
=
$(
mpicc
-dM
-E
-
<<
EOF
2>/dev/null | sed -n -e '/I_MPI_VERSION/{' -e 's/^#define I_MPI_VERSION "
\(
.*
\)
"/
\1
/;p;}'
#include <mpi.h>
EOF
)
build
=
"icc-
${
INTEL_VERSION
}
-impi-
${
I_MPI_VERSION
}
"
setup_tracing_and_logging
\
"
$HOME
/cdi-pio-build-log
$(
date
+%Y%m%dT%H%M
)
-
${
build
}
.txt"
set
-x
builddir
=
$(
mktemp
-d
"/dev/shm/cdi-pio-build-
$(
id
-un
)
-XXXXXXX"
)
# should be the following, but that directory is not currently available
#SCRATCH="/lustre/scratch/${USER:0:1}/${USER}/cdi-pio-test-files-${build}"
# use dir in $HOME instead
SCRATCH
=
"
${
HOME
}
/cdi-pio-test-files-
${
build
}
"
mkdir
-p
"
$SCRATCH
"
lfs setstripe
--stripe-count
8
"
$SCRATCH
"
trap
build_cdipio_cleanup EXIT
${
script_dir
}
build-cdi-pio-stack.sh
\
build
=
"
${
build
}
"
\
multi_installs
=
:
\
prefix
=
"
${
HOME
}
/cdi-pio-stack/sw/%b/%k/%v"
\
builddir
=
"
$builddir
"
\
CC
=
mpiicc
FC
=
mpiifort
F77
=
mpiifort
CXX
=
mpiicpc
\
CFLAGS
=
'-O2 -g -march=core-avx2 -mtune=core-avx2'
\
FCFLAGS
=
'-O2 -g -march=core-avx2 -mtune=core-avx2'
\
SCRATCH
=
"
$SCRATCH
"
\
pnetcdf_configure
=
"--disable-large-single-req"
\
"
$@
"
build-cdi-pio-stack-levante-icc-ompi.sh
0 → 100755
View file @
04859f91
#! /bin/bash
set
-eu
script_dir
=
$(
dirname
"
$0
"
)
if
[[
x
$script_dir
!=
x
]]
;
then
script_dir+
=
/
fi
# shellcheck source=scripts/bash_functions
source
"
${
script_dir
}
scripts/bash_functions"
module use /sw/intel/oneapi/compiler/2021.3.0/modulefiles
\
/sw/intel/oneapi/tbb/2021.3.0/modulefiles
#module load intel-oneapi-compilers intel-oneapi-mpi cmake
module load compiler
PATH
=
"/lustre/home/Atos/harald/libs/ompi4.x_DDT_hpcx_2.9.0_ucx-1.11.1_i21/bin:
$PATH
"
# for patching of sources:
PATH+
=
":/sw/spack-levante/patch-2.7.6-vgfpls/bin"
INTEL_VERSION
=
$(
ifort
-V
2>&1
\
|
sed
-n
-e
'/Version/{'
-e
's/.*Version \([0-9][0-9.]*\) .*/\1/;p;}'
)
ompi_version
=
$(
ompi_info
--version
|
sed
-n
-e
'1s/Open MPI v//;1p'
)
build
=
"icc-
${
INTEL_VERSION
}
-ompi-
${
ompi_version
}
"
setup_tracing_and_logging
\
"
$HOME
/cdi-pio-build-log
$(
date
+%Y%m%dT%H%M
)
-
${
build
}
.txt"
set
-x
builddir
=
$(
mktemp
-d
"/dev/shm/cdi-pio-build-
$(
id
-un
)
-XXXXXXX"
)
# should be the following, but that directory is not currently available
#SCRATCH="/lustre/scratch/${USER:0:1}/${USER}/cdi-pio-test-files-${build}"
# use dir in $HOME instead
SCRATCH
=
"
${
HOME
}
/cdi-pio-test-files-
${
build
}
"
mkdir
-p
"
$SCRATCH
"
lfs setstripe
--stripe-count
8
"
$SCRATCH
"
trap
build_cdipio_cleanup EXIT
OMPI_MCA_btl
=
^vader
\
UCX_LOG_LEVEL
=
fatal
\
${
script_dir
}
build-cdi-pio-stack.sh
\
build
=
"
${
build
}
"
\
multi_installs
=
:
\
stages
=
download-unpack-build-check-install
\
prefix
=
"
${
HOME
}
/cdi-pio-stack/sw/%b/%k/%v"
\
basedir
=
"
$HOME
/cdi-pio-build"
\
srcdir
=
"
$HOME
/cdi-pio-stack/src"
\
archivedir
=
"
$HOME
/cdi-pio-stack/archive"
\
builddir
=
"
$builddir
"
\
CC
=
mpicc
FC
=
mpifort
F77
=
mpifort
CXX
=
mpiCC
\
CFLAGS
=
'-O2 -g -march=core-avx2 -mtune=core-avx2'
\
FCFLAGS
=
'-O2 -g -march=core-avx2 -mtune=core-avx2'
\
SCRATCH
=
"
$SCRATCH
"
\
pnetcdf_configure
=
"--disable-large-single-req"
\
"
$@
"
# hdf5_1_12_1_configure="CFLAGS='-O0 -g -march=core-avx2'" \
# pnetcdf_1_12_1_configure="CFLAGS='-O0 -g -march=core-avx2' --disable-large-single-req" \
# netcdf_c_configure="CFLAGS='-O0 -g -march=core-avx2'" \
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