Skip to content

Commit

Permalink
Add compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Feb 21, 2024
1 parent f1478c2 commit 695bed8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install_test/as_library/as_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ cd ${WK_DIR}
mkdir ${KOKKOSFFT_BUILD_DIR} && cd ${KOKKOSFFT_BUILD_DIR}
cmake -DCMAKE_PREFIX_PATH=${KOKKOS_INSTALL_PREFIX} \
-DCMAKE_INSTALL_PREFIX=${KOKKOSFFT_INSTALL_PREFIX} \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_C_COMPILER=${C_COMPILER} \
-DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
-DCMAKE_CXX_STANDARD=17 \
${TARGET_FLAG} ..

cmake --build . -j 8
Expand All @@ -79,7 +83,12 @@ cmake --install .
# Build KokkosFFT code using installed KokkosFFT
cd ${WK_DIR}
mkdir ${EXAMPLE_BUILD_DIR} && cd ${EXAMPLE_BUILD_DIR}
cmake -DCMAKE_PREFIX_PATH="${KOKKOS_INSTALL_PREFIX};${KOKKOSFFT_INSTALL_PREFIX}" ../install_test/as_library
cmake -DCMAKE_PREFIX_PATH="${KOKKOS_INSTALL_PREFIX};${KOKKOSFFT_INSTALL_PREFIX}" \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_C_COMPILER=${C_COMPILER} \
-DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
-DCMAKE_CXX_STANDARD=17 \
../install_test/as_library
cmake --build . -j 8

if [ $? -eq 0 ]; then
Expand Down

0 comments on commit 695bed8

Please sign in to comment.