summaryrefslogtreecommitdiff
path: root/src/solvers/gpu/host.rs
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2020-01-12 07:08:30 +0100
committerDennis Kobert <dennis@kobert.dev>2020-01-12 07:08:30 +0100
commit3a0d646ade02a6ca006a0d8cf6c0f60a1ece8272 (patch)
tree600d86dd1b7ecef9307ddc30e13c2658aa2453cb /src/solvers/gpu/host.rs
parentcf6c285d0960526843f849a9033ff1895fc8cab7 (diff)
Fix wrong workgroup size
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,