diff options
author | Andrzej Janik <[email protected]> | 2021-06-28 01:40:35 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-06-28 01:40:35 +0200 |
commit | b2a455e12e91d3b1bdc4edaa7b25a3348047be9e (patch) | |
tree | 8ed0c81404bf0cab77fc264714bc257badc6ac4d /zluda/src | |
parent | 196242b4104eae77249cb342d749f95c37d6ffec (diff) | |
download | ZLUDA-b2a455e12e91d3b1bdc4edaa7b25a3348047be9e.tar.gz ZLUDA-b2a455e12e91d3b1bdc4edaa7b25a3348047be9e.zip |
Bunch of tiny fixes and improvements
Diffstat (limited to 'zluda/src')
-rw-r--r-- | zluda/src/cuda.rs | 2 | ||||
-rw-r--r-- | zluda/src/impl/function.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zluda/src/cuda.rs b/zluda/src/cuda.rs index 16193dd..9e7cbff 100644 --- a/zluda/src/cuda.rs +++ b/zluda/src/cuda.rs @@ -3449,7 +3449,7 @@ pub extern "system" fn cuStreamQuery(hStream: CUstream) -> CUresult { #[cfg_attr(not(test), no_mangle)] pub extern "system" fn cuStreamSynchronize(hStream: CUstream) -> CUresult { - r#impl::unimplemented() + CUresult::CUDA_SUCCESS } #[cfg_attr(not(test), no_mangle)] diff --git a/zluda/src/impl/function.rs b/zluda/src/impl/function.rs index 4f2006c..2aaab22 100644 --- a/zluda/src/impl/function.rs +++ b/zluda/src/impl/function.rs @@ -113,7 +113,7 @@ pub fn launch_kernel( func.arg_size.iter().fold(0, |offset, size_of_arg| { size_of_arg + round_up_to_multiple(offset, *size_of_arg) }); - if buffer_size != sum_of_kernel_argument_sizes { + if buffer_size < sum_of_kernel_argument_sizes { return Err(CUresult::CUDA_ERROR_INVALID_VALUE); } let mut offset = 0; |