Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2022
1 parent 7d0e2a9 commit e1c40ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cpp/ir/ir_builder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ TEST(IRBuilder, Ndarray) {
builder1.create_global_store(a2ptr, a0plusa2); // a[2] = a[0] + a[2]
}
auto block1 = builder1.extract_ir();
auto ker1 = std::make_unique<Kernel>(*test_prog.prog(), std::move(block1), "ker1");
auto ker1 =
std::make_unique<Kernel>(*test_prog.prog(), std::move(block1), "ker1");
ker1->insert_arg(get_data_type<int>(), /*is_array=*/true);
auto launch_ctx1 = ker1->make_launch_context();
launch_ctx1.set_arg_external_array(
Expand All @@ -170,7 +171,8 @@ TEST(IRBuilder, Ndarray) {
builder2.create_global_store(a1ptr, arg1); // a[1] = arg1
}
auto block2 = builder2.extract_ir();
auto ker2 = std::make_unique<Kernel>(*test_prog.prog(), std::move(block2), "ker2");
auto ker2 =
std::make_unique<Kernel>(*test_prog.prog(), std::move(block2), "ker2");
ker2->insert_arg(get_data_type<int>(), /*is_array=*/true);
ker2->insert_arg(get_data_type<int>(), /*is_array=*/false);
auto launch_ctx2 = ker2->make_launch_context();
Expand Down

0 comments on commit e1c40ce

Please sign in to comment.