Commit ad7693b1 authored by GIORGIO AMATI's avatar GIORGIO AMATI

Delete 01-configure

parent eb478012
#!/bin/bash
set -eu
current_setup=$(realpath $(dirname $BASH_SOURCE))
pushd $current_setup
. 00-settings
pushd $specfem_top/$specfem_version
if [ $specfem_version == pcp ]; then
sed -i '/\<ppc64\>/{s;\(ppc64\);\1le;}' config.guess
sed -i '/^\s\+pgf95/{s;\(pgf95\);pgfortran|\*\/pgfortran|\1;}' flags.guess
sed -i '/no-gpu version\\/{s;\\;;}' src/specfem3D/rules.mk
if [ $use_cuda == true ]; then
sed -i '/\!call compute_kernels_strgth_noise_gpu/{s;\!;;}' src/specfem3D/noise_tomography.f90
else
sed -i '/\scall compute_kernels_strgth_noise_gpu/{s;\(call\);\!\1;}' src/specfem3D/noise_tomography.f90
fi
fi
mkdir -p $current_setup/logs
./configure $ENABLE_VECTORIZATION $ENABLE_OPENMP $ENABLE_CUDA |& tee $current_setup/logs/config_summary.log
mv config.log $current_setup/logs/
popd
popd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment