Merge pull request #21 from cfreehill/master

Fix sysfs write operations

[ROCm/amdsmi commit: 03724c9c5a]
Esse commit está contido em:
Chris Freehill
2019-02-25 15:42:48 -06:00
commit de GitHub
+4 -3
Ver Arquivo
@@ -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/";