INFO: No output directory specified (--dir) INFO: Using directory: "SNS_ARCS_20241206_125227" INFO: Regenerating c-file: SNS_ARCS.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./SNS_ARCS.c SNS_ARCS.instr 2024-12-06 12:52:30.139 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detB 2024-12-06 12:52:30.143 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detA 2024-12-06 12:52:30.144 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detC 2024-12-06 12:52:30.202 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide_channeled(0):ref-lib :ref-lib(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-06 12:52:30.202 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-12-06 12:52:30.202 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib The instrument has 14 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component mod -> GPU kernel from component sourceMantid -> GPU kernel from component core_ves -> GPU kernel from component shutter_guide -> GPU kernel from component Guide_1_1_1 -> GPU kernel from component Guide_1_1_2 -> GPU kernel from component Guide_1_1_3 -> GPU kernel from component Guide_1_2_1 -> GPU kernel from component Guide_1_2_2 -> GPU kernel from component Guide_1_2_3 -> GPU kernel from component Guide_1_3_1 -> GPU kernel from component Guide_1_3_2 -> GPU kernel from component Guide_1_3_3 -> GPU kernel from component t0_chopp -> GPU kernel from component Guide_2_1_1 -> GPU kernel from component Guide_2_1_2 -> GPU kernel from component Guide_2_3_3 -> GPU kernel from component Guide_1_3_4 -> GPU kernel from component Guide_2_1_5 -> GPU kernel from component fermi_chopp -> GPU kernel from component Guide_3_1_1 -> GPU kernel from component Guide_4_1_1 -> GPU kernel from component Guide_4_1_2 -> GPU kernel from component Slits2 -> GPU kernel from component Sample_Arm -> GPU kernel from component sampleMantid -> GPU kernel from component t_mon_detB -> GPU kernel from component t_mon_detA -> GPU kernel from component t_mon_detC ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./SNS_ARCS.out DEBUG: CMD: nvc -o ./SNS_ARCS.out ./SNS_ARCS.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./SNS_ARCS.c", line 4489: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./SNS_ARCS.c", line 7443: warning: variable "numtvals" was declared but never referenced [declared_but_not_referenced] int numtvals; ^ "./SNS_ARCS.c", line 7448: warning: variable "ret" was set but never used [set_but_not_used] char *ret; ^ "./SNS_ARCS.c", line 7901: warning: variable "xtmp" was declared but never referenced [declared_but_not_referenced] double xtmp,neuzr,neuxr; ^ "./SNS_ARCS.c", line 11803: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./SNS_ARCS.c", line 11803: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./SNS_ARCS.c", line 11830: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./SNS_ARCS.c", line 11830: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./SNS_ARCS.c", line 11954: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 11954: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 11954: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 11954: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 11954: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 11954: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SNS_ARCS.c", line 12311: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SNS_ARCS.c", line 13500: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SNS_ARCS.c", line 15046: warning: variable "fp" was declared but never referenced [declared_but_not_referenced] FILE *fp; ^ "./SNS_ARCS.c", line 15047: warning: variable "junk" was declared but never referenced [declared_but_not_referenced] double llim, hlim,ltlim,htlim,junk; ^ "./SNS_ARCS.c", line 15858: warning: variable "tauv" was declared but never referenced [declared_but_not_referenced] double theta,phi,v,tauv,E,Eval,tval,randp; ^ "./SNS_ARCS.c", line 15859: warning: variable "hdiv" was set but never used [set_but_not_used] double hdiv; ^ "./SNS_ARCS.c", line 15860: warning: variable "vdiv" was set but never used [set_but_not_used] double vdiv; ^ "./SNS_ARCS.c", line 16234: warning: variable "yr" was set but never used [set_but_not_used] double phivec[200],tpt[3],xpt[3],ypt[3],zpt[3],zr[3],xr[3],yr[3],theta[3],c[2]; ^ "./SNS_ARCS.c", line 16235: warning: variable "chan_num" was declared but never referenced [declared_but_not_referenced] int chan_num,chan_num0,idx1,idx3; ^ "./SNS_ARCS.c", line 16235: warning: variable "chan_num0" was declared but never referenced [declared_but_not_referenced] int chan_num,chan_num0,idx1,idx3; ^ "./SNS_ARCS.c", line 16366: warning: variable "yr" was set but never used [set_but_not_used] double phivec[200],tpt[3],xpt[3],ypt[3],zpt[3],zr[3],xr[3],yr[3],theta[3],c[2]; ^ "./SNS_ARCS.c", line 16555: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double t1, t2; /* Entry/exit time for inner cylinder */ ^ "./SNS_ARCS.c", line 16555: warning: variable "t2" was declared but never referenced [declared_but_not_referenced] double t1, t2; /* Entry/exit time for inner cylinder */ ^ "./SNS_ARCS.c", line 16557: warning: variable "dt1" was declared but never referenced [declared_but_not_referenced] double dt0, dt1, dt2, dt; /* Flight times through sample */ ^ "./SNS_ARCS.c", line 16557: warning: variable "dt2" was declared but never referenced [declared_but_not_referenced] double dt0, dt1, dt2, dt; /* Flight times through sample */ ^ "./SNS_ARCS.c", line 16558: warning: variable "l_full" was set but never used [set_but_not_used] double l_full; /* Flight path length for non-scattered neutron */ ^ "./SNS_ARCS.c", line 16559: warning: variable "l_i" was set but never used [set_but_not_used] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./SNS_ARCS.c", line 16559: warning: variable "l_o" was declared but never referenced [declared_but_not_referenced] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./SNS_ARCS.c", line 16560: warning: variable "my_a" was set but never used [set_but_not_used] double my_a; /* Velocity-dependent attenuation factor */ ^ "./SNS_ARCS.c", line 16561: warning: variable "solid_angle" was declared but never referenced [declared_but_not_referenced] double solid_angle=0; /* Solid angle of target as seen from scattering point */ ^ "./SNS_ARCS.c", line 16562: warning: variable "aim_x" was declared but never referenced [declared_but_not_referenced] double aim_x, aim_y, aim_z; /* Position of target relative to scattering point */ ^ "./SNS_ARCS.c", line 16562: warning: variable "aim_y" was declared but never referenced [declared_but_not_referenced] double aim_x, aim_y, aim_z; /* Position of target relative to scattering point */ ^ "./SNS_ARCS.c", line 16562: warning: variable "aim_z" was declared but never referenced [declared_but_not_referenced] double aim_x, aim_y, aim_z; /* Position of target relative to scattering point */ ^ "./SNS_ARCS.c", line 16564: warning: variable "kf" was declared but never referenced [declared_but_not_referenced] double kf,kfx,kfy,kfz,kiideal,kfideal,Efideal; ^ "./SNS_ARCS.c", line 16565: warning: variable "Ef" was declared but never referenced [declared_but_not_referenced] double Ef,Ei,pol,rbool; ^ "./SNS_ARCS.c", line 16565: warning: variable "Ei" was set but never used [set_but_not_used] double Ef,Ei,pol,rbool; ^ "./SNS_ARCS.c", line 16565: warning: variable "rbool" was declared but never referenced [declared_but_not_referenced] double Ef,Ei,pol,rbool; ^ "./SNS_ARCS.c", line 18653: warning: variable "zstep" was set but never used [set_but_not_used] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "x1" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "x2" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "x3" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "x4" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "z1" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18653: warning: variable "z2" was declared but never referenced [declared_but_not_referenced] double zstep,x1,x2,x3,x4,z1,z2; ^ "./SNS_ARCS.c", line 18654: warning: variable "idx" was declared but never referenced [declared_but_not_referenced] int idx, idx2; ^ "./SNS_ARCS.c", line 18654: warning: variable "idx2" was declared but never referenced [declared_but_not_referenced] int idx, idx2; ^ "./SNS_ARCS.c", line 19245: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SNS_ARCS.c", line 19246: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./SNS_ARCS.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./SNS_ARCS.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4110, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4541, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4552, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4652, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4698, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4733, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4744, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4788, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4817, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4828, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4832, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5009, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5040, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5057, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5156, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5240, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5306, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5383, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5655, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5665, Generating acc routine seq Generating NVIDIA GPU code _hash: 5691, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5732, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5748, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5756, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5764, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5771, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6428, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6524, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6541, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6656, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6711, Generating acc routine seq Generating NVIDIA GPU code linint: 7546, Generating acc routine seq Generating NVIDIA GPU code linfuncint: 7554, Generating acc routine seq Generating NVIDIA GPU code quadint: 7580, Generating acc routine seq Generating NVIDIA GPU code quadfuncint: 7590, Generating acc routine seq Generating NVIDIA GPU code xonly: 7615, Generating acc routine seq Generating NVIDIA GPU code Pfunc: 7620, Generating acc routine seq Generating NVIDIA GPU code txonly: 7629, Generating acc routine seq Generating NVIDIA GPU code tPfunc: 7634, Generating acc routine seq Generating NVIDIA GPU code zero_find_gpu1: 7721, Generating acc routine seq Generating NVIDIA GPU code zero_find_gpu2: 7749, Generating acc routine seq Generating NVIDIA GPU code acos0_2pi: 7870, Generating acc routine seq Generating NVIDIA GPU code neutxypos: 7880, Generating acc routine seq Generating NVIDIA GPU code calccenter: 7887, Generating acc routine seq Generating NVIDIA GPU code t0checkabsorb: 7900, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code blades: 7947, Generating acc routine seq Generating NVIDIA GPU code checkabsorb: 7959, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9153, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9221, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9300, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9768, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9784, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9802, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10799, Generating acc routine seq Generating NVIDIA GPU code off_F: 11911, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11916, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11926, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11952, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12015, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12146, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12191, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12308, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12426, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12438, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12473, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12724, Generating acc routine seq Generating NVIDIA GPU code merge: 12731, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12835, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12850, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12904, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13021, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13043, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 13222, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 13281, Generating acc routine seq Generating NVIDIA GPU code init: 15785, Generating update device(_instrument_var,_shutter_guide_var,_Slits2_var,_sampleMantid_var,_Guide_1_1_1_var,_Guide_1_1_2_var,_Guide_1_1_3_var,_Guide_1_2_1_var,_Guide_1_2_2_var,_Guide_1_2_3_var,_Guide_1_3_1_var,_Guide_1_3_2_var,_sourceMantid_var,_Guide_1_3_4_var,_Guide_2_1_1_var,_Guide_2_1_5_var,_Guide_1_3_3_var,_Guide_2_1_2_var,_core_ves_var,_Guide_2_3_3_var,_Guide_3_1_1_var,_Guide_4_1_1_var,_Sample_Arm_var,_Guide_4_1_2_var,_mod_var,_t_mon_detA_var,_t0_chopp_var,_t_mon_detC_var,_t_mon_detB_var,_fermi_chopp_var) class_SNS_source_trace: 15826, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 15974, Generating acc routine seq Generating NVIDIA GPU code class_Vertical_T0a_trace: 16215, Generating acc routine seq Generating NVIDIA GPU code class_Fermi_chop2a_trace: 16344, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 16495, Generating acc routine seq Generating NVIDIA GPU code class_Spot_sample_trace: 16539, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16649, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16945, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17577, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17591, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17577, Local memory used for .inl_particle_23171,particleN,.inl_.inl_mcneutron_0_23186,.inl_.X2144_23188,.inl_.inl_.X2349_15_23187 17591, Generating implicit firstprivate(seed,_particle) finally: 18398, Generating update self(_instrument_var,_shutter_guide_var,_Slits2_var,_sampleMantid_var,_Guide_1_1_1_var,_Guide_1_1_2_var,_Guide_1_1_3_var,_Guide_1_2_1_var,_Guide_1_2_2_var,_Guide_1_2_3_var,_Guide_1_3_1_var,_Guide_1_3_2_var,_sourceMantid_var,_Guide_1_3_4_var,_Guide_2_1_1_var,_Guide_2_1_5_var,_Guide_1_3_3_var,_Guide_2_1_2_var,_core_ves_var,_Guide_2_3_3_var,_Guide_3_1_1_var,_Guide_4_1_1_var,_Sample_Arm_var,_Guide_4_1_2_var,_mod_var,_t_mon_detA_var,_t0_chopp_var,_t_mon_detC_var,_t_mon_detB_var,_fermi_chopp_var) mcenabletrace: 5890, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===