Skip to content

Commit d60b4d8

Browse files
committed
Should allow ILL_H15_SAM to execute on GPU/OpenACC
1 parent ddf6808 commit d60b4d8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mcstas-comps/examples/ILL/ILL_H15_SAM/ILL_H15_SAM.instr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ DECLARE %{
7878
double sT3=16.7 ,sI3=3.0423e+12;
7979
/* Some instrument params */
8080
int ssshape=1; /* Code for sample slit shape: default = rectangular (1), set to circular (2) if ssh <= 0 */
81+
#pragma acc declare create(ssshape)
8182
double rbs=2.75e-2; /* Beamstop radius */
8283
double lcoll; /* Effective collimation length */
8384
double sow; /* Source effective width */
@@ -109,6 +110,7 @@ INITIALIZE %{
109110
ssshape=2;
110111
maxvdiv=maxhdiv;
111112
}
113+
#pragma acc update device(ssshape)
112114

113115
tthmin=atan(rbs/lsd);
114116
tthmax=atan(sqrt(2)*0.32/lsd);

0 commit comments

Comments
 (0)