INFO: No output directory specified (--dir) INFO: Using directory: "templateTOF_20241118_023759" INFO: Regenerating c-file: templateTOF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./templateTOF.c templateTOF.instr CFLAGS= WARNING: --> USERVAR flag_single is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: --> USERVAR flag_multi is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: --> USERVAR flag_env is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: --> USERVAR flag_container is of type char and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: The parameter powder_format of Environment_in is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- 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: ./templateTOF.out DEBUG: CMD: nvc -o ./templateTOF.out ./templateTOF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateTOF.c", line 4507: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 8764: 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; ^ "./templateTOF.c", line 9121: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./templateTOF.c", line 10594: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./templateTOF.c", line 10573: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./templateTOF.c", line 10574: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./templateTOF.c", line 10485: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 10485: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 13851: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 13851: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 13878: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 13878: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 14264: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTOF.c", line 14252: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateTOF.c", line 14305: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateTOF.c", line 14395: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateTOF.c", line 14444: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateTOF.c", line 14538: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateTOF.c", line 14632: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateTOF.c", line 14729: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateTOF.c", line 14823: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateTOF.c", line 14917: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateTOF.c", line 14966: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateTOF.c", line 15068: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateTOF.c", line 15170: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateTOF.c", line 15272: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateTOF.c", line 15374: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateTOF.c", line 16875: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./templateTOF.c", line 16876: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 16876: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 19677: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateTOF.c", line 19678: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateTOF.c", line 1516: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateTOF.c", line 2919: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 93, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 143, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 171, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 197, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 208, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 217, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 231, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1563, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1567, Generating acc routine seq Generating NVIDIA GPU code str_len: 1576, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4128, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4559, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4579, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4591, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4641, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4663, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4670, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4716, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4751, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4779, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4790, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4806, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4835, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4846, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4850, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5027, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5058, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5075, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5174, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5258, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5324, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5401, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5673, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5683, Generating acc routine seq Generating NVIDIA GPU code _hash: 5709, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5750, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5761, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5766, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5774, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5782, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5789, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6448, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6484, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6544, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6561, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6676, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6731, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7761, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7829, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7908, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8376, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8392, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8410, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8457, Generating acc routine seq Generating NVIDIA GPU code off_F: 8721, Generating acc routine seq Generating NVIDIA GPU code off_sign: 8726, Generating acc routine seq Generating NVIDIA GPU code off_normal: 8736, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 8762, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 8825, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 8956, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9001, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9118, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9236, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9248, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9283, Generating acc routine seq Generating NVIDIA GPU code Min_int: 9534, Generating acc routine seq Generating NVIDIA GPU code merge: 9541, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 9645, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 9660, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 9714, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 9831, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 9853, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 10375, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 10412, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 10448, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 12847, Generating acc routine seq Generating NVIDIA GPU code init: 16370, Generating update device(_dt0) 16449, Generating update device(_Sample_in_var,_a1_var,_M_total_var,_Container_out_var,_SampleOut_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) class_Progress_bar_trace: 16492, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16595, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 16804, Generating acc routine seq Generating NVIDIA GPU code 17123, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_Monitor_nD_trace: 17458, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17756, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18081, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18095, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18081, Local memory used for .inl_particle_20340,particleN,.inl_.inl_mcneutron_0_20355,.inl_.X2176_20357,.inl_.inl_.X2378_15_20356 18095, Generating implicit firstprivate(seed,_particle) finally: 18931, Generating update self(_Sample_in_var,_a1_var,_M_total_var,_Container_out_var,_SampleOut_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) mcenabletrace: 5908, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===