Skip to content

Commit 12dae84

Browse files
committed
Also SPMD flag
1 parent 468e935 commit 12dae84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/DeviceRTL/src/Kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ extern "C" {
8282
int32_t __kmpc_target_init(KernelEnvironmentTy &KernelEnvironment,
8383
KernelLaunchEnvironmentTy &KernelLaunchEnvironment) {
8484
ConfigurationEnvironmentTy &Configuration = KernelEnvironment.Configuration;
85-
bool IsSPMD = Configuration.ExecMode & OMP_TGT_EXEC_MODE_SPMD;
85+
bool IsSPMD = Configuration.ExecMode == OMP_TGT_EXEC_MODE_SPMD;
8686
bool UseGenericStateMachine = Configuration.UseGenericStateMachine;
8787
if (IsSPMD) {
8888
inititializeRuntime(/*IsSPMD=*/true, KernelEnvironment,

0 commit comments

Comments
 (0)