Skip to content

Commit

Permalink
Update parsed kernel sources check. (apache#8257)
Browse files Browse the repository at this point in the history
  • Loading branch information
csullivan authored and trevor-m committed Jun 17, 2021
1 parent a316906 commit 5ee4091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/opencl/opencl_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ void OpenCLModuleNode::Init() {
ICHECK(!parsed_kernels_.empty()) << "The OpenCL module expects a kernel delimited "
<< "source from code generation, but no kernel "
<< "delimiter was found.";
ICHECK_EQ(workspace_->num_registered_kernels, parsed_kernels_.size())
<< "The number of registered kernels does not match number of parsed kernel sources";
ICHECK_EQ(fmap_.size(), parsed_kernels_.size())
<< "The number of parsed kernel sources does not match the number of kernel functions";
// zero initialize cl_program pointers for each device kernel
for (auto& kv : parsed_kernels_) {
programs_.insert({kv.first, std::vector<cl_program>(workspace_->devices.size(), nullptr)});
Expand Down

0 comments on commit 5ee4091

Please sign in to comment.