INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20241206_131146" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./BTsimple.c BTsimple.instr Downloading file 'mcstas-comps/optics/Elliptic_guide_gravity.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Elliptic_guide_gravity.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 13:11:49.397 | 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-06 13:11:49.398 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 13:11:49.398 | 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 finished INFO: Recompiling: ./BTsimple.out DEBUG: CMD: nvc -o ./BTsimple.out ./BTsimple.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./BTsimple.c", line 4497: 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 7266: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./BTsimple.c", line 7267: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./BTsimple.c", line 9677: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./BTsimple.c", line 11874: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./BTsimple.c", line 12059: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./BTsimple.c", line 12061: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./BTsimple.c", line 13778: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./BTsimple.c", line 13779: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./BTsimple.c", line 13780: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./BTsimple.c", line 13783: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 13783: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 13784: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 13784: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 13790: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./BTsimple.c", line 14233: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./BTsimple.c", line 14234: 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: 4118, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4569, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4621, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4660, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4706, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4752, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4780, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4796, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4825, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4836, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4840, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5017, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5048, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5065, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5164, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5248, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5314, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5391, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5663, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5673, Generating acc routine seq Generating NVIDIA GPU code _hash: 5699, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5740, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5751, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5756, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5772, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5779, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6532, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6549, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6719, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7058, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 7249, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 7264, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 7285, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 7341, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 7472, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 7532, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8717, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8785, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8864, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9332, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9348, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9366, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9432, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9491, Generating acc routine seq Generating NVIDIA GPU code init: 11384, 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: 11425, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 11526, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 11735, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11776, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 11849, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11939, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 12010, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12200, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12488, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12502, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12488, Local memory used for .inl_particle_13713,particleN,.inl_.inl_mcneutron_0_13728,.inl_.X2015_13730,.inl_.inl_.X2214_15_13729 12502, Generating implicit firstprivate(seed,_particle) finally: 13297, 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: 5898, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===