Skip to content

Commit

Permalink
OpenCL:Bugfix: Fix bug for windows compile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying committed Jan 1, 2025
1 parent d6e10c2 commit 2dd4eef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/backend/opencl/execution/buffer/ConvBufExecution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,9 @@ ErrorCode ConvBufExecution::onResize(const std::vector<Tensor *> &inputs, const

mKernel.resize(conv_block_num);

std::shared_ptr<KernelWrap> kernel[actual_kernel];
std::vector<uint32_t> globalWorkSize[actual_kernel];
std::vector<uint32_t> localWorkSize[actual_kernel];
std::vector<std::shared_ptr<KernelWrap>> kernel(actual_kernel);
std::vector<std::vector<uint32_t>> globalWorkSize(actual_kernel);
std::vector<std::vector<uint32_t>> localWorkSize(actual_kernel);
std::pair<int, int> min_cost(INT_MAX, 0);//(min_time, min_index)
for(int knl_idx = 0; knl_idx < actual_kernel; knl_idx++) {
std::set<std::string> buildOption = mResource->mBuildOptions;
Expand Down

0 comments on commit 2dd4eef

Please sign in to comment.