Correct return code of isAMDGpu()

Also, correct some comments, whitespace.
这个提交包含在:
Chris Freehill 于 2019-05-13 18:02:03 -05:00 提交
1 父节点 ae7ca83920
当前提交 53489c1f3d
2 个文件已更改
+7 -2

没有与搜索条件相匹配的文件

+6 -1
查看文件
@@ -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