From: Daniel Arndt Date: Mon, 5 Nov 2018 22:13:23 +0000 (+0100) Subject: Use cuda_init() in tests X-Git-Tag: v9.1.0-rc1~571^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98eea0f82dfe6935050564d0f6ca64ff9e12b164;p=dealii.git Use cuda_init() in tests --- 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),