Merge pull request #21 from cfreehill/master
Fix sysfs write operations
[ROCm/rocm_smi_lib commit: 03724c9c5a]
This commit is contained in:
@@ -129,9 +129,10 @@ int Device::openSysfsFileStream(DevInfoTypes type, T *fs, bool write) {
|
||||
|
||||
if (env_->path_DRM_root_override && type == env_->enum_override) {
|
||||
sysfs_path = env_->path_DRM_root_override;
|
||||
}
|
||||
if (write) {
|
||||
sysfs_path += ".write";
|
||||
|
||||
if (write) {
|
||||
sysfs_path += ".write";
|
||||
}
|
||||
}
|
||||
|
||||
sysfs_path += "/device/";
|
||||
|
||||
Reference in New Issue
Block a user