diff options
author | Tom de Vries <tdevries@suse.de> | 2018-12-19 17:16:10 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2018-12-19 17:16:10 +0000 |
commit | c4686fa91e3f4852f0182df220ced85b6ff0e13c (patch) | |
tree | 06e8b5c58fabaa8331ab8e66fe0626b8e9314481 /gcc/config/nvptx | |
parent | 7c67ff4a1b44996cea0a72d0d9ee585c59fe2934 (diff) | |
download | gcc-c4686fa91e3f4852f0182df220ced85b6ff0e13c.tar.gz |
[nvptx] Add PTX_CTA_SIZE
2018-12-19 Tom de Vries <tdevries@suse.de>
* config/nvptx/nvptx.c (PTX_CTA_SIZE): Define.
From-SVN: r267281
Diffstat (limited to 'gcc/config/nvptx')
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 2a2d638e6d7..f4095ff5f55 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -86,6 +86,11 @@ #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 { |