INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monitor_nD_20241118_024349" INFO: Regenerating c-file: Test_Monitor_nD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Monitor_nD.c Test_Monitor_nD.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas 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 4493: 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 10625: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monitor_nD.c", line 10625: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monitor_nD.c", line 10652: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monitor_nD.c", line 10652: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monitor_nD.c", line 10980: 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 10980: 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 10980: 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 10980: 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 10980: 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 10980: 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 11337: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Monitor_nD.c", line 12760: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monitor_nD.c", line 12748: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Monitor_nD.c", line 12801: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Monitor_nD.c", line 12891: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Monitor_nD.c", line 12940: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Monitor_nD.c", line 13005: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Monitor_nD.c", line 13107: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Monitor_nD.c", line 13184: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Monitor_nD.c", line 13250: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Monitor_nD.c", line 13352: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Monitor_nD.c", line 13421: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Monitor_nD.c", line 13487: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Monitor_nD.c", line 13589: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Monitor_nD.c", line 13656: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_Monitor_nD.c", line 13758: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_Monitor_nD.c", line 13828: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_Monitor_nD.c", line 14616: 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 14621: 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 14729: 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 16204: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./Test_Monitor_nD.c", line 18871: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monitor_nD.c", line 18872: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monitor_nD.c", line 1502: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monitor_nD.c", line 2905: 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: 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: 1549, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1553, Generating acc routine seq Generating NVIDIA GPU code str_len: 1562, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4114, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4545, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4556, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4565, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4577, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4609, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4649, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4656, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4702, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4737, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4792, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4821, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4832, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4836, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5013, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5044, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5061, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5160, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5244, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5310, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5387, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5659, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5669, Generating acc routine seq Generating NVIDIA GPU code _hash: 5695, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5736, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5747, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5752, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5760, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5768, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5775, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6547, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6662, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6717, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7733, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7801, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7880, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8348, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8364, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8382, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8429, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9621, Generating acc routine seq Generating NVIDIA GPU code off_F: 10937, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10942, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10952, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10978, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11041, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11172, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11217, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11334, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11452, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11464, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11499, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11750, Generating acc routine seq Generating NVIDIA GPU code merge: 11757, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11861, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11876, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11930, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12047, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12069, Generating acc routine seq Generating NVIDIA GPU code init: 15055, 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: 15098, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15188, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15404, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15475, Generating acc routine seq Generating NVIDIA GPU code class_Flex_monitor_2D_trace: 15765, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 15863, Generating acc routine seq Generating NVIDIA GPU code class_Flex_monitor_1D_trace: 15936, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 16011, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 16098, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 16179, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16274, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16628, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16642, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16628, Local memory used for .inl_particle_17189,particleN,.inl_.inl_mcneutron_0_17204,.inl_.X2237_17206,.inl_.inl_.X2439_15_17205 16642, Generating implicit firstprivate(seed,_particle) finally: 18037, 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: 5894, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===