diff --git a/.clang-format b/.clang-format index 21fd8c447ad..3cd3f6da331 100644 --- a/.clang-format +++ b/.clang-format @@ -117,12 +117,15 @@ IncludeCategories: - Regex: '^$' - Priority: 5 - SortPriority: 4 + Priority: 6 + SortPriority: 5 - Regex: '^ -#include #include #include #include +#include +#include + namespace cuda::experimental { class timed_event; diff --git a/cudax/include/cuda/experimental/__event/timed_event.cuh b/cudax/include/cuda/experimental/__event/timed_event.cuh index ffc95d293fe..debcbcd26e5 100644 --- a/cudax/include/cuda/experimental/__event/timed_event.cuh +++ b/cudax/include/cuda/experimental/__event/timed_event.cuh @@ -24,12 +24,13 @@ # pragma system_header #endif // no system header -#include -#include #include #include #include +#include +#include + namespace cuda::experimental { //! @brief An owning wrapper for a `cudaEvent_t` with timing enabled. diff --git a/cudax/include/cuda/experimental/__hierarchy/hierarchy_dimensions.cuh b/cudax/include/cuda/experimental/__hierarchy/hierarchy_dimensions.cuh index 947c1390d0d..e7ec1e3c3fc 100644 --- a/cudax/include/cuda/experimental/__hierarchy/hierarchy_dimensions.cuh +++ b/cudax/include/cuda/experimental/__hierarchy/hierarchy_dimensions.cuh @@ -11,10 +11,11 @@ #ifndef _CUDAX__HIERARCHY_HIERARCHY_DIMENSIONS #define _CUDAX__HIERARCHY_HIERARCHY_DIMENSIONS -#include #include #include +#include + #include #if _CCCL_STD_VER >= 2017 diff --git a/cudax/include/cuda/experimental/__hierarchy/level_dimensions.cuh b/cudax/include/cuda/experimental/__hierarchy/level_dimensions.cuh index 8d42fba499d..cf6503d07bd 100644 --- a/cudax/include/cuda/experimental/__hierarchy/level_dimensions.cuh +++ b/cudax/include/cuda/experimental/__hierarchy/level_dimensions.cuh @@ -11,9 +11,10 @@ #ifndef _CUDAX__HIERARCHY_LEVEL_DIMENSIONS #define _CUDAX__HIERARCHY_LEVEL_DIMENSIONS -#include #include +#include + #if _CCCL_STD_VER >= 2017 namespace cuda::experimental { diff --git a/cudax/include/cuda/experimental/__launch/configuration.cuh b/cudax/include/cuda/experimental/__launch/configuration.cuh index 54b18c90e5c..8680582ac5f 100644 --- a/cudax/include/cuda/experimental/__launch/configuration.cuh +++ b/cudax/include/cuda/experimental/__launch/configuration.cuh @@ -11,10 +11,11 @@ #ifndef _CUDAX__LAUNCH_CONFIGURATION #define _CUDAX__LAUNCH_CONFIGURATION -#include #include #include +#include + #if _CCCL_STD_VER >= 2017 namespace cuda::experimental { diff --git a/cudax/include/cuda/experimental/__launch/launch.cuh b/cudax/include/cuda/experimental/__launch/launch.cuh index 70bda4e4e88..a27c2b57b66 100644 --- a/cudax/include/cuda/experimental/__launch/launch.cuh +++ b/cudax/include/cuda/experimental/__launch/launch.cuh @@ -12,11 +12,12 @@ #define _CUDAX__LAUNCH_LAUNCH #include +#include +#include + #include #include #include -#include -#include #if _CCCL_STD_VER >= 2017 namespace cuda::experimental diff --git a/cudax/test/launch/launch_smoke.cu b/cudax/test/launch/launch_smoke.cu index 2409905c78b..4662ff6f307 100644 --- a/cudax/test/launch/launch_smoke.cu +++ b/cudax/test/launch/launch_smoke.cu @@ -9,6 +9,7 @@ //===----------------------------------------------------------------------===// #define LIBCUDACXX_ENABLE_EXCEPTIONS #include + #include #include "../hierarchy/testing_common.cuh"