better Grid bench build script
This commit is contained in:
parent
4e57d9a4e0
commit
a85f4cc169
@ -16,18 +16,16 @@ cd "${env_dir}"
|
|||||||
env_dir=$(pwd -P)
|
env_dir=$(pwd -P)
|
||||||
cd "${call_dir}"
|
cd "${call_dir}"
|
||||||
build_dir="${env_dir}/build/Grid-benchmarks/${cfg}"
|
build_dir="${env_dir}/build/Grid-benchmarks/${cfg}"
|
||||||
if [ -d "${build_dir}" ]; then
|
|
||||||
echo "error: directory '${build_dir}' exists"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mkdir -p "${build_dir}"
|
mkdir -p "${build_dir}"
|
||||||
source "${env_dir}/env.sh"
|
source "${env_dir}/env.sh"
|
||||||
entry=$(jq ".configs[]|select(.name==\"${cfg}\")" "${env_dir}"/grid-config.json)
|
entry=$(jq ".configs[]|select(.name==\"${cfg}\")" "${env_dir}"/grid-config.json)
|
||||||
env_script=$(echo "${entry}" | jq -r ".\"env-script\"")
|
env_script=$(echo "${entry}" | jq -r ".\"env-script\"")
|
||||||
cd "${build_dir}" || return
|
cd "${build_dir}" || return
|
||||||
source "${env_dir}/${env_script}"
|
source "${env_dir}/${env_script}"
|
||||||
"${script_dir}/configure" --with-grid="${env_dir}/prefix/grid_${cfg}" \
|
if [ ! -f Makefile ]; then
|
||||||
--prefix="${env_dir}/prefix/gridbench_${cfg}"
|
"${script_dir}/configure" --with-grid="${env_dir}/prefix/grid_${cfg}" \
|
||||||
|
--prefix="${env_dir}/prefix/gridbench_${cfg}"
|
||||||
|
fi
|
||||||
make -j 128
|
make -j 128
|
||||||
make install
|
make install
|
||||||
cd "${call_dir}"
|
cd "${call_dir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user