]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use cuda_init() in tests
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 5 Nov 2018 22:13:23 +0000 (23:13 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 6 Nov 2018 21:19:59 +0000 (22:19 +0100)
tests/cuda/array_view_access_data.cu
tests/cuda/array_view_wrong_memory.cu

index 5165c22b5f5bb5242bd1bfaf71dcecdda3d93967..d8f708db8352da42bf7fa05d4062acae6116edce 100644 (file)
@@ -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>);
index 66f8972317e9eba1e7a42ca684f6d6173e98c5fd..81bad10ed991c71746a3a97c617d91b7dfe8655e 100644 (file)
@@ -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),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.