From 2ea8055c54c7cedaf77470a03d364e6548d32273 Mon Sep 17 00:00:00 2001 From: Memo <87127077+mehmetyusufoglu@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:03:44 +0100 Subject: [PATCH] Replace directory name cuda_hip with cuda-hip to fix amalgamation (#2437) --- .clang-format | 12 ++++++------ include/alpaka/dev/DevUniformCudaHipRt.hpp | 2 +- .../alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp | 3 ++- .../mem/global/DeviceGlobalUniformCudaHipBuiltIn.hpp | 2 +- .../alpaka/queue/QueueUniformCudaHipRtBlocking.hpp | 2 +- .../queue/QueueUniformCudaHipRtNonBlocking.hpp | 2 +- .../{cuda_hip => cuda-hip}/QueueUniformCudaHipRt.hpp | 0 7 files changed, 12 insertions(+), 11 deletions(-) rename include/alpaka/queue/{cuda_hip => cuda-hip}/QueueUniformCudaHipRt.hpp (100%) diff --git a/.clang-format b/.clang-format index acd9fbd3b37a..5b2969d5ec80 100644 --- a/.clang-format +++ b/.clang-format @@ -135,20 +135,20 @@ UseTab: Never #IfMacros: [] IncludeCategories: # Local headers (in "") above all else - - Regex: '"([A-Za-z0-9.\/-_])+"' + - Regex: '"([A-Za-z0-9./_\-])+"' Priority: 1 # "alpaka/foo.hpp" after local headers (occur inside alpaka) - - Regex: '"alpaka/([A-Za-z0-9.\/-_])+"' + - Regex: '"alpaka/([A-Za-z0-9./_\-])+"' Priority: 2 # after local headers (occur outside alpaka in examples and test) - - Regex: '' + - Regex: '' Priority: 3 # C++ standard library headers are the last group to be included - - Regex: '<([A-Za-z0-9\/-_])+>' + - Regex: '<([A-Za-z0-9/_\-])+>' Priority: 5 # Includes that made it this far are third-party headers and will be placed - # below alpaka's includes - - Regex: '<([A-Za-z0-9.\/-_])+>' + # below alpaka's includes + - Regex: '<([A-Za-z0-9./_\-])+>' Priority: 4 # Macros: [] # NamespaceMacros: [] diff --git a/include/alpaka/dev/DevUniformCudaHipRt.hpp b/include/alpaka/dev/DevUniformCudaHipRt.hpp index 9954a969c755..188a81665f20 100644 --- a/include/alpaka/dev/DevUniformCudaHipRt.hpp +++ b/include/alpaka/dev/DevUniformCudaHipRt.hpp @@ -15,7 +15,7 @@ #include "alpaka/platform/Traits.hpp" #include "alpaka/queue/Properties.hpp" #include "alpaka/queue/Traits.hpp" -#include "alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp" +#include "alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp" #include "alpaka/traits/Traits.hpp" #include "alpaka/wait/Traits.hpp" diff --git a/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp b/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp index 53bbaf67529f..bea45ab7bcc0 100644 --- a/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp +++ b/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp @@ -21,13 +21,14 @@ #include "alpaka/kernel/Traits.hpp" #include "alpaka/platform/Traits.hpp" #include "alpaka/queue/Traits.hpp" -#include "alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp" +#include "alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp" #include "alpaka/workdiv/WorkDivHelpers.hpp" #include "alpaka/workdiv/WorkDivMembers.hpp" #include #include #include + #if ALPAKA_DEBUG >= ALPAKA_DEBUG_MINIMAL # include #endif diff --git a/include/alpaka/mem/global/DeviceGlobalUniformCudaHipBuiltIn.hpp b/include/alpaka/mem/global/DeviceGlobalUniformCudaHipBuiltIn.hpp index 137670abe7ab..61baee267067 100644 --- a/include/alpaka/mem/global/DeviceGlobalUniformCudaHipBuiltIn.hpp +++ b/include/alpaka/mem/global/DeviceGlobalUniformCudaHipBuiltIn.hpp @@ -7,7 +7,7 @@ #include "alpaka/dev/DevUniformCudaHipRt.hpp" #include "alpaka/mem/global/Traits.hpp" #include "alpaka/mem/view/ViewPlainPtr.hpp" -#include "alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp" +#include "alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp" #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED) diff --git a/include/alpaka/queue/QueueUniformCudaHipRtBlocking.hpp b/include/alpaka/queue/QueueUniformCudaHipRtBlocking.hpp index 5add0ef21aee..93ea56f8dae5 100644 --- a/include/alpaka/queue/QueueUniformCudaHipRtBlocking.hpp +++ b/include/alpaka/queue/QueueUniformCudaHipRtBlocking.hpp @@ -4,7 +4,7 @@ #pragma once -#include "alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp" +#include "alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp" #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED) diff --git a/include/alpaka/queue/QueueUniformCudaHipRtNonBlocking.hpp b/include/alpaka/queue/QueueUniformCudaHipRtNonBlocking.hpp index 62b0b0f08842..8172f3342739 100644 --- a/include/alpaka/queue/QueueUniformCudaHipRtNonBlocking.hpp +++ b/include/alpaka/queue/QueueUniformCudaHipRtNonBlocking.hpp @@ -4,7 +4,7 @@ #pragma once -#include "alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp" +#include "alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp" #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED) diff --git a/include/alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp b/include/alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp similarity index 100% rename from include/alpaka/queue/cuda_hip/QueueUniformCudaHipRt.hpp rename to include/alpaka/queue/cuda-hip/QueueUniformCudaHipRt.hpp