Skip to content

Commit

Permalink
Merge pull request #3146 from alibaba/feature/bugfix
Browse files Browse the repository at this point in the history
OpenCL:Bugfix: Fix bug for windows compile bug
  • Loading branch information
jxt1234 authored Jan 1, 2025
2 parents d6e10c2 + 2dd4eef commit 8180b48
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 8180b48

Please sign in to comment.