INFO: No output directory specified (--dir) INFO: Using directory: "Test_PreMonitor_nD_20241121_030823" INFO: Regenerating c-file: Test_PreMonitor_nD.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_PreMonitor_nD.c Test_PreMonitor_nD.instr CFLAGS= --> Added COMPONENT Monok USERVAR ncol_6 with type int --> Added COMPONENT Monok USERVAR nrow_6 with type int ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component Monok ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Monok ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas 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 4499: 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 10644: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 10644: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_PreMonitor_nD.c", line 10671: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 10671: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_PreMonitor_nD.c", line 10999: 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 10999: 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 10999: 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 10999: 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 10999: 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 10999: 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 11356: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_PreMonitor_nD.c", line 12612: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_PreMonitor_nD.c", line 12600: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_PreMonitor_nD.c", line 12653: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_PreMonitor_nD.c", line 12743: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_PreMonitor_nD.c", line 12792: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_PreMonitor_nD.c", line 12894: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_PreMonitor_nD.c", line 12948: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_PreMonitor_nD.c", line 13025: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_PreMonitor_nD.c", line 13074: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_PreMonitor_nD.c", line 13176: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_PreMonitor_nD.c", line 13234: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_PreMonitor_nD.c", line 17066: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_PreMonitor_nD.c", line 17067: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_PreMonitor_nD.c", line 1508: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_PreMonitor_nD.c", line 2911: 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: 200, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 209, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 221, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1555, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1559, Generating acc routine seq Generating NVIDIA GPU code str_len: 1568, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4120, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4551, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4571, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4662, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4708, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4743, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4771, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4798, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4827, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4838, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4842, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5019, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5050, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5067, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5166, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5250, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5316, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5393, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5665, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5675, Generating acc routine seq Generating NVIDIA GPU code _hash: 5701, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5742, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5758, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5766, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5774, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5781, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6440, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6476, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6536, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6553, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6668, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6723, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7752, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7820, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7899, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8367, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8383, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8401, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8448, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9640, Generating acc routine seq Generating NVIDIA GPU code off_F: 10956, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10961, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10971, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10997, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11060, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11191, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11236, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11353, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11471, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11483, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11518, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11769, Generating acc routine seq Generating NVIDIA GPU code merge: 11776, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11880, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11895, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11949, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12066, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12088, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 12217, Generating acc routine seq Generating NVIDIA GPU code init: 14280, 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: 14323, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 14413, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 14622, Generating acc routine seq Generating NVIDIA GPU code class_PreMonitor_nD_trace: 14912, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14954, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15299, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15349, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15599, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15613, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15599, Local memory used for .inl_particle_15026,particleN,.inl_.inl_mcneutron_0_15041,.inl_.X2121_15043,.inl_.inl_.X2323_15_15042 15613, Generating implicit firstprivate(seed,_particle) finally: 16338, 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: 16847, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5900, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===