mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-10 01:59:45 +00:00
Remove all OCL use and clean up a little spirv_run tests
This commit is contained in:
parent
4b894abd96
commit
531cefce36
8 changed files with 101 additions and 322 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue