GPUOpen-Tools / gpu_performance_api

GPU Performance API for AMD GPUs
MIT License
251 stars 46 forks source link

doc: fix documentation error in usage section #49

Closed roobre closed 3 years ago

roobre commented 4 years ago

The example provided in the documentation used a different name for the g_pFuncTableInfo pointer, which caused compilation to fail in GPAIL_LoadApi due to an undefined symbol:

/tmp/ccuhxdcO.o: In function `GPAIL_LoadApi(GPA_API_Type, char const*)':
main.cpp:(.text+0x502): undefined reference to `g_pFuncTableInfo'

The documentation now includes the proper snippet taken from include/gpu_perf_api_interface_loader.h

PLohrmannAMD commented 3 years ago

Thank you for providing the updates!