Correct return code of isAMDGpu()
Also, correct some comments, whitespace.
[ROCm/amdsmi commit: 53489c1f3d]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user