aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/cl/kernels/ClIm2ColKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/cl/kernels/ClIm2ColKernel.cpp')
-rw-r--r--src/gpu/cl/kernels/ClIm2ColKernel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/cl/kernels/ClIm2ColKernel.cpp b/src/gpu/cl/kernels/ClIm2ColKernel.cpp
index c42762b99..6d1271d24 100644
--- a/src/gpu/cl/kernels/ClIm2ColKernel.cpp
+++ b/src/gpu/cl/kernels/ClIm2ColKernel.cpp
@@ -195,10 +195,16 @@ Im2ColConfiguration configure_opencl_kernel(const ITensorInfo *src, const Size2D
if(kernel_dims == Size2D(3U, 3U))
{
kernel_name = "im2col3x3_";
+ build_opts.add_option("-DIM2COL_3X3");
}
else if(kernel_dims == Size2D(9U, 9U))
{
kernel_name = "im2col9x9_";
+ build_opts.add_option("-DIM2COL_9X9");
+ }
+ else
+ {
+ build_opts.add_option("-DIM2COL_GENERIC");
}
// Get boundary vector (the first/last vector with potentially a partial vector size) size