INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monitor_nD_20241206_133621" INFO: Regenerating c-file: Test_Monitor_nD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Monitor_nD.c Test_Monitor_nD.instr Downloading file 'mcstas-comps/monitors/Flex_monitor_2D.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/Flex_monitor_2D.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/Flex_monitor_1D.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/Flex_monitor_1D.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 13:36:25.985 | 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 2024-12-06 13:36:25.986 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 13:36:25.986 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib The instrument has 7 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component mon_cradle -> GPU kernel from component PSD_mon -> GPU kernel from component nD_PSD -> GPU kernel from component nFlex_PSD -> GPU kernel from component L_mon -> GPU kernel from component nD_L -> GPU kernel from component nFlex_L -> GPU kernel from component E_mon -> GPU kernel from component nD_E -> GPU kernel from component Tof_mon -> GPU kernel from component nD_ToF -> GPU kernel from component Div_mon -> GPU kernel from component nD_Div ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_Monitor_nD.out DEBUG: CMD: nvc -o ./Test_Monitor_nD.out ./Test_Monitor_nD.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Monitor_nD.c", line 4491: 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_Monitor_nD.c", line 11311: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monitor_nD.c", line 11311: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monitor_nD.c", line 11338: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monitor_nD.c", line 11338: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11462: 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_Monitor_nD.c", line 11819: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Monitor_nD.c", line 12737: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monitor_nD.c", line 14210: warning: argument is incompatible with corresponding format string conversion (expected type "int" but argument has type "double") [printf_arg_mismatch] snprintf(username1,127,"uservar%d",uid1); ^ "./Test_Monitor_nD.c", line 14215: warning: argument is incompatible with corresponding format string conversion (expected type "int" but argument has type "double") [printf_arg_mismatch] snprintf(username2,127,"uservar%d",uid2); ^ "./Test_Monitor_nD.c", line 14323: warning: argument is incompatible with corresponding format string conversion (expected type "int" but argument has type "double") [printf_arg_mismatch] snprintf(username,127,"uservar%d",uid); ^ "./Test_Monitor_nD.c", line 15779: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./Test_Monitor_nD.c", line 18365: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monitor_nD.c", line 18366: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monitor_nD.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monitor_nD.c", line 2903: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7408, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8661, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8729, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8808, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9276, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9292, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9310, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10307, Generating acc routine seq Generating NVIDIA GPU code off_F: 11419, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11424, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11434, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11460, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11523, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11654, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11699, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11816, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11934, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11946, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11981, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12232, Generating acc routine seq Generating NVIDIA GPU code merge: 12239, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12343, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12358, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12412, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12529, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12551, Generating acc routine seq Generating NVIDIA GPU code init: 14631, Generating update device(_L_mon_var,_PSD_mon_var,_instrument_var,_Origin_var,_nD_L_var,_nFlex_PSD_var,_nFlex_L_var,_E_mon_var,_nD_E_var,_nD_ToF_var,_Div_mon_var,_nD_Div_var,_Source_var,_nD_PSD_var,_mon_cradle_var,_Tof_mon_var) class_Progress_bar_trace: 14672, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 14762, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14979, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15050, Generating acc routine seq Generating NVIDIA GPU code class_Flex_monitor_2D_trace: 15340, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 15438, Generating acc routine seq Generating NVIDIA GPU code class_Flex_monitor_1D_trace: 15511, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 15586, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 15673, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 15754, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15850, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16204, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16218, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16204, Local memory used for .inl_particle_17098,particleN,.inl_.inl_mcneutron_0_17113,.inl_.X2240_17115,.inl_.inl_.X2442_15_17114 16218, Generating implicit firstprivate(seed,_particle) finally: 17590, Generating update self(_L_mon_var,_PSD_mon_var,_instrument_var,_Origin_var,_nD_L_var,_nFlex_PSD_var,_nFlex_L_var,_E_mon_var,_nD_E_var,_nD_ToF_var,_Div_mon_var,_nD_Div_var,_Source_var,_nD_PSD_var,_mon_cradle_var,_Tof_mon_var) mcenabletrace: 5892, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===