From 805c2adc795b40abda5b16cebabbb98f3339f1a2 Mon Sep 17 00:00:00 2001 From: Ye Luo Date: Fri, 13 Oct 2023 22:26:01 -0500 Subject: [PATCH] Fix AFQMC compilation with CUDA 12.x --- .../Numerics/detail/CUDA/Kernels/strided_2Drange.hpp | 10 +++++----- .../Numerics/detail/CUDA/Kernels/strided_range.hpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_2Drange.hpp b/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_2Drange.hpp index 6a788cc4b4..b21e2db14d 100644 --- a/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_2Drange.hpp +++ b/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_2Drange.hpp @@ -15,16 +15,16 @@ #ifndef AFQMC_STRIDED_2DRANGE_KERNELS_HPP #define AFQMC_STRIDED_2DRANGE_KERNELS_HPP -namespace kernels -{ -/* Note: Taken from thrust examples. - */ - #include #include #include #include +namespace kernels +{ +/* Note: Taken from thrust examples. + */ + template class strided_2Drange { diff --git a/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_range.hpp b/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_range.hpp index dc4f347514..91f1a729b2 100644 --- a/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_range.hpp +++ b/src/AFQMC/Numerics/detail/CUDA/Kernels/strided_range.hpp @@ -15,16 +15,16 @@ #ifndef AFQMC_STRIDED_RANGE_KERNELS_HPP #define AFQMC_STRIDED_RANGE_KERNELS_HPP -namespace kernels -{ -/* Note: Taken from thrust examples. - */ - #include #include #include #include +namespace kernels +{ +/* Note: Taken from thrust examples. + */ + template class strided_range {