From edbccdfcaf46f11e631afe98796f3e6e170da5d0 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Sun, 26 Oct 2014 05:04:34 +0000
Subject: [PATCH] Maybe something changed?
---
src/im2col.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/im2col.c b/src/im2col.c
index 08f7ce4..b743e34 100644
--- a/src/im2col.c
+++ b/src/im2col.c
@@ -91,12 +91,10 @@
width_col = 1 + (width-1) / stride;
}
- size_t global_size[2];
- global_size[0] = batch*channels_col;
- global_size[1] = height_col*width_col;
+ size_t global_size = batch*channels_col*height_col*width_col;
- clEnqueueNDRangeKernel(queue, im2col_kernel, 2, 0,
- global_size, 0, 0, 0, 0);
+ clEnqueueNDRangeKernel(queue, im2col_kernel, 1, 0,
+ &global_size, 0, 0, 0, 0);
check_error(cl);
}
--
Gitblit v1.10.0