INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20241222_093717" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./BTsimple.c BTsimple.instr 2024-12-22 09:37:36.238 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Elliptic_guide_gravity(0):ref-lib :ref-lib(0):read_table-lib 2024-12-22 09:37:36.238 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 09:37:36.238 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 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 CalcDiv1 -> GPU kernel from component BT_in -> GPU kernel from component Div_in -> GPU kernel from component PSD_in -> GPU kernel from component guide -> GPU kernel from component CalcDiv2 -> GPU kernel from component BT_out -> GPU kernel from component Div_out -> GPU kernel from component PSD_out ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./BTsimple.out DEBUG: CMD: nvc -o ./BTsimple.out ./BTsimple.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 "./BTsimple.c", line 4498: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./BTsimple.c", line 7267: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./BTsimple.c", line 7268: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./BTsimple.c", line 9678: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./BTsimple.c", line 11875: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./BTsimple.c", line 12060: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./BTsimple.c", line 12062: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./BTsimple.c", line 13779: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./BTsimple.c", line 13780: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./BTsimple.c", line 13781: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./BTsimple.c", line 13784: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 13784: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 13785: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 13785: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 13791: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./BTsimple.c", line 14234: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./BTsimple.c", line 14235: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./BTsimple.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./BTsimple.c", line 2909: 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: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7059, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 7250, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 7265, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 7286, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 7342, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 7473, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 7533, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8718, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8786, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8865, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9333, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9349, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9367, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9433, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9492, Generating acc routine seq Generating NVIDIA GPU code init: 11385, Generating update device(_instrument_var,_source_var,_origin_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) class_Progress_bar_trace: 11426, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 11527, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 11736, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11777, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 11850, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11940, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 12011, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12201, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12489, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12503, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12489, Local memory used for .inl_particle_13713,particleN,.inl_.inl_mcneutron_0_13728,.inl_.X2015_13730,.inl_.inl_.X2214_15_13729 12503, Generating implicit firstprivate(seed,_particle) finally: 13298, Generating update self(_instrument_var,_origin_var,_source_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) mcenabletrace: 5899, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatRTtihbBlaVrYW.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: ===