nvptx mkoffload: __OPENMP_TARGET__ -> __OFFLOAD_TABLE__.
gcc/ * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__ instead of __OPENMP_TARGET__. From-SVN: r220620
This commit is contained in:
parent
e6f229ca44
commit
9584e638ca
@ -1,5 +1,8 @@
|
||||
2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
|
||||
instead of __OPENMP_TARGET__.
|
||||
|
||||
* config/nvptx/mkoffload.c: Include "gomp-constants.h".
|
||||
(process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
|
||||
hard-coding PTX_ID.
|
||||
|
@ -791,9 +791,9 @@ process (FILE *in, FILE *out)
|
||||
|
||||
fprintf (out, "extern void GOMP_offload_register (const void *, int, void *);\n");
|
||||
|
||||
fprintf (out, "extern void *__OPENMP_TARGET__[];\n\n");
|
||||
fprintf (out, "extern void *__OFFLOAD_TABLE__[];\n\n");
|
||||
fprintf (out, "static __attribute__((constructor)) void init (void)\n{\n");
|
||||
fprintf (out, " GOMP_offload_register (__OPENMP_TARGET__, %d,\n",
|
||||
fprintf (out, " GOMP_offload_register (__OFFLOAD_TABLE__, %d,\n",
|
||||
GOMP_DEVICE_NVIDIA_PTX);
|
||||
fprintf (out, " &target_data);\n");
|
||||
fprintf (out, "};\n");
|
||||
|
Loading…
Reference in New Issue
Block a user