INFO: No output directory specified (--dir) INFO: Using directory: "Test_Pol_Mirror_20241121_031956" INFO: Regenerating c-file: Test_Pol_Mirror.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Pol_Mirror.c Test_Pol_Mirror.instr CFLAGS= WARNING: The parameter rUpPar of mirror 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. WARNING: The parameter rDownPar of mirror 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: ./Test_Pol_Mirror.out DEBUG: CMD: nvc -o ./Test_Pol_Mirror.out ./Test_Pol_Mirror.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Pol_Mirror.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 " "/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. ^ "./Test_Pol_Mirror.c", line 9246: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Pol_Mirror.c", line 9338: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Pol_Mirror.c", line 10426: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Pol_Mirror.c", line 10414: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Pol_Mirror.c", line 10467: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Pol_Mirror.c", line 10531: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Pol_Mirror.c", line 10586: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Pol_Mirror.c", line 10652: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Pol_Mirror.c", line 10724: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Pol_Mirror.c", line 10773: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Pol_Mirror.c", line 10822: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Pol_Mirror.c", line 10887: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Pol_Mirror.c", line 10952: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Pol_Mirror.c", line 11018: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Pol_Mirror.c", line 11525: warning: incompatible redefinition of macro "strcmp" (declared at line 9294) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Pol_Mirror.c", line 13541: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Pol_Mirror.c", line 13542: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Pol_Mirror.c", line 1502: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Pol_Mirror.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: 7889, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7957, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8036, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8504, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8520, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8538, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 8791, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 8808, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 8842, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 8918, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 8956, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 9026, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 9230, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 9291, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 9350, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 9404, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 9443, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 9484, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 9517, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 9542, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 9552, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 9566, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 9582, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 9609, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 9638, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 9662, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 9689, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 9709, Generating acc routine seq Generating NVIDIA GPU code 9742, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 9804, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9910, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9969, Generating acc routine seq Generating NVIDIA GPU code init: 11494, Generating update device(_source_var,_setPol_var,_pollambdaMonitorTransmitY_var,_lamReflec_var,_lamTrans_var,_armReflec_var,_Origin_var,_mirror_var,_pollambdaMonitorReflecY_var,_instrument_var,_lamStart_var,_armTransmit_var) class_Progress_bar_trace: 11537, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 11627, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 11730, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11791, Generating acc routine seq Generating NVIDIA GPU code class_Pol_mirror_trace: 11864, Generating acc routine seq Generating NVIDIA GPU code class_MeanPolLambda_monitor_trace: 11998, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12098, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12362, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12376, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12362, Local memory used for .inl_particle_13602,particleN,.inl_.inl_mcneutron_0_13617,.inl_.X1930_13619,.inl_.inl_.X2130_15_13618 12376, Generating implicit firstprivate(seed,_particle) finally: 12993, Generating update self(_source_var,_setPol_var,_pollambdaMonitorTransmitY_var,_lamReflec_var,_lamTrans_var,_armReflec_var,_Origin_var,_mirror_var,_pollambdaMonitorReflecY_var,_instrument_var,_lamStart_var,_armTransmit_var) mcenabletrace: 5894, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===