Merge pull request #21 from cfreehill/master

Fix sysfs write operations

[ROCm/amdsmi commit: 03724c9c5a]
このコミットが含まれているのは:
Chris Freehill
2019-02-25 15:42:48 -06:00
committed by GitHub
コミット c14646bdb7
+4 -3
ファイルの表示
@@ -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/";