Suppose some kernel (a __global__
function named foo
) is running on a CUDA device. And suppose that kernel calls a __device__
function bar
which are sometimes called in other kernels, i.e. the code of bar
does not know at compile-time whether the kernel is foo
or something else.
Can a thread running foo
, within bar
, obtain either the name "foo", the signature, or some other identifier of the kernel, preferable a human-readable one?
If necessary, assume the code has been compiled with any of --debug
, --device-debug
and/or --lineinfo
.
Aucun commentaire:
Enregistrer un commentaire