Skip to content

Commit

Permalink
add macro
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Jan 16, 2023
1 parent fe6d019 commit 68f871e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taichi/runtime/llvm/llvm_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ void TaichiLLVMContext::link_module_with_cuda_libdevice(
void TaichiLLVMContext::link_module_with_amdgpu_libdevice(
std::unique_ptr<llvm::Module> &module) {
TI_ASSERT(arch_ == Arch::amdgpu);
#if defined(TI_WITH_AMDGPU)
auto isa_version = AMDGPUContext::get_instance().get_mcpu().substr(3, 4);
std::string libdevice_files[] = {"ocml.bc",
"oclc_wavefrontsize64_off.bc",
Expand Down Expand Up @@ -621,6 +622,7 @@ void TaichiLLVMContext::link_module_with_amdgpu_libdevice(
func->setLinkage(llvm::Function::InternalLinkage);
}
}
#endif
}

void TaichiLLVMContext::add_struct_module(std::unique_ptr<Module> module,
Expand Down

0 comments on commit 68f871e

Please sign in to comment.