diff --git a/CMakeLists.txt b/CMakeLists.txt index 347d2ec7..4b6ce460 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,17 @@ # and is wrong about its own performance, which is the worst of both outcomes. cmake_minimum_required(VERSION 3.24) project(strata VERSION 0.1.39 LANGUAGES CXX) +# EXPERIMENTAL: the Intel Arc engine, the SYCL port in sycl/ (PR #423; icpx + oneMKL, docs/INTEL_ARC.md). It is its +# own project that takes the unported sources from src/; with this on, nothing below is configured. +option(STRATA_ENABLE_SYCL "EXPERIMENTAL: build the Intel Arc (SYCL) engine from sycl/ - docs/INTEL_ARC.md" OFF) +if(STRATA_ENABLE_SYCL) + if(STRATA_ENABLE_CUDA OR STRATA_ENABLE_HIP) + message(FATAL_ERROR "STRATA_ENABLE_SYCL is a separate backend; leave STRATA_ENABLE_CUDA and STRATA_ENABLE_HIP off") + endif() + message(WARNING "STRATA_ENABLE_SYCL: the Intel Arc engine is experimental (community port, docs/INTEL_ARC.md)") + add_subdirectory(sycl) + return() +endif() add_compile_definitions(STRATA_VERSION="${PROJECT_VERSION}") # issue #31: release builds keep a PDB beside the exe (not shipped in it), so a minidump from a stalled engine can # be read back to the exact source line