diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c8b47c4..7beb856e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,8 @@ endif () # end backends +option(CAMP_USE_PLATFORM_DEFAULT_STREAM "Whether CAMP should use the default device streams (On) or create separate streams (Off)" Off) + # Configure the config header file to allow config time options configure_file(${PROJECT_SOURCE_DIR}/include/camp/config.in.hpp ${PROJECT_BINARY_DIR}/include/camp/config.hpp) diff --git a/include/camp/config.in.hpp b/include/camp/config.in.hpp index 8b2c398d..40f37b57 100644 --- a/include/camp/config.in.hpp +++ b/include/camp/config.in.hpp @@ -15,6 +15,7 @@ #cmakedefine CAMP_ENABLE_HIP #cmakedefine CAMP_ENABLE_SYCL #cmakedefine CAMP_WIN_STATIC_BUILD +#cmakedefine01 CAMP_USE_PLATFORM_DEFAULT_STREAM #endif #define CAMP_VERSION_MAJOR @camp_VERSION_MAJOR@