[committed,nvptx] Move PTX_CTA_SIZE up

Message ID 20190111114927.GA25468@delia
State New
Headers show
Series
  • [committed,nvptx] Move PTX_CTA_SIZE up
Related show

Commit Message

Tom de Vries Jan. 11, 2019, 11:49 a.m.
Hi,

Move the defition of PTX_CTA_SIZE up in nvptx.c.

Committed to trunk.

Thanks,
- Tom

[nvptx] Move PTX_CTA_SIZE up

2019-01-11  Tom de Vries  <tdevries@suse.de>

	* config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.

---
 gcc/config/nvptx/nvptx.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Patch

diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 7fdc285b6f8..643f5e86ccc 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -82,17 +82,18 @@ 
 #define WORKAROUND_PTXJIT_BUG_2 1
 #define WORKAROUND_PTXJIT_BUG_3 1
 
+/* The PTX concept CTA (Concurrent Thread Array) maps on the CUDA concept thread
+   block, which has had a maximum number of threads of 1024 since CUDA version
+   2.x.  */
+#define PTX_CTA_SIZE 1024
+
 #define PTX_WARP_SIZE 32
+
 #define PTX_DEFAULT_VECTOR_LENGTH PTX_WARP_SIZE
 #define PTX_MAX_VECTOR_LENGTH PTX_WARP_SIZE
 #define PTX_WORKER_LENGTH 32
 #define PTX_DEFAULT_RUNTIME_DIM 0 /* Defer to runtime.  */
 
-/* The PTX concept CTA (Concurrent Thread Array) maps on the CUDA concept thread
-   block, which has had a maximum number of threads of 1024 since CUDA version
-   2.x.  */
-#define PTX_CTA_SIZE 1024
-
 /* The various PTX memory areas an object might reside in.  */
 enum nvptx_data_area
 {