Skip to content

Commit

Permalink
Use directx12 AotModuleParams.
Browse files Browse the repository at this point in the history
  • Loading branch information
python3kgae committed Sep 29, 2022
1 parent ab40310 commit b219e8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/cpp/aot/llvm/kernel_aot_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,13 @@ TEST(LlvmAotTest, CudaKernel) {

#ifdef TI_WITH_DX12
TEST(LlvmAotTest, DX12Kernel) {
cpu::AotModuleParams aot_params;
directx12::AotModuleParams aot_params;
const auto folder_dir = getenv("TAICHI_AOT_FOLDER_PATH");

std::stringstream aot_mod_ss;
aot_mod_ss << folder_dir;
aot_params.module_path = aot_mod_ss.str();
// FIXME: add executor.
aot_params.executor_ = nullptr;
auto mod = directx12::make_aot_module(aot_params, Arch::dx12);
auto *k_run = mod->get_kernel("run");
EXPECT_TRUE(k_run);
Expand Down

0 comments on commit b219e8d

Please sign in to comment.