From 695bed86c59b471fe077d1b3f75c0d8f373264a3 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Wed, 21 Feb 2024 13:32:40 +0900 Subject: [PATCH] Add compilers --- install_test/as_library/as_library.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install_test/as_library/as_library.sh b/install_test/as_library/as_library.sh index a25fe655..056b7b32 100755 --- a/install_test/as_library/as_library.sh +++ b/install_test/as_library/as_library.sh @@ -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 @@ -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