diff --git a/Intro-Full/Exercises/kokkoskernels/CGSolve/Begin/run_installlibs_cmake.sh b/Intro-Full/Exercises/kokkoskernels/CGSolve/Begin/run_installlibs_cmake.sh index 45547812..9826acd6 100755 --- a/Intro-Full/Exercises/kokkoskernels/CGSolve/Begin/run_installlibs_cmake.sh +++ b/Intro-Full/Exercises/kokkoskernels/CGSolve/Begin/run_installlibs_cmake.sh @@ -35,4 +35,8 @@ make install -j8 cd ${EXERCISE_DIR} echo "KERNELS_INSTALL_PATH = $KOKKOSKERNELS_INSTALL" -cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +if [[ "${KOKKOSKERNELS_INSTALL}" == *lib64* ]]; then + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib64/cmake/KokkosKernels" . +else + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +fi diff --git a/Intro-Full/Exercises/kokkoskernels/CGSolve/Solution/run_installlibs_cmake.sh b/Intro-Full/Exercises/kokkoskernels/CGSolve/Solution/run_installlibs_cmake.sh index 45547812..9826acd6 100755 --- a/Intro-Full/Exercises/kokkoskernels/CGSolve/Solution/run_installlibs_cmake.sh +++ b/Intro-Full/Exercises/kokkoskernels/CGSolve/Solution/run_installlibs_cmake.sh @@ -35,4 +35,8 @@ make install -j8 cd ${EXERCISE_DIR} echo "KERNELS_INSTALL_PATH = $KOKKOSKERNELS_INSTALL" -cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +if [[ "${KOKKOSKERNELS_INSTALL}" == *lib64* ]]; then + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib64/cmake/KokkosKernels" . +else + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +fi diff --git a/Intro-Full/Exercises/kokkoskernels/InnerProduct/Begin/run_installlibs_cmake.sh b/Intro-Full/Exercises/kokkoskernels/InnerProduct/Begin/run_installlibs_cmake.sh index 45547812..9826acd6 100755 --- a/Intro-Full/Exercises/kokkoskernels/InnerProduct/Begin/run_installlibs_cmake.sh +++ b/Intro-Full/Exercises/kokkoskernels/InnerProduct/Begin/run_installlibs_cmake.sh @@ -35,4 +35,8 @@ make install -j8 cd ${EXERCISE_DIR} echo "KERNELS_INSTALL_PATH = $KOKKOSKERNELS_INSTALL" -cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +if [[ "${KOKKOSKERNELS_INSTALL}" == *lib64* ]]; then + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib64/cmake/KokkosKernels" . +else + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +fi diff --git a/Intro-Full/Exercises/kokkoskernels/InnerProduct/Solution/run_installlibs_cmake.sh b/Intro-Full/Exercises/kokkoskernels/InnerProduct/Solution/run_installlibs_cmake.sh index 45547812..9826acd6 100755 --- a/Intro-Full/Exercises/kokkoskernels/InnerProduct/Solution/run_installlibs_cmake.sh +++ b/Intro-Full/Exercises/kokkoskernels/InnerProduct/Solution/run_installlibs_cmake.sh @@ -35,4 +35,8 @@ make install -j8 cd ${EXERCISE_DIR} echo "KERNELS_INSTALL_PATH = $KOKKOSKERNELS_INSTALL" -cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +if [[ "${KOKKOSKERNELS_INSTALL}" == *lib64* ]]; then + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib64/cmake/KokkosKernels" . +else + cmake -DCMAKE_CXX_COMPILER=${CXX} -DKokkosKernels_DIR="${KOKKOSKERNELS_INSTALL}/lib/cmake/KokkosKernels" . +fi