Skip to content

Commit 70c88ad

Browse files
committed
Temporarily disable adaptive sampling on GPU
1 parent 3aaa7dd commit 70c88ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mcstas-comps/examples/Prototypes/ODIN_TOF_train4/ESS_butterfly.comp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ TRACE
551551
int train_index;
552552

553553
long tmp;
554-
554+
555+
// temporarily disable any attempt at adaptive sampling on GPU
556+
#ifndef OPENACC
555557
if (total_N_sent == 0) {
556558
tmp = N_trains;
557559
} else {
@@ -563,6 +565,7 @@ TRACE
563565

564566
#pragma acc atomic write
565567
adaptive_N = tmp;
568+
#endif
566569

567570
for (train_index=0; train_index<adaptive_N; train_index++) {
568571

0 commit comments

Comments
 (0)