diff options
author | Andrzej Janik <[email protected]> | 2020-10-31 21:28:15 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-10-31 21:28:15 +0100 |
commit | a82eb2081717c1fb48e140176fec0e5b5974a432 (patch) | |
tree | b5ca6934333d1707ed43a1e21a8f02f630929dc4 /notcuda | |
parent | 861116f223081528cf1e32f5e1eddb733ac00241 (diff) | |
download | ZLUDA-a82eb2081717c1fb48e140176fec0e5b5974a432.tar.gz ZLUDA-a82eb2081717c1fb48e140176fec0e5b5974a432.zip |
Implement atomic instructions
Diffstat (limited to 'notcuda')
-rw-r--r-- | notcuda/src/impl/module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notcuda/src/impl/module.rs b/notcuda/src/impl/module.rs index eea862b..35436c3 100644 --- a/notcuda/src/impl/module.rs +++ b/notcuda/src/impl/module.rs @@ -53,7 +53,7 @@ impl ModuleData { Ok(_) if errors.len() > 0 => return Err(ModuleCompileError::Parse(errors, None)), Ok(ast) => ast, }; - let (spirv, all_arg_lens) = ptx::to_spirv(ast)?; + let (_, spirv, all_arg_lens) = ptx::to_spirv(ast)?; let byte_il = unsafe { slice::from_raw_parts::<u8>( spirv.as_ptr() as *const _, @@ -61,7 +61,7 @@ impl ModuleData { ) }; let module = super::device::with_current_exclusive(|dev| { - l0::Module::new_spirv(&mut dev.l0_context, &dev.base, byte_il, None) + l0::Module::build_spirv(&mut dev.l0_context, &dev.base, byte_il, None) }); match module { Ok((Ok(module), _)) => Ok(Mutex::new(Self { |