Merge pull request #21 from cfreehill/master

Fix sysfs write operations

[ROCm/rocm_smi_lib commit: 03724c9c5a]
This commit is contained in:
Chris Freehill
2019-02-25 15:42:48 -06:00
committed by GitHub
+4 -3
View File
@@ -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/";