INFO: No output directory specified (--dir) INFO: Using directory: "Test_PreMonitor_nD_20241222_103243" INFO: Regenerating c-file: Test_PreMonitor_nD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_PreMonitor_nD.c Test_PreMonitor_nD.instr 2024-12-22 10:33:04.941 | 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-22 10:33:04.941 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 10:33:04.941 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 10:33:04.941 | 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 -I$MCSTAS finished INFO: Recompiling: ./Test_PreMonitor_nD.out DEBUG: CMD: nvc -o ./Test_PreMonitor_nD.out ./Test_PreMonitor_nD.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_PreMonitor_nD.c", line 4498: 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 11190: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 11190: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 11217: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 11217: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 11341: 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 11341: 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 11341: 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 11341: 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 11341: 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 11341: 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 11698: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_PreMonitor_nD.c", line 12608: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_PreMonitor_nD.c", line 16736: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_PreMonitor_nD.c", line 16737: 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: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7427, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7441, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8525, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8593, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8672, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9140, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9156, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9174, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10171, Generating acc routine seq Generating NVIDIA GPU code off_F: 11298, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11303, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11313, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11339, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11402, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11533, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11578, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11695, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11813, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11825, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11860, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12111, Generating acc routine seq Generating NVIDIA GPU code merge: 12118, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12222, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12237, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12291, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12408, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12430, Generating acc routine seq Generating NVIDIA GPU code init: 14021, 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: 14062, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 14152, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 14362, Generating acc routine seq Generating NVIDIA GPU code class_PreMonitor_nD_trace: 14652, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14694, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15039, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15090, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15339, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15353, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15339, Local memory used for .inl_particle_14967,particleN,.inl_.inl_mcneutron_0_14982,.inl_.X2124_14984,.inl_.inl_.X2326_15_14983 15353, Generating implicit firstprivate(seed,_particle) finally: 16059, 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: 16520, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5899, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafat3CNxhLWO1drkQ.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===