Skip to content

Commit

Permalink
Allow choosing 64 as the SYCL subgroup size at compile time
Browse files Browse the repository at this point in the history
Note the SYCL subgroup size will still be subject to a runtime check
  • Loading branch information
nmnobre committed Jun 27, 2023
1 parent e407286 commit 6cceaa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Docs/sphinx_documentation/source/GPU.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReXOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6cceaa8

Please sign in to comment.