diff --git a/Cargo.lock b/Cargo.lock index 460ff88..f5dd1ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -923,7 +923,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "scavenger" -version = "1.6.2" +version = "1.6.4" dependencies = [ "aligned_alloc 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "cc 1.0.22 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 7a73dcb..8799314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scavenger" -version = "1.6.2" +version = "1.6.4" license = "GPL-3.0" authors = ["PoC Consortium "] description = """ diff --git a/src/ocl.rs b/src/ocl.rs index 3a3c72a..d0f14ac 100644 --- a/src/ocl.rs +++ b/src/ocl.rs @@ -356,7 +356,7 @@ pub fn find_best_deadline_gpu( } core::set_kernel_arg(&gpu_context.kernel2, 0, ArgVal::mem(&buffer.deadlines_gpu)).unwrap(); - core::set_kernel_arg(&gpu_context.kernel2, 1, ArgVal::primitive(&nonce_count)).unwrap(); + core::set_kernel_arg(&gpu_context.kernel2, 1, ArgVal::primitive(&(nonce_count as u64))).unwrap(); core::set_kernel_arg( &gpu_context.kernel2, 2,