diff options
author | Andrzej Janik <[email protected]> | 2020-05-14 02:18:25 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-05-14 02:18:25 +0200 |
commit | 531cefce36a9f8ba53e8b339a74fa2dd2dd38935 (patch) | |
tree | 331a162a1aa9acda4c91ab2ba0083c00b2256796 /level_zero/src/ze.rs | |
parent | 4b894abd96c13375c716b40bcee7f31f384d6b64 (diff) | |
download | ZLUDA-531cefce36a9f8ba53e8b339a74fa2dd2dd38935.tar.gz ZLUDA-531cefce36a9f8ba53e8b339a74fa2dd2dd38935.zip |
Remove all OCL use and clean up a little spirv_run tests
Diffstat (limited to 'level_zero/src/ze.rs')
-rw-r--r-- | level_zero/src/ze.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs index 8e1e4e5..a4e1bcc 100644 --- a/level_zero/src/ze.rs +++ b/level_zero/src/ze.rs @@ -1,5 +1,4 @@ use crate::sys;
-use std::num::NonZeroUsize;
use std::{
ffi::{c_void, CStr},
fmt::{Debug, Display},
@@ -310,7 +309,7 @@ impl Module { Self(x)
}
- pub fn new_spirv(d: &Device, bin: &[u8], opts: Option<&str>) -> Result<Self> {
+ pub fn new_spirv(d: &Device, bin: &[u8], opts: Option<&CStr>) -> Result<Self> {
Module::new(true, d, bin, opts)
}
@@ -318,7 +317,7 @@ impl Module { Module::new(false, d, bin, None)
}
- fn new(spirv: bool, d: &Device, bin: &[u8], opts: Option<&str>) -> Result<Self> {
+ fn new(spirv: bool, d: &Device, bin: &[u8], opts: Option<&CStr>) -> Result<Self> {
let desc = sys::ze_module_desc_t {
version: sys::ze_module_desc_version_t::ZE_MODULE_DESC_VERSION_CURRENT,
format: if spirv {
|