INFO: No output directory specified (--dir) INFO: Using directory: "Test_PreMonitor_nD_20241206_143439" INFO: Regenerating c-file: Test_PreMonitor_nD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_PreMonitor_nD.c Test_PreMonitor_nD.instr Downloading file 'mcstas-comps/monitors/PreMonitor_nD.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/PreMonitor_nD.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 14:34:42.155 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Monochromator_curved(0):read_table-lib 2024-12-06 14:34:42.155 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 14:34:42.155 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 14:34:42.156 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib The instrument has 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Monok ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component mono_cradle -> GPU kernel from component Mon_Source -> GPU kernel from component Mon_PreMono -> SPLIT within buffer at component Monok -> GPU kernel from component mono_out -> GPU kernel from component Mon_SampleXY -> GPU kernel from component S1 -> GPU kernel from component Mon_Sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_PreMonitor_nD.out DEBUG: CMD: nvc -o ./Test_PreMonitor_nD.out ./Test_PreMonitor_nD.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_PreMonitor_nD.c", line 4497: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_PreMonitor_nD.c", line 11174: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 11174: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 11201: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 11201: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11325: 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; ^ "./Test_PreMonitor_nD.c", line 11682: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_PreMonitor_nD.c", line 12592: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_PreMonitor_nD.c", line 16720: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_PreMonitor_nD.c", line 16721: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_PreMonitor_nD.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_PreMonitor_nD.c", line 2909: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4118, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4569, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4621, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4660, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4706, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4752, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4780, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4796, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4825, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4836, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4840, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5017, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5048, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5065, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5164, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5248, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5314, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5391, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5663, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5673, Generating acc routine seq Generating NVIDIA GPU code _hash: 5699, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5740, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5751, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5756, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5772, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5779, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6532, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6549, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6719, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7426, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7440, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8524, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8592, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8671, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9139, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9155, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9173, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10170, Generating acc routine seq Generating NVIDIA GPU code off_F: 11282, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11287, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11297, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11323, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11386, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11517, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11562, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11679, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11797, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11809, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11844, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12095, Generating acc routine seq Generating NVIDIA GPU code merge: 12102, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12206, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12221, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12275, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12392, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12414, Generating acc routine seq Generating NVIDIA GPU code init: 14005, Generating update device(_Monok_var,_S1_var,_instrument_var,_Mon_Sample_var,_Mon_Source_var,_mono_out_var,_mono_cradle_var,_Mon_PreMono_var,_Origin_var,_Mon_SampleXY_var,_Source_var) class_Progress_bar_trace: 14046, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 14136, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 14346, Generating acc routine seq Generating NVIDIA GPU code class_PreMonitor_nD_trace: 14636, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14678, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15023, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15074, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15323, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15337, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15323, Local memory used for .inl_particle_14967,particleN,.inl_.inl_mcneutron_0_14982,.inl_.X2124_14984,.inl_.inl_.X2326_15_14983 15337, Generating implicit firstprivate(seed,_particle) finally: 16043, Generating update self(_Monok_var,_S1_var,_instrument_var,_Mon_Sample_var,_Mon_Source_var,_mono_cradle_var,_mono_out_var,_Mon_PreMono_var,_Origin_var,_Mon_SampleXY_var,_Source_var) _getvar_parameters: 16504, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5898, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===