INFO: No output directory specified (--dir) INFO: Using directory: "Test_Pol_Bender_Vs_Guide_Curved_20241206_143323" INFO: Regenerating c-file: Test_Pol_Bender_Vs_Guide_Curved.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Pol_Bender_Vs_Guide_Curved.c Test_Pol_Bender_Vs_Guide_Curved.instr 2024-12-06 14:33:25.829 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Pol_bender(0):pol-lib :Pol_bender(1):ref-lib :ref-lib(0):read_table-lib :Guide_curved(0):ref-lib 2024-12-06 14:33:25.829 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib ref-lib 2024-12-06 14:33:25.830 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib 2024-12-06 14:33:27.273 | 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 lamStart -> GPU kernel from component psdStart -> GPU kernel from component bender1 -> GPU kernel from component bender2 -> GPU kernel from component guide -> GPU kernel from component armlambdaStop1 -> GPU kernel from component armlambdaStop2 -> GPU kernel from component lamStopBender1 -> GPU kernel from component psdBender1 -> GPU kernel from component lamStopBender2 -> GPU kernel from component psdBender2 -> GPU kernel from component lamStopGuide -> GPU kernel from component psdGuide ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_Pol_Bender_Vs_Guide_Curved.out DEBUG: CMD: nvc -o ./Test_Pol_Bender_Vs_Guide_Curved.out ./Test_Pol_Bender_Vs_Guide_Curved.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Pol_Bender_Vs_Guide_Curved.c", line 4491: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress <warning-name>" "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when <math.h> was included. [warning_directive] # warning A macro called log was already defined when <math.h> 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_Bender_Vs_Guide_Curved.c", line 9556: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 9648: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 10467: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 11780: warning: incompatible redefinition of macro "strcmp" (declared at line 9604) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 12418: warning: statement is unreachable [code_is_unreachable] break; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 12241: warning: variable "tMirror" was declared but never referenced [declared_but_not_referenced] double tLeft, tRight, tTop, tBot, tIn, tOut, tMirror; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 12197: warning: variable "endtime" was declared but never referenced [declared_but_not_referenced] double t11, t12, t21, t22, theta, alpha, endtime, phi; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 12198: warning: variable "i_bounce" was declared but never referenced [declared_but_not_referenced] int i_bounce; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 12499: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 14283: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 14284: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Pol_Bender_Vs_Guide_Curved.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Pol_Bender_Vs_Guide_Curved.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: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8198, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8266, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8345, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8813, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8829, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8847, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 9101, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 9118, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 9152, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 9228, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 9266, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 9336, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 9540, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 9601, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 9660, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 9747, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 9786, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 9827, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 9860, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 9885, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 9895, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 9909, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 9925, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 9952, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 9981, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 10005, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 10032, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 10052, Generating acc routine seq Generating NVIDIA GPU code 10085, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 10147, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10210, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10269, Generating acc routine seq Generating NVIDIA GPU code init: 11750, Generating update device(_source_var,_psdStart_var,_instrument_var,_psdGuide_var,_armlambdaStop2_var,_bender1_var,_bender2_var,_Origin_var,_armlambdaStop1_var,_lamStart_var,_lamStopGuide_var,_lamStopBender1_var,_psdBender1_var,_lamStopBender2_var,_psdBender2_var,_guide_var) class_Progress_bar_trace: 11791, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 11890, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11993, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 12066, Generating acc routine seq Generating NVIDIA GPU code class_Pol_bender_trace: 12137, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 12484, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12593, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12940, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12954, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12940, Local memory used for .inl_particle_17226,particleN,.inl_.inl_mcneutron_0_17241,.inl_.X1965_17243,.inl_.inl_.X2166_15_17242 12954, Generating implicit firstprivate(seed,_particle) finally: 13592, Generating update self(_psdStart_var,_source_var,_instrument_var,_psdGuide_var,_armlambdaStop2_var,_bender1_var,_bender2_var,_Origin_var,_armlambdaStop1_var,_lamStart_var,_lamStopGuide_var,_lamStopBender1_var,_psdBender1_var,_lamStopBender2_var,_psdBender2_var,_guide_var) mcenabletrace: 5892, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===