Skip to content

Commit

Permalink
[OMPIRBuilder] Fix setting exec mode (#104)
Browse files Browse the repository at this point in the history
There was mismatch between exec mode represented
by global variable and kernel environment struct
  • Loading branch information
DominikAdamski authored Jun 21, 2024
1 parent cec0810 commit 3cbaeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6360,7 +6360,7 @@ static Function *createOutlinedFunction(

if (OMPBuilder.Config.isTargetDevice()) {
std::vector<llvm::WeakTrackingVH> LLVMCompilerUsed;
emitExecutionMode(OMPBuilder, Builder, FuncName, false, LLVMCompilerUsed);
emitExecutionMode(OMPBuilder, Builder, FuncName, IsSPMD, LLVMCompilerUsed);
Type *Int8PtrTy = Type::getInt8Ty(Builder.getContext())->getPointerTo();
emitUsed("llvm.compiler.used", LLVMCompilerUsed, Int8PtrTy, OMPBuilder.M);
}
Expand Down

0 comments on commit 3cbaeac

Please sign in to comment.