Skip to content

Commit

Permalink
Set amr-wind SYCL option correctly. (sandialabs#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Apr 21, 2023
1 parent cfedb98 commit 994430c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configs/sunspot/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ packages:
prefix: /usr
nalu-wind:
require: "~trilinos-solvers"
amr-wind:
variants: +tiny_profile build_type=Release
trilinos:
require: "+tpetra+kokkos"
boost:
Expand Down
2 changes: 1 addition & 1 deletion repos/exawind/packages/amr-wind/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def cmake_args(self):
cmake_options.append("-DGPU_TARGETS=" + ";".join(str(x) for x in targets))

if "+sycl" in self.spec:
cmake_options.append("-DAMReX_GPU_BACKEND=SYCL")
cmake_options.append(self.define("AMR_WIND_ENABLE_SYCL", True))
# SYCL GPU backend only supported with Intel's oneAPI or DPC++ compilers
sycl_compatible_compilers = ["dpcpp", "icpx"]
if not (os.path.basename(self.compiler.cxx) in sycl_compatible_compilers):
Expand Down

0 comments on commit 994430c

Please sign in to comment.