CMAKE - Remove example build from src/CMakeLists.txt (#469)
* CMAKE - Remove example build from src/CMakeLists.txt
For some reason it was building examples every time even when not
necessary...
* CMAKE - Format
* Fix drm_example broken PRIu32
* CMAKE - Do NOT create lib64 when building examples
* CMAKE - Examples should only install C and CMake files
---------
Change-Id: I6274b72a085a41b5bd5ae698af798f60a8a092a0
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
[ROCm/amdsmi commit: f9b8066c26]
This commit is contained in:
committed by
GitHub
parent
75fac0a105
commit
6892907072
@@ -891,7 +891,7 @@ int main() {
|
||||
printf("\tAsic serial: 0x%s\n", asic_info.asic_serial);
|
||||
if (asic_info.oam_id != UINT32_MAX) {
|
||||
// OAM ID is not supported on all devices
|
||||
printf("\tOAM ID: %"PRIu32"\n", asic_info.oam_id);
|
||||
printf("\tOAM ID: %" PRIu32"\n", asic_info.oam_id);
|
||||
} else {
|
||||
// OAM ID is not supported on this device
|
||||
printf("\tOAM ID: N/A\n");
|
||||
@@ -999,7 +999,7 @@ int main() {
|
||||
printf(" Output of amdsmi_get_power_info:\n");
|
||||
if (ret != AMDSMI_STATUS_NOT_SUPPORTED) {
|
||||
CHK_AMDSMI_RET(ret)
|
||||
printf("\tCurrent GFX Voltage: %d\n", power_measure.gfx_voltage);
|
||||
printf("\tCurrent GFX Voltage: %ld\n", power_measure.gfx_voltage);
|
||||
printf("\tAverage socket power: %d\n", power_measure.average_socket_power);
|
||||
printf("\tGPU Power limit: %d\n\n", power_measure.power_limit);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user