]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix init_cuda 7432/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 8 Nov 2018 17:03:07 +0000 (18:03 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 8 Nov 2018 17:03:07 +0000 (18:03 +0100)
tests/tests.h

index d798e0236ef5501af82e968a11984f4a180fd382..d4154a83b835d066d2fa3b67ca4c2bf5bce96d1d 100644 (file)
@@ -611,7 +611,6 @@ init_cuda(const bool use_mpi = false)
 #  endif
   const unsigned int my_id =
     use_mpi ? Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) : 0;
-  int         device_id       = 0;
   int         n_devices       = 0;
   cudaError_t cuda_error_code = cudaGetDeviceCount(&n_devices);
   AssertCuda(cuda_error_code);

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.