raja-perf: Fix support for SYCL (#46782)

This commit is contained in:
Adrien Bernede 2024-10-04 17:49:01 +02:00 committed by GitHub
parent 7bc1316ce4
commit 8a9bfd162d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -321,7 +321,7 @@ def initconfig_package_entries(self):
entries.append(cmake_cache_option("BUILD_SHARED_LIBS", "+shared" in spec)) entries.append(cmake_cache_option("BUILD_SHARED_LIBS", "+shared" in spec))
entries.append(cmake_cache_option("ENABLE_OPENMP", "+openmp" in spec)) entries.append(cmake_cache_option("ENABLE_OPENMP", "+openmp" in spec))
entries.append(cmake_cache_option("RAJA_ENABLE_OPENMP_TASK", "+omptask" in spec)) entries.append(cmake_cache_option("RAJA_ENABLE_OPENMP_TASK", "+omptask" in spec))
entries.append(cmake_cache_option("RAJA_ENABLE_SYCL", spec.satisfies("+sycl"))) entries.append(cmake_cache_option("ENABLE_SYCL", spec.satisfies("+sycl")))
# C++17 # C++17
if spec.satisfies("@2024.07.0:") and spec.satisfies("+sycl"): if spec.satisfies("@2024.07.0:") and spec.satisfies("+sycl"):