diff options
author | Andrzej Janik <[email protected]> | 2021-05-27 02:05:17 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-05-27 02:05:17 +0200 |
commit | e40785aa7491de16c65de7aa599105102ffa7355 (patch) | |
tree | 87b4b16dbf6318aae8456a04ab6af574d2238ddb /zluda_ml | |
parent | 58a7fe53c6feaf96156c455b7c3b1def9d7e6d56 (diff) | |
download | ZLUDA-e40785aa7491de16c65de7aa599105102ffa7355.tar.gz ZLUDA-e40785aa7491de16c65de7aa599105102ffa7355.zip |
Refactor L0 bindings
Diffstat (limited to 'zluda_ml')
-rw-r--r-- | zluda_ml/src/impl.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zluda_ml/src/impl.rs b/zluda_ml/src/impl.rs index 75f3ca2..1068b00 100644 --- a/zluda_ml/src/impl.rs +++ b/zluda_ml/src/impl.rs @@ -127,7 +127,8 @@ pub(crate) fn system_get_driver_version( len: 0,
};
for d in drivers {
- let props = d.get_properties()?;
+ let mut props = Default::default();
+ d.get_properties(&mut props)?;
let driver_version = props.driverVersion;
write!(&mut output_write, "{}", driver_version)
.map_err(|_| nvmlReturn_t::NVML_ERROR_UNKNOWN)?;
|