Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed it so that the release mode version generates the Python instal…
Browse files Browse the repository at this point in the history
…l, while the debug version does not
  • Loading branch information
daminton committed Feb 13, 2024
1 parent 415eb69 commit 9d37e11
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions buildscripts/build_negishi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,26 @@ 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=build-dir="build" \
# --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\" " \
# --config-settings=install.strip=false \
# --no-build-isolation \
# -ve .

cmake -P distclean.cmake
cmake -B ${ROOT_DIR}/build -S . -G Ninja \
if [[ BUILD_TYPE == "Release" ]]; then
pip install --config-settings=build-dir="build" \
--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\" " \
--config-settings=install.strip=false \
--no-build-isolation \
-ve .
else
pip uninstall swiftest -y
cmake -P distclean.cmake
cmake -B ${ROOT_DIR}/build -S . -G Ninja \
-DMACHINE_CODE_VALUE="CORE-AVX-I" \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_Fortran_COMPILER=mpiifort \
-DCMAKE_Fortran_FLAGS="-f90=ifort"

cmake --build ${ROOT_DIR}/build -j${OMP_NUM_THREADS} -v
cmake --build ${ROOT_DIR}/build -j${OMP_NUM_THREADS} -v
fi

0 comments on commit 9d37e11

Please sign in to comment.