From 2dd4eefe3641ea4771a24240648ac63056753cf3 Mon Sep 17 00:00:00 2001 From: xiaying Date: Wed, 1 Jan 2025 10:22:13 +0800 Subject: [PATCH] OpenCL:Bugfix: Fix bug for windows compile bug --- source/backend/opencl/execution/buffer/ConvBufExecution.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/backend/opencl/execution/buffer/ConvBufExecution.cpp b/source/backend/opencl/execution/buffer/ConvBufExecution.cpp index 87cbdc5cf..7f67f9ddf 100644 --- a/source/backend/opencl/execution/buffer/ConvBufExecution.cpp +++ b/source/backend/opencl/execution/buffer/ConvBufExecution.cpp @@ -557,9 +557,9 @@ ErrorCode ConvBufExecution::onResize(const std::vector &inputs, const mKernel.resize(conv_block_num); - std::shared_ptr kernel[actual_kernel]; - std::vector globalWorkSize[actual_kernel]; - std::vector localWorkSize[actual_kernel]; + std::vector> kernel(actual_kernel); + std::vector> globalWorkSize(actual_kernel); + std::vector> localWorkSize(actual_kernel); std::pair min_cost(INT_MAX, 0);//(min_time, min_index) for(int knl_idx = 0; knl_idx < actual_kernel; knl_idx++) { std::set buildOption = mResource->mBuildOptions;