]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove unused code 7599/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 13 Jan 2019 03:02:29 +0000 (22:02 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 13 Jan 2019 03:02:29 +0000 (22:02 -0500)
tests/cuda/matrix_vector_mf.h

index 4d62d78cec3b63944fa89001fa0846203e7b7a84..4a73a2b3b116fbff1b0e0f940d5324169483ba9e 100644 (file)
 
 #include "../tests.h"
 
-__device__ unsigned int
-compute_thread_id()
-{
-  const unsigned int thread_num_in_block =
-    threadIdx.x + blockDim.x * threadIdx.y +
-    blockDim.x * blockDim.y * threadIdx.z;
-  const unsigned int n_threads_per_block = blockDim.x * blockDim.y * blockDim.z;
-  const unsigned int blocks_num_in_grid =
-    blockIdx.x + gridDim.x * blockIdx.y + gridDim.x * gridDim.y * blockIdx.z;
-
-  return thread_num_in_block + blocks_num_in_grid * n_threads_per_block;
-}
-
-
-
 template <int dim, int fe_degree, typename Number, int n_q_points_1d>
 class HelmholtzOperatorQuad
 {

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.