INFO: No output directory specified (--dir) INFO: Using directory: "Test_Pol_Mirror_20241222_105419" INFO: Regenerating c-file: Test_Pol_Mirror.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_Pol_Mirror.c Test_Pol_Mirror.instr 2024-12-22 10:54:38.368 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Pol_mirror(0):pol-lib :Pol_mirror(1):ref-lib :ref-lib(0):read_table-lib 2024-12-22 10:54:38.368 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib ref-lib 2024-12-22 10:54:45.040 | INFO | mccode_antlr.translators.c:include_source:331 - pol-lib.c requested interpolation-lib but is has not been included yet! No initialization present? ----------------------------------------------------------- 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 setPol -> GPU kernel from component lamStart -> GPU kernel from component mirror -> GPU kernel from component armTransmit -> GPU kernel from component armReflec -> GPU kernel from component pollambdaMonitorReflecY -> GPU kernel from component pollambdaMonitorTransmitY -> GPU kernel from component lamReflec -> GPU kernel from component lamTrans ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_Pol_Mirror.out DEBUG: CMD: nvc -o ./Test_Pol_Mirror.out ./Test_Pol_Mirror.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Pol_Mirror.c", line 4492: 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 9513: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Pol_Mirror.c", line 9605: 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 10407: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Pol_Mirror.c", line 11312: warning: incompatible redefinition of macro "strcmp" (declared at line 9561) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Pol_Mirror.c", line 13260: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Pol_Mirror.c", line 13261: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Pol_Mirror.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Pol_Mirror.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: 4113, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4544, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4555, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4576, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4588, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4598, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4655, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4701, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4747, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4775, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4791, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4820, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4831, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4835, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5012, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5043, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5060, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5159, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5243, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5309, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5386, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5658, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5668, Generating acc routine seq Generating NVIDIA GPU code _hash: 5694, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5735, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5746, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5751, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5759, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5767, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5774, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6431, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6527, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6544, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6659, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6714, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8155, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8223, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8302, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8770, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8786, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8804, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 9058, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 9075, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 9109, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 9185, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 9223, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 9293, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 9497, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 9558, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 9617, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 9704, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 9743, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 9784, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 9817, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 9842, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 9852, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 9866, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 9882, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 9909, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 9938, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 9962, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 9989, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 10009, Generating acc routine seq Generating NVIDIA GPU code 10042, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 10104, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10167, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10226, Generating acc routine seq Generating NVIDIA GPU code init: 11282, 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: 11323, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 11413, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 11516, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11577, Generating acc routine seq Generating NVIDIA GPU code class_Pol_mirror_trace: 11650, Generating acc routine seq Generating NVIDIA GPU code class_MeanPolLambda_monitor_trace: 11785, Generating acc routine seq Generating NVIDIA GPU code raytrace: 11888, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12152, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12166, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12152, Local memory used for .inl_particle_13589,particleN,.inl_.inl_mcneutron_0_13604,.inl_.X1934_13606,.inl_.inl_.X2134_15_13605 12166, Generating implicit firstprivate(seed,_particle) finally: 12763, 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: 5893, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatKtJDhSC8uOw1j.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===