Correct return code of isAMDGpu()

Also, correct some comments, whitespace.


[ROCm/amdsmi commit: 53489c1f3d]
This commit is contained in:
Chris Freehill
2019-05-13 18:00:12 -05:00
parent 9a68c05630
commit ddd52360dd
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -50,7 +50,6 @@ extern "C" {
#include <stdint.h>
#endif // __cplusplus
#include <stdint.h>
#include <stddef.h>
/** \file rocm_smi.h
@@ -113,6 +112,12 @@ typedef enum {
RSMI_STATUS_UNKNOWN_ERROR = 0xFFFFFFFF, //!< An unknown error occurred
} rsmi_status_t;
/**
* @brief Initialization flags
*
* Initialization flags may be OR'd together and passed to ::rsmi_init().
*/
typedef enum {
RSMI_INIT_FLAG_ALL_GPUS = 0x1, //!< Attempt to add all GPUs found
//!< (including non-AMD) to the list
+1 -1
View File
@@ -348,7 +348,7 @@ static bool isAMDGPU(std::string dev_path) {
fs.open(vend_path);
if (!fs.is_open()) {
return errno;
return false;
}
uint32_t vendor_id;