Skip to content

Commit

Permalink
Check lib path for kokkos-kernels install (lib vs lib64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndellingwood committed Jun 22, 2020
1 parent 723a8bb commit b737c3b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b737c3b

Please sign in to comment.