Skip to content

Commit

Permalink
[BugFix] shared.dyn support for codegen_nvptx
Browse files Browse the repository at this point in the history
Signed-off-by: ZQPei <[email protected]>
  • Loading branch information
ZQPei committed Nov 25, 2021
1 parent 4d6d4c7 commit a8d14b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/codegen_nvptx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class CodeGenNVPTX : public CodeGenLLVM {
if (sync == "warp") {
// TODO(tqchen) warp sync in CUDA9
return nullptr;
} else if (sync == "shared") {
} else if (sync == "shared" || sync == "shared.dyn") {
llvm::Function* f =
llvm::Intrinsic::getDeclaration(module_.get(), ::llvm::Intrinsic::nvvm_barrier0);
return builder_->CreateCall(f, {});
Expand Down

0 comments on commit a8d14b1

Please sign in to comment.