From: Daniel Arndt Date: Thu, 8 Nov 2018 17:03:07 +0000 (+0100) Subject: Fix init_cuda X-Git-Tag: v9.1.0-rc1~567^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7432%2Fhead;p=dealii.git Fix init_cuda --- diff --git a/tests/tests.h b/tests/tests.h index d798e0236e..d4154a83b8 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -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);