From 6cceaa87f210301dbca54bc91f92ee44b99191fb Mon Sep 17 00:00:00 2001 From: Nuno Miguel Nobre Date: Thu, 1 Jun 2023 15:34:23 +0100 Subject: [PATCH] Allow choosing 64 as the SYCL subgroup size at compile time Note the SYCL subgroup size will still be subject to a runtime check --- Docs/sphinx_documentation/source/GPU.rst | 2 +- Tools/CMake/AMReXOptions.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/sphinx_documentation/source/GPU.rst b/Docs/sphinx_documentation/source/GPU.rst index ddd31f599ce..a59498fea5f 100644 --- a/Docs/sphinx_documentation/source/GPU.rst +++ b/Docs/sphinx_documentation/source/GPU.rst @@ -404,7 +404,7 @@ Below is an example configuration for SYCL: +------------------------------+-------------------------------------------------+-------------+-----------------+ | AMReX_SYCL_ONEDPL | Enable SYCL's oneDPL algorithms | NO | YES, NO | +------------------------------+-------------------------------------------------+-------------+-----------------+ - | AMReX_SYCL_SUB_GROUP_SIZE | Specify subgroup size | 32 | 32, 16 | + | AMReX_SYCL_SUB_GROUP_SIZE | Specify subgroup size | 32 | 64, 32, 16 | +------------------------------+-------------------------------------------------+-------------+-----------------+ .. raw:: latex diff --git a/Tools/CMake/AMReXOptions.cmake b/Tools/CMake/AMReXOptions.cmake index 98097da63a2..47cb35c8e73 100644 --- a/Tools/CMake/AMReXOptions.cmake +++ b/Tools/CMake/AMReXOptions.cmake @@ -169,7 +169,7 @@ if (AMReX_SYCL) unset(_valid_sycl_compiler_ids) set(AMReX_SYCL_SUB_GROUP_SIZE_DEFAULT 32) - set(AMReX_SYCL_SUB_GROUP_SIZE_VALUES 16 32) + set(AMReX_SYCL_SUB_GROUP_SIZE_VALUES 16 32 64) set(AMReX_SYCL_SUB_GROUP_SIZE ${AMReX_SYCL_SUB_GROUP_SIZE_DEFAULT} CACHE STRING "SYCL sub-group size") if (NOT AMReX_SYCL_SUB_GROUP_SIZE IN_LIST AMReX_SYCL_SUB_GROUP_SIZE_VALUES)