8a9771b225
1. new class files for cpu socket and cpu core created 2. wrapper API's for getting energy monitoring, system statistics, power monitoring values implemented 3. modified amdsmi init & cleanup functions for esmi lib support 4. modified amdsmi system class for esmi lib support 5. sample test code created in example dir Change-Id: Ic41f31641c283a681de696bb4346b557265bad42
27 linhas
751 B
Plaintext
27 linhas
751 B
Plaintext
cmake_minimum_required(VERSION 3.11)
|
|
|
|
option(CMAKE_VERBOSE_MAKEFILE "Enable verbose output" ON)
|
|
option(CMAKE_EXPORT_COMPILE_COMMANDS "Export compile commands for linters and autocompleters" ON)
|
|
|
|
project(main LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD
|
|
11
|
|
CACHE STRING "The C++ standard to use")
|
|
|
|
find_package(amd_smi
|
|
HINTS
|
|
"../../../lib/cmake"
|
|
"../../../lib64/cmake"
|
|
"${ROCM_DIR}/lib/cmake"
|
|
"${ROCM_DIR}/lib64/cmake"
|
|
CONFIG REQUIRED)
|
|
link_libraries(amd_smi)
|
|
|
|
# compile example files but do not install
|
|
add_executable(amd_smi_drm_ex "amd_smi_drm_example.cc")
|
|
add_executable(amd_smi_nodrm_ex "amd_smi_nodrm_example.cc")
|
|
if(ENABLE_ESMI_LIB)
|
|
add_executable(amd_smi_esmi_ex "amdsmi_esmi_intg_example.cc")
|
|
endif()
|