[SWDEV-512393] Fix for incorrect cpu set size input (#399)
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>
This commit is contained in:
committad av
GitHub
förälder
91c9969b72
incheckning
9a49e454fd
@@ -61,7 +61,7 @@ class AMDSmiSystem {
|
||||
|
||||
amdsmi_status_t get_cpu_model_name(uint32_t socket_id, std::string *model_name);
|
||||
|
||||
std::map<uint32_t, uint32_t> get_sys_cpu_cores_per_socket() ;
|
||||
amdsmi_status_t get_sys_cpu_cores_per_socket(uint32_t *core_num) ;
|
||||
|
||||
amdsmi_status_t get_sys_num_of_cpu_sockets(uint32_t *sock_num);
|
||||
|
||||
|
||||
@@ -178,18 +178,4 @@ constexpr T translate_umax_or_assign_value(U source_value, V target_value)
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Iterates all entires in a directory .
|
||||
*
|
||||
* @details Given a directory in const std::string & base_path, and a callback function
|
||||
* entry_callback, this function will open the directory and iterate through all entires
|
||||
* in that directory. For each entry it will call the entry_callback function with the
|
||||
* path of that entry
|
||||
*
|
||||
* @param[in] base_path the path of the directory to iterate in
|
||||
*
|
||||
* @retval ::true if the iteration was successful
|
||||
* ::false if the iteration failed
|
||||
*/
|
||||
bool iterate_directory(const std::string &base_path, std::function<void(const std::string &)> entry_callback);
|
||||
#endif // AMD_SMI_INCLUDE_AMD_SMI_UTILS_H_
|
||||
|
||||
Referens i nytt ärende
Block a user