summaryrefslogtreecommitdiff
path: root/src/solvers/gpu/host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/solvers/gpu/host.rs')
-rw-r--r--src/solvers/gpu/host.rs8
1 files changed, 1 insertions, 7 deletions
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<Message>,
) -> ocl::Result<(Sender<Message>, 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,