On Wed, 2 Dec 2015, Nathan Sidwell wrote: > On 12/02/15 12:09, Alexander Monakov wrote: > > > I meant the PTX linked (post PTX-JIT link) image, so regardless of support, > > it's not an issue. E.g. check early in gomp_nvptx_main if .weak > > __nvptx_has_simd != 0. It would only break if there was dlopen on PTX. > > Note I found a bug in .weak support. See the comment in > gcc.dg/special/weak-2.c > > /* NVPTX's implementation of weak is broken when a strong symbol is in > a later object file than the weak definition. */
Thanks for the warning. However, the issue seems limited to function symbols: I've made a test for data symbols, and they appear to work fine -- which suffices in this context. Alexander