I've applied this patch to gomp4 branch. I found it useful to know the compute
grid dimensions when spawning a kernel.
nathan
2015-07-15 Nathan Sidwell <nat...@codesourcery.com>
* plugin/plugin-nvptx.c (nvptx_exec): Show grid dimensions in
debug message.
Index: plugin/plugin-nvptx.c
===================================================================
--- plugin/plugin-nvptx.c (revision 225743)
+++ plugin/plugin-nvptx.c (working copy)
@@ -1011,7 +1011,10 @@ nvptx_exec (void (*fn), size_t mapnum, v
if (r != CUDA_SUCCESS)
GOMP_PLUGIN_fatal ("cuMemcpy failed: %s", cuda_error (r));
- GOMP_PLUGIN_debug (0, " %s: kernel %s: launch\n", __FUNCTION__, targ_fn->name);
+ GOMP_PLUGIN_debug (0, " %s: kernel %s: launch"
+ " gangs=%u, workers=%u, vectors=%u, shared=%u\n",
+ __FUNCTION__, targ_fn->name, num_gangs, num_workers,
+ vector_length, (unsigned)shared_size);
// OpenACC CUDA
//