From 3a0d646ade02a6ca006a0d8cf6c0f60a1ece8272 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 12 Jan 2020 07:08:30 +0100 Subject: Fix wrong workgroup size --- src/solvers/gpu/host.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/solvers/gpu/host.rs') diff --git a/src/solvers/gpu/host.rs b/src/solvers/gpu/host.rs index 39843c4..e354263 100644 --- a/src/solvers/gpu/host.rs +++ b/src/solvers/gpu/host.rs @@ -28,7 +28,7 @@ impl Host { n: u32, h: u32, w: u32, - mut wg_size: usize, + wg_size: usize, src: &str, output_sender: Sender, ) -> ocl::Result<(Sender, std::thread::JoinHandle<()>)> { @@ -52,12 +52,6 @@ impl Host { .build()?; let (sender, receiver) = channel(); - let max_wg_size = device.max_wg_size()?; - if wg_size == 0 { - wg_size = max_wg_size; - } else if wg_size > max_wg_size { - return Err(ocl::Error::from("invalid workgroup size")); - } let solver = Self { platform, -- cgit v1.2.3-54-g00ecf