From 0b625dacc2bcef08163541c25908d7c23c795a1f Mon Sep 17 00:00:00 2001 From: Chen Xin Date: Fri, 16 Dec 2022 10:15:15 +0800 Subject: [PATCH] fix cuda10.2 build (#1539) --- 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 757e40da35..bef1d447e8 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