From 8444687495d3fb8062ffdcb96bf25276a1e6678f Mon Sep 17 00:00:00 2001 From: Stephen Nicholas Swatman Date: Thu, 25 Jul 2024 15:24:23 +0200 Subject: [PATCH] Add missing constructor to CUDA array This fixes a concept mismatch, stemming from the time that concepts were not supported in CUDA. --- lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp b/lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp index 3cbdc43..be174ba 100644 --- a/lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp +++ b/lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp @@ -76,6 +76,11 @@ struct cuda_device_array { } } + explicit owning_data_t(parameter_pack && args) + : owning_data_t(std::move(args.x)) + { + } + explicit owning_data_t(parameter_pack && args) : m_size(args.x[0]) , m_ptr(utility::cuda::device_allocate(m_size))