Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Jan 16, 2023
1 parent 2620a53 commit 09261e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions taichi/runtime/llvm/llvm_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ std::unique_ptr<llvm::Module> TaichiLLVMContext::module_from_file(
patch_intrinsic("block_idx", llvm::Intrinsic::amdgcn_workgroup_id_x);

link_module_with_amdgpu_libdevice(module);
patch_dim("block_dim", llvm::ConstantInt::get(llvm::Type::getInt32Ty(*ctx), 0));
patch_dim("grid_dim", llvm::ConstantInt::get(llvm::Type::getInt32Ty(*ctx), 0));
patch_amdgpu_kernel_dim("block_dim", llvm::ConstantInt::get(llvm::Type::getInt32Ty(*ctx), 0));
patch_amdgpu_kernel_dim("grid_dim", llvm::ConstantInt::get(llvm::Type::getInt32Ty(*ctx), 0));
#endif
}
}
Expand Down Expand Up @@ -567,7 +567,7 @@ void TaichiLLVMContext::link_module_with_cuda_libdevice(
}
}

void TaichiLLVMContext:::link_module_with_amdgpu_libdevice(
void TaichiLLVMContext::link_module_with_amdgpu_libdevice(
std::unique_ptr<llvm::Module> &module) {
TI_ASSERT(arch_ == Arch::amdgpu);
auto isa_version = AMDGPUContext::get_instance().get_mcpu().substr(3,4);
Expand Down

0 comments on commit 09261e9

Please sign in to comment.