From 98eea0f82dfe6935050564d0f6ca64ff9e12b164 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 5 Nov 2018 23:13:23 +0100 Subject: [PATCH] Use cuda_init() in tests --- tests/cuda/array_view_access_data.cu | 2 ++ tests/cuda/array_view_wrong_memory.cu | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/cuda/array_view_access_data.cu b/tests/cuda/array_view_access_data.cu index 5165c22b5f..d8f708db83 100644 --- a/tests/cuda/array_view_access_data.cu +++ b/tests/cuda/array_view_access_data.cu @@ -28,6 +28,8 @@ main(int argc, char **argv) initlog(); + init_cuda(); + std::unique_ptr dummy_cuda( Utilities::CUDA::allocate_device_data(2), Utilities::CUDA::delete_device_data); diff --git a/tests/cuda/array_view_wrong_memory.cu b/tests/cuda/array_view_wrong_memory.cu index 66f8972317..81bad10ed9 100644 --- a/tests/cuda/array_view_wrong_memory.cu +++ b/tests/cuda/array_view_wrong_memory.cu @@ -27,6 +27,8 @@ main(int argc, char **argv) initlog(); + init_cuda(); + std::vector dummy_host(2); std::unique_ptr dummy_cuda( Utilities::CUDA::allocate_device_data(2), -- 2.39.5