Skip to content

Commit 23bd7a8

Browse files
committed
refactor to allow more flexibility with compiler setup for sycl case
1 parent 32d8a84 commit 23bd7a8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

scripts/build_ascent/build_ascent.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ if [[ "$enable_cuda" == "ON" ]]; then
7171
CUDA_ARCH_VTKM="${CUDA_ARCH_VTKM:=ampere}"
7272
fi
7373

74+
# NOTE: this script only builds kokkos when enable_hip=ON or enable_cycl=ON
7475
if [[ "$enable_hip" == "ON" ]]; then
7576
echo "*** configuring with HIP support"
7677

@@ -81,15 +82,9 @@ if [[ "$enable_hip" == "ON" ]]; then
8182
ROCM_ARCH="${ROCM_ARCH:=gfx90a}"
8283
ROCM_PATH="${ROCM_PATH:=/opt/rocm/}"
8384

84-
# NOTE: this script only builds kokkos when enable_hip=ON
8585
build_kokkos="${build_kokkos:=true}"
8686
elif [[ "$enable_sycl" == "ON" ]]; then
8787
echo "*** configuring with SYCL support"
88-
89-
CC=`which icx`
90-
CXX=`which icpx`
91-
FTN=`which ifx`
92-
9388
build_kokkos="${build_kokkos:=true}"
9489
else
9590
build_kokkos="${build_kokkos:=false}"

scripts/build_ascent/build_ascent_aurora.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ module use /soft/modulefiles
1818
module load spack-pe-gcc cmake
1919
module load oneapi/eng-compiler/2023.12.15.002
2020

21-
env enable_sycl=ON enable_mpi=ON enable_fortran=ON raja_enable_vectorization=OFF enable_tests=ON enable_verbose=ON ./build_ascent_sycl.sh
21+
env CC=`which icx` CXX=`which icpx` FTN=`which ifx` enable_sycl=ON enable_mpi=ON enable_fortran=ON raja_enable_vectorization=OFF enable_tests=ON enable_verbose=ON ./build_ascent_sycl.sh

0 commit comments

Comments
 (0)