Variables declared at the top of a file with __device__, but that are not given an initial value, are stored in a section called .nv.global. A new section in the xlat_metadata needs to be added that stores the symbols that are placed in this section, along with their offsets and size.
This should be done in a manner similar to how global_init_offsets is currently being populated.
Variables declared at the top of a file with
__device__
, but that are not given an initial value, are stored in a section called .nv.global. A new section in the xlat_metadata needs to be added that stores the symbols that are placed in this section, along with their offsets and size. This should be done in a manner similar to howglobal_init_offsets
is currently being populated.