From c67e2db68e38528a20663b31aa0d4cd1fe2dbe66 Mon Sep 17 00:00:00 2001 From: Chen Xin Date: Fri, 30 Dec 2022 19:48:55 +0800 Subject: [PATCH] Fix build error on cuda10.2 platform (#1597) --- csrc/mmdeploy/codebase/mmaction/cuda/transpose.cu | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/csrc/mmdeploy/codebase/mmaction/cuda/transpose.cu b/csrc/mmdeploy/codebase/mmaction/cuda/transpose.cu index 757e40da3..bef1d447e 100644 --- a/csrc/mmdeploy/codebase/mmaction/cuda/transpose.cu +++ b/csrc/mmdeploy/codebase/mmaction/cuda/transpose.cu @@ -3,7 +3,9 @@ #include #include -namespace mmdeploy::mmaction::cuda { +namespace mmdeploy { +namespace mmaction { +namespace cuda { template __global__ void transpose(const T* src, const int* src_strides, T* dst, const int* dst_strides, @@ -35,4 +37,6 @@ void Transpose(const T* src, const int* src_strides, T* dst, const int* dst_stri template void Transpose(const float* src, const int* src_strides, float* dst, const int* dst_strides, int ndim, int total, cudaStream_t stream); -} // namespace mmdeploy::mmaction::cuda +} // namespace cuda +} // namespace mmaction +} // namespace mmdeploy