Skip to content

Commit

Permalink
Replace use of CUDA API wrapper unique_ptrs with CUDAUtilities unique…
Browse files Browse the repository at this point in the history
…_ptrs (#396)

Replace cuda::memory::device::make_unique() calls with cudautils::make_device_unique()
Replace cuda::memory::host::make_unique() with cudautils::make_host_unique()
  • Loading branch information
waredjeb authored and fwyzard committed Oct 8, 2020
1 parent 5789d6b commit 5c3e0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoPixelVertexing/PixelVertexFinding/test/VertexFinder_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ int main() {

auto current_device = cuda::device::current::get();

auto onGPU_d = cuda::memory::device::make_unique<ZVertices[]>(current_device, 1);
auto ws_d = cuda::memory::device::make_unique<WorkSpace[]>(current_device, 1);
auto onGPU_d = cudautils::make_device_unique<ZVertices[]>(1, nullptr);
auto ws_d = cudautils::make_device_unique<WorkSpace[]>(1, nullptr);
#else
auto onGPU_d = std::make_unique<ZVertices>();
auto ws_d = std::make_unique<WorkSpace>();
Expand Down

0 comments on commit 5c3e0d0

Please sign in to comment.