This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated all of the build scripts and tools to work with Negishi
- Loading branch information
Showing
17 changed files
with
144 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/zsh -l | ||
# installs an editable (local) package in release mode on Negishi | ||
# This is a convenience script for Kaustub | ||
|
||
set -a | ||
SCRIPT_DIR=$(realpath $(dirname $0)) | ||
ROOT_DIR=$(realpath ${SCRIPT_DIR}/..) | ||
cd ${ROOT_DIR} | ||
BUILD_TYPE=${1:-"Release"} | ||
|
||
module purge | ||
module load intel-oneapi-compilers/2023.0.0 | ||
module load intel-oneapi-mkl/2023.0.0 | ||
module load intel-oneapi-mpi/2021.8.0 | ||
source ${INTEL_ONEAPI_COMPILERS_HOME}/setvars.sh > /dev/null 2>&1 | ||
module use /depot/daminton/etc/modules | ||
module load use.own | ||
module load conda-env/mintongroup-py3.9.13 | ||
module load netcdf-fortran/intel-oneapi/4.6.1 | ||
module load shtools/intel-oneapi/4.11.10 | ||
cmake -P distclean.cmake | ||
pip install --config-settings=editable.rebuild=true \ | ||
--config-settings=build-dir="build/{wheel_tag}" \ | ||
--config-settings=cmake.build-type="${BUILD_TYPE}" \ | ||
--config-settings=cmake.args="-DUSE_SIMD=ON" \ | ||
--config-settings=cmake.args="-DUSE_OPENMP=ON" \ | ||
--config-settings=cmake.args="-DCMAKE_Fortran_COMPILER=mpiifort" \ | ||
--config-settings=cmake.args="-DCMAKE_Fortran_FLAGS=\"-f90=ifort\"" \ | ||
--config-settings=cmake.args="-DMACHINE_CODE_VALUE=\"CORE-AVX-I\" " \ | ||
--no-build-isolation \ | ||
-ve . | ||
|
||
|
||
LD_LIBRARY_PATH=$(realpath ${ROOT_DIR}/build/*/bin):$LD_LIBRARY_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
#!/bin/bash | ||
# Sets environment flags on Linux | ||
set -a | ||
PREFIX="/usr/local" | ||
NCDIR="${PREFIX}" | ||
NFDIR="${PREFIX}" | ||
PREFIX=${PREFIX:-"/usr/local"} | ||
NCDIR=${NETCDF_HOME:-"${PREFIX}"} | ||
NFDIR=${NETCDF_FORTRAN_HOME:-"${PREFIX}"} | ||
NETCDF_FORTRAN_HOME="${NFDIR}" | ||
NETCDF_FORTRAN_INCLUDE="${NFDIR}/include" | ||
HDF5_ROOT="${PREFIX}" | ||
ZLIB_ROOT=${ZLIB_ROOT:-"${ZLIB_HOME}"} | ||
ZLIB_ROOT=${ZLIB_ROOT:-"${PREFIX}"} | ||
HDF5_ROOT=${HDF5_ROOT:-"${HDF5_HOME}"} | ||
HDF5_ROOT=${HDF5_ROOT:-"${PREFIX}"} | ||
HDF5_LIBDIR="${HDF5_ROOT}/lib" | ||
HDF5_INCLUDE_DIR="${HDF5_ROOT}/include" | ||
HDF5_PLUGIN_PATH="${HDF5_LIBDIR}/plugin" | ||
LD_LIBRARY_PATH="${PREFIX}/lib" | ||
CPATH="${PREFIX}/include:" | ||
LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH}" | ||
CPATH="${PREFIX}/include:${CPATH}" | ||
HDF5_DIR="${HDF5_ROOT}/cmake" | ||
PATH="${HDF5_ROOT}/bin:${PATH}" | ||
CMAKE_INSTALL_LIBDIR="lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.