Skip to content

Commit

Permalink
Merge pull request #27 from stephenswat/fix/missing_cuda_constructor
Browse files Browse the repository at this point in the history
Add missing constructor to CUDA array
  • Loading branch information
stephenswat authored Jul 30, 2024
2 parents 389a843 + 8444687 commit b647dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cuda/covfie/cuda/backend/primitive/cuda_device_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ struct cuda_device_array {
}
}

explicit owning_data_t(parameter_pack<owning_data_t> && args)
: owning_data_t(std::move(args.x))
{
}

explicit owning_data_t(parameter_pack<configuration_t> && args)
: m_size(args.x[0])
, m_ptr(utility::cuda::device_allocate<vector_t[]>(m_size))
Expand Down

0 comments on commit b647dee

Please sign in to comment.