From: Daniel Arndt <daniel.arndt@iwr.uni-heidelberg.de> 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<unsigned int[], void (*)(unsigned int *)> dummy_cuda( Utilities::CUDA::allocate_device_data<unsigned int>(2), Utilities::CUDA::delete_device_data<unsigned int>); 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<unsigned int> dummy_host(2); std::unique_ptr<unsigned int[], void (*)(unsigned int *)> dummy_cuda( Utilities::CUDA::allocate_device_data<unsigned int>(2),