]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reduce chunk_size used in CUDA kernels from 8 to 1 7955/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 23 Apr 2019 17:35:35 +0000 (17:35 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 23 Apr 2019 17:35:35 +0000 (17:35 +0000)
doc/news/changes/minor/20190423BrunoTurcksin [new file with mode: 0644]
include/deal.II/base/cuda_size.h

diff --git a/doc/news/changes/minor/20190423BrunoTurcksin b/doc/news/changes/minor/20190423BrunoTurcksin
new file mode 100644 (file)
index 0000000..3a3c21d
--- /dev/null
@@ -0,0 +1,4 @@
+Changed: The chunk_size used in CUDA kernels has been reduced from 8 to 1 to
+improve performance on newer architectures.
+<br>
+(Bruno Turcksin, 2019/04/23)
index 26e0a3c4d99008259e6f3938d28cfc17c0fd6ad7..274b418f9a75c2b40909a33f0ae155e0ae4041e5 100644 (file)
@@ -23,14 +23,16 @@ DEAL_II_NAMESPACE_OPEN
 namespace CUDAWrappers
 {
   /**
-   * Define the size of a block when launching a CUDA kernel.
+   * Define the size of a block when launching a CUDA kernel. This number can be
+   * changed depending on the architecture the code is running on.
    */
   constexpr int block_size = 512;
 
   /**
-   * Define the size of chunk of data worked on by a thread.
+   * Define the size of chunk of data worked on by a thread. This number can be
+   * changed depending on the architecture the code is running on.
    */
-  constexpr int chunk_size = 8;
+  constexpr int chunk_size = 1;
 } // namespace CUDAWrappers
 
 DEAL_II_NAMESPACE_CLOSE

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.