From fe0faa546801ce4b06aa45cb04d27483e84c8b13 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Mon, 7 Nov 2022 20:31:20 +0000 Subject: [PATCH 01/10] Add initial build script for scotch library to support marine/WW3. --- libs/build_scotch.sh | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 libs/build_scotch.sh diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh new file mode 100755 index 00000000..604fdaf9 --- /dev/null +++ b/libs/build_scotch.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +set -eux + +name="scotch" +version=${1:-${STACK_scotch_version}} + +# Hyphenated version used for install prefix +compiler=$(echo $HPC_COMPILER | sed 's/\//-/g') +mpi=$(echo $HPC_MPI | sed 's/\//-/g') + +if $MODULES; then + set +x + source $MODULESHOME/init/bash + module load hpc-$HPC_COMPILER + module load hpc-$HPC_MPI + module load cmake/3.20.1 + module load netcdf/4.9.0 + module load gnu + module list + set -x + + prefix="${PREFIX:-"/opt/modules"}/$compiler/$mpi/$name/$version" + if [[ -d $prefix ]]; then + if [[ $OVERWRITE =~ [yYtT] ]]; then + echo "WARNING: $prefix EXISTS: OVERWRITING!" + $SUDO rm -rf $prefix + else + echo "WARNING: $prefix EXISTS, SKIPPING" + exit 0 + fi + fi +else + prefix=${SCOTCH_ROOT:-"/usr/local"} +fi + + +cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} + +software=$name-$version +URL="https://gitlab.inria.fr/scotch/scotch/-/archive/v${version}/scotch-v${version}.tar.gz" +[[ -f $software.tar.gz ]] || ( $WGET $URL ) +[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 + +cd scotch +module purge +module load cmake/3.20.1 +module use /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack +module load hpc/1.2.0 +module load hpc-intel/2022.1.2 +module load hpc-impi/2022.1.2 +module load netcdf/4.9.0 +module load gnu + +mkdir build +cd build + +cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=${SCOTCH_PREFIX}/install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out + +make VERBOSE=1 2>&1 | tee make.out +make install 2>&1 | tee install.log +make scotch 2>&1 | tee make_scotch.log +make ptscotch 2>&1 | tee make_ptscotch.log From 66e32a42822181ae8a74c42ed6636f3d07c23d8e Mon Sep 17 00:00:00 2001 From: cameronbook Date: Tue, 8 Nov 2022 00:07:29 +0000 Subject: [PATCH 02/10] Update scotch build script. --- libs/build_scotch.sh | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index 604fdaf9..fcec06cd 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -9,6 +9,13 @@ version=${1:-${STACK_scotch_version}} compiler=$(echo $HPC_COMPILER | sed 's/\//-/g') mpi=$(echo $HPC_MPI | sed 's/\//-/g') +cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} + +software=$name-"v"$version +URL="https://gitlab.inria.fr/scotch/scotch/-/archive/v${version}/scotch-v${version}.tar.gz" +[[ -f $software.tar.gz ]] || ( $WGET $URL ) +[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 + if $MODULES; then set +x source $MODULESHOME/init/bash @@ -34,30 +41,22 @@ else prefix=${SCOTCH_ROOT:-"/usr/local"} fi +tar -xvf $software.tar.gz; cd $software +mkdir build; cd build -cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} - -software=$name-$version -URL="https://gitlab.inria.fr/scotch/scotch/-/archive/v${version}/scotch-v${version}.tar.gz" -[[ -f $software.tar.gz ]] || ( $WGET $URL ) -[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 +#SCOTCH_PREFIX=${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}/$software -cd scotch -module purge -module load cmake/3.20.1 -module use /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack -module load hpc/1.2.0 -module load hpc-intel/2022.1.2 -module load hpc-impi/2022.1.2 -module load netcdf/4.9.0 -module load gnu +#cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=${SCOTCH_PREFIX}/install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out -mkdir build -cd build - -cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=${SCOTCH_PREFIX}/install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out +cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out make VERBOSE=1 2>&1 | tee make.out make install 2>&1 | tee install.log make scotch 2>&1 | tee make_scotch.log make ptscotch 2>&1 | tee make_ptscotch.log + + +# generate modulefile from template +[[ -z $mpi ]] && modpath=compiler || modpath=mpi +$MODULES && update_modules $modpath $name $version +echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log From 8d72c96d5c328d29fe7b9670e860e62c4f025e46 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Tue, 8 Nov 2022 18:58:33 +0000 Subject: [PATCH 03/10] Add scotch build_lib command to build_stack.sh. --- build_stack.sh | 1 + config/config_hera.sh | 12 +++++++++--- libs/build_scotch.sh | 14 ++++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/build_stack.sh b/build_stack.sh index 882dc2f0..672d55b1 100755 --- a/build_stack.sh +++ b/build_stack.sh @@ -262,6 +262,7 @@ build_lib metplus # UFS 3rd party dependencies build_lib esmf +build_lib scotch build_lib fms build_lib cmakemodules build_lib esma_cmake diff --git a/config/config_hera.sh b/config/config_hera.sh index 0b14a22c..066929b3 100644 --- a/config/config_hera.sh +++ b/config/config_hera.sh @@ -1,9 +1,9 @@ #!/bin/bash # Compiler/MPI combination -export HPC_COMPILER="intel/18.0.5.274" -export HPC_MPI="impi/2018.0.4" -export HPC_PYTHON="miniconda3/4.6.14" +export HPC_COMPILER="intel/2022.1.2" +export HPC_MPI="impi/2022.1.2" +export HPC_PYTHON="miniconda3/4.12.0" # Build options export USE_SUDO=N @@ -22,6 +22,8 @@ export VENVTYPE="condaenv" # Load these basic modules for Hera module purge module load cmake/3.20.1 +module load intel/2022.1.2 +module load impi/2022.1.2 # Build FMS with AVX2 flags export STACK_fms_CFLAGS="-march=core-avx2" @@ -29,3 +31,7 @@ export STACK_fms_FFLAGS="-march=core-avx2" # Miniconda3 URL on Hera export STACK_miniconda3_URL="http://anaconda.rdhpcs.noaa.gov" + +export SERIAL_CC=icc +export SERIAL_CXX=icpc +export SERIAL_FC=ifort diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index fcec06cd..cc6b32c4 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -3,16 +3,19 @@ set -eux name="scotch" -version=${1:-${STACK_scotch_version}} +version_id=${1:-${STACK_scotch_version}} # Hyphenated version used for install prefix compiler=$(echo $HPC_COMPILER | sed 's/\//-/g') mpi=$(echo $HPC_MPI | sed 's/\//-/g') +version=$(echo ${version_id} | sed 's/v//') cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} -software=$name-"v"$version -URL="https://gitlab.inria.fr/scotch/scotch/-/archive/v${version}/scotch-v${version}.tar.gz" +#id=$(echo $version | sed ‘s/v//’) + +software=$name-${version_id} +URL="https://gitlab.inria.fr/scotch/scotch/-/archive/${version_id}/scotch-${version_id}.tar.gz" [[ -f $software.tar.gz ]] || ( $WGET $URL ) [[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 @@ -21,8 +24,8 @@ if $MODULES; then source $MODULESHOME/init/bash module load hpc-$HPC_COMPILER module load hpc-$HPC_MPI - module load cmake/3.20.1 - module load netcdf/4.9.0 + module load cmake + module load netcdf module load gnu module list set -x @@ -46,7 +49,6 @@ mkdir build; cd build #SCOTCH_PREFIX=${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}/$software -#cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=${SCOTCH_PREFIX}/install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out From 24155d15b1630a865a58babd5794e5d49a5b9ad9 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Tue, 8 Nov 2022 19:43:45 +0000 Subject: [PATCH 04/10] Update build_scotch.sh w/ proper prefix path, module load commands, version_id envar, etc.. --- libs/build_scotch.sh | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index cc6b32c4..fc1c3c0b 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -10,15 +10,6 @@ compiler=$(echo $HPC_COMPILER | sed 's/\//-/g') mpi=$(echo $HPC_MPI | sed 's/\//-/g') version=$(echo ${version_id} | sed 's/v//') -cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} - -#id=$(echo $version | sed ‘s/v//’) - -software=$name-${version_id} -URL="https://gitlab.inria.fr/scotch/scotch/-/archive/${version_id}/scotch-${version_id}.tar.gz" -[[ -f $software.tar.gz ]] || ( $WGET $URL ) -[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 - if $MODULES; then set +x source $MODULESHOME/init/bash @@ -44,19 +35,25 @@ else prefix=${SCOTCH_ROOT:-"/usr/local"} fi -tar -xvf $software.tar.gz; cd $software -mkdir build; cd build +cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} -#SCOTCH_PREFIX=${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}/$software +software=$name-${version_id} +URL="https://gitlab.inria.fr/scotch/scotch/-/archive/${version_id}/scotch-${version_id}.tar.gz" +[[ -f $software.tar.gz ]] || ( $WGET $URL ) +[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 +[[ -f $software.tar.gz ]] && tar -xvf $software.tar.gz || ( echo "$software tarfile does not exist, ABORT!"; exit 1 ) +[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 ) -cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release .. 2>&1 | tee cmake.out +mkdir build; cd build -make VERBOSE=1 2>&1 | tee make.out -make install 2>&1 | tee install.log -make scotch 2>&1 | tee make_scotch.log -make ptscotch 2>&1 | tee make_ptscotch.log +# Compile & Install Scotch/PTscotch +cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_BUILD_TYPE=Release .. +make VERBOSE=1 +make install +make scotch +make ptscotch # generate modulefile from template [[ -z $mpi ]] && modpath=compiler || modpath=mpi From fc25e21ca0deb2fac75c633909c41f33797fa411 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Wed, 9 Nov 2022 18:35:58 +0000 Subject: [PATCH 05/10] Add scotch.lua modulefile. --- .../mpiName/mpiVersion/scotch/scotch.lua | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/scotch/scotch.lua diff --git a/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/scotch/scotch.lua b/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/scotch/scotch.lua new file mode 100644 index 00000000..07e529d3 --- /dev/null +++ b/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/scotch/scotch.lua @@ -0,0 +1,36 @@ +help([[Scotch is a software package for graph and mesh/hypergraph partitioning, +graph clustering, and sparse matrix ordering.]]) + +local pkgName = myModuleName() +local pkgVersion = myModuleVersion() +local pkgNameVer = myModuleFullName() + +local hierA = hierarchyA(pkgNameVer,2) +local mpiNameVer = hierA[1] +local compNameVer = hierA[2] +local mpiNameVerD = mpiNameVer:gsub("/","-") +local compNameVerD = compNameVer:gsub("/","-") + +conflict(pkgName) + +depends_on("zlib") + +local opt = os.getenv("HPC_OPT") or os.getenv("OPT") or "/opt/modules" + +local base = pathJoin(opt,compNameVerD,mpiNameVerD,pkgName,pkgVersion) + +prepend_path("PATH", pathJoin(base,"bin")) +prepend_path("MANPATH", pathJoin(base,"man")) +prepend_path("LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("LD_LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("DYLD_LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("CPATH", pathJoin(base,"include")) +prepend_path("CMAKE_PREFIX_PATH", base) + +setenv("scotch_ROOT", base) +setenv("scotch_VERSION", pkgVersion) + +whatis("Name: ".. pkgName) +whatis("Version: " .. pkgVersion) +whatis("Category: library") +whatis("Description: " .. pkgName .. " library") From 6fb0fcc1836991dce4f88ac29e88e82a1c689078 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Wed, 9 Nov 2022 18:50:00 +0000 Subject: [PATCH 06/10] Add section to remove pre-existing build directory in build_scotch.sh. --- libs/build_scotch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index fc1c3c0b..834ab5e5 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -45,7 +45,8 @@ URL="https://gitlab.inria.fr/scotch/scotch/-/archive/${version_id}/scotch-${vers [[ -f $software.tar.gz ]] && tar -xvf $software.tar.gz || ( echo "$software tarfile does not exist, ABORT!"; exit 1 ) [[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 ) -mkdir build; cd build +[[ -d build ]] && $SUDO rm -rf build +mkdir -p build && cd build # Compile & Install Scotch/PTscotch cmake VERBOSE=1 -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_BUILD_TYPE=Release .. From 1a9fea081cd1fdffbdb87cf44120b4fd63ee4f90 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Wed, 9 Nov 2022 19:10:05 +0000 Subject: [PATCH 07/10] Revert config_hera.sh to develop version. Initial commit of modified version was a mistake. --- config/config_hera.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config/config_hera.sh b/config/config_hera.sh index 066929b3..0b14a22c 100644 --- a/config/config_hera.sh +++ b/config/config_hera.sh @@ -1,9 +1,9 @@ #!/bin/bash # Compiler/MPI combination -export HPC_COMPILER="intel/2022.1.2" -export HPC_MPI="impi/2022.1.2" -export HPC_PYTHON="miniconda3/4.12.0" +export HPC_COMPILER="intel/18.0.5.274" +export HPC_MPI="impi/2018.0.4" +export HPC_PYTHON="miniconda3/4.6.14" # Build options export USE_SUDO=N @@ -22,8 +22,6 @@ export VENVTYPE="condaenv" # Load these basic modules for Hera module purge module load cmake/3.20.1 -module load intel/2022.1.2 -module load impi/2022.1.2 # Build FMS with AVX2 flags export STACK_fms_CFLAGS="-march=core-avx2" @@ -31,7 +29,3 @@ export STACK_fms_FFLAGS="-march=core-avx2" # Miniconda3 URL on Hera export STACK_miniconda3_URL="http://anaconda.rdhpcs.noaa.gov" - -export SERIAL_CC=icc -export SERIAL_CXX=icpc -export SERIAL_FC=ifort From cc9abda2b4bc9309b3f7a923a8e61477fd5e98b7 Mon Sep 17 00:00:00 2001 From: cameronbook Date: Wed, 9 Nov 2022 20:35:20 +0000 Subject: [PATCH 08/10] Change version/id variables to match convention. --- libs/build_scotch.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index 834ab5e5..b168f733 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -3,12 +3,12 @@ set -eux name="scotch" -version_id=${1:-${STACK_scotch_version}} +version=${1:-${STACK_scotch_version}} # Hyphenated version used for install prefix compiler=$(echo $HPC_COMPILER | sed 's/\//-/g') mpi=$(echo $HPC_MPI | sed 's/\//-/g') -version=$(echo ${version_id} | sed 's/v//') +id=$(echo $version | sed 's/v//') if $MODULES; then set +x @@ -21,7 +21,7 @@ if $MODULES; then module list set -x - prefix="${PREFIX:-"/opt/modules"}/$compiler/$mpi/$name/$version" + prefix="${PREFIX:-"/opt/modules"}/$compiler/$mpi/$name/$id" if [[ -d $prefix ]]; then if [[ $OVERWRITE =~ [yYtT] ]]; then echo "WARNING: $prefix EXISTS: OVERWRITING!" @@ -37,8 +37,8 @@ fi cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"} -software=$name-${version_id} -URL="https://gitlab.inria.fr/scotch/scotch/-/archive/${version_id}/scotch-${version_id}.tar.gz" +software=$name-$version +URL="https://gitlab.inria.fr/scotch/scotch/-/archive/$version/scotch-$version.tar.gz" [[ -f $software.tar.gz ]] || ( $WGET $URL ) [[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0 @@ -58,5 +58,5 @@ make ptscotch # generate modulefile from template [[ -z $mpi ]] && modpath=compiler || modpath=mpi -$MODULES && update_modules $modpath $name $version -echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log +$MODULES && update_modules $modpath $name $id +echo $name $id $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log From 073876cb271e7fc9669c8bc88fb8905c9c5cba8a Mon Sep 17 00:00:00 2001 From: Cameron Book <43379611+ulmononian@users.noreply.github.com> Date: Wed, 9 Nov 2022 12:55:08 -0800 Subject: [PATCH 09/10] Update build_scotch.sh Remove loading of netcdf and cmake in module section. Not needed. --- libs/build_scotch.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/build_scotch.sh b/libs/build_scotch.sh index b168f733..cef78b31 100755 --- a/libs/build_scotch.sh +++ b/libs/build_scotch.sh @@ -15,8 +15,6 @@ if $MODULES; then source $MODULESHOME/init/bash module load hpc-$HPC_COMPILER module load hpc-$HPC_MPI - module load cmake - module load netcdf module load gnu module list set -x From f9dcf4bfb403a121332d7c3ce7e93c422f22359d Mon Sep 17 00:00:00 2001 From: cameronbook Date: Thu, 10 Nov 2022 15:47:23 +0000 Subject: [PATCH 10/10] Add scotch modulefile ito hpc-stack/modulefiles/compiler/compilerName/compilerVersion for cases of serial installation. --- .../compilerVersion/scotch/scotch.lua | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modulefiles/compiler/compilerName/compilerVersion/scotch/scotch.lua diff --git a/modulefiles/compiler/compilerName/compilerVersion/scotch/scotch.lua b/modulefiles/compiler/compilerName/compilerVersion/scotch/scotch.lua new file mode 100644 index 00000000..c3f19099 --- /dev/null +++ b/modulefiles/compiler/compilerName/compilerVersion/scotch/scotch.lua @@ -0,0 +1,34 @@ +help([[Scotch is a software package for graph and mesh/hypergraph partitioning, +graph clustering, and sparse matrix ordering.]]) + +local pkgName = myModuleName() +local pkgVersion = myModuleVersion() +local pkgNameVer = myModuleFullName() + +local hierA = hierarchyA(pkgNameVer,1) +local compNameVer = hierA[1] +local compNameVerD = compNameVer:gsub("/","-") + +conflict(pkgName) + +depends_on("zlib") + +local opt = os.getenv("HPC_OPT") or os.getenv("OPT") or "/opt/modules" + +local base = pathJoin(opt,compNameVerD,pkgName,pkgVersion) + +prepend_path("PATH", pathJoin(base,"bin")) +prepend_path("MANPATH", pathJoin(base,"man")) +prepend_path("LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("LD_LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("DYLD_LIBRARY_PATH", pathJoin(base,"lib")) +prepend_path("CPATH", pathJoin(base,"include")) +prepend_path("CMAKE_PREFIX_PATH", base) + +setenv("scotch_ROOT", base) +setenv("scotch_VERSION", pkgVersion) + +whatis("Name: ".. pkgName) +whatis("Version: " .. pkgVersion) +whatis("Category: library") +whatis("Description: " .. pkgName .. " library")