GPUOpen-Tools / radeon_compute_profiler

The Radeon Compute Profiler (RCP) is a performance analysis tool that gathers data from the API run-time and GPU for OpenCLâ„¢ and ROCm/HSA applications. This information can be used by developers to discover bottlenecks in the application and to find ways to optimize the application's performance.
MIT License
84 stars 19 forks source link

Build error #8

Closed preda closed 6 years ago

preda commented 6 years ago

I tried a build an it fails as below:

/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp: In constructor 'osCpuid::osCpuid()': /home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +12)' may be used uninitialized in this function [-Werror=maybe-uninitialized] osCpuidParam_t info[MAX_CPUID_REGS]; ^~~~ /home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +8)' may be used uninitialized in this function [-Werror=maybe-uninitialized] /home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +4)' may be used uninitialized in this function [-Werror=maybe-uninitialized] /home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:70:5: error: 'info' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (info[EAX] > 0) ^~ cc1plus: all warnings being treated as errors

acowley commented 6 years ago

Though I, too, can not build rcp, I was able to get past this by removing -Werror from Build/Linux/CXL_init.py.

chesik-amd commented 6 years ago

This should now be fixed. You should now be able to build RCP with gcc7. You'll need to make sure you have the latest sources from the common-src-AMDTOSWrappers repo as well (running Scripts/UpdateCommon.py should get the latest changes from there)