pyxis-roc / gpu-api-interposer

GPU API interposer generation tools plus libcuda (CUDA Device API) and libcudart (CUDA Runtime API) interposers. Also includes harmonv, for now.
2 stars 0 forks source link

Add new section for global_offsets to gen_xlat_metadata #27

Closed bavalpey closed 1 year ago

bavalpey commented 2 years ago

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.