INFO: No output directory specified (--dir) INFO: Using directory: "RTP_SANS_20241222_093138" INFO: Regenerating c-file: RTP_SANS.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./RTP_SANS.c RTP_SANS.instr 2024-12-22 09:31:55.834 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of RV in component instance mono1 2024-12-22 09:31:55.834 | INFO | mccode_antlr.instr.instance:set_parameter:122 - first-encountered value 2 * L * sin(DEG2RAD * A1) retained 2024-12-22 09:31:55.835 | INFO | mccode_antlr.instr.instance:set_parameter:123 - newly-encountered value 2 * L / sin(DEG2RAD * A1) dropped 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Monochromator_curved(0):read_table-lib :Shape(0):read_table-lib :Shape(1):interoff-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-22 09:32:13.595 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib monitor_nd-lib The instrument has 6 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component mono_cradle -> SPLIT 100 at component sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component source_monitor -> GPU kernel from component CoarseCollimator1 -> GPU kernel from component CoarseCollimator2 -> GPU kernel from component lmon -> GPU kernel from component Be_Position -> GPU kernel from component Be_Cryostat -> GPU kernel from component Be_Filter -> GPU kernel from component Be_Cryostat_out -> GPU kernel from component lmo_afterBe -> SPLIT within buffer at component mono_cradle -> GPU kernel from component mono_rotation -> GPU kernel from component mono1 -> GPU kernel from component mono2 -> GPU kernel from component mono3 -> GPU kernel from component mono_takeoff -> GPU kernel from component psd_transmit -> GPU kernel from component psd_reflect -> GPU kernel from component lmon_reflect2 -> GPU kernel from component coll1 -> GPU kernel from component sample_psd -> SPLIT within buffer at component sample -> GPU kernel from component det -> GPU kernel from component PSDrad -> GPU kernel from component det_tube -> GPU kernel from component reactor ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./RTP_SANS.out DEBUG: CMD: nvc -o ./RTP_SANS.out ./RTP_SANS.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 "./RTP_SANS.c", line 4528: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./RTP_SANS.c", line 11854: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_SANS.c", line 11854: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_SANS.c", line 11881: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_SANS.c", line 11881: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_SANS.c", line 12005: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12005: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12005: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12005: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12005: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12005: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./RTP_SANS.c", line 12362: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RTP_SANS.c", line 13515: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RTP_SANS.c", line 17198: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RTP_SANS.c", line 17199: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RTP_SANS.c", line 17202: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RTP_SANS.c", line 17205: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RTP_SANS.c", line 17209: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RTP_SANS.c", line 17211: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RTP_SANS.c", line 17212: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RTP_SANS.c", line 17213: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RTP_SANS.c", line 17215: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RTP_SANS.c", line 18015: warning: variable "d_phi" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18015: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18015: warning: variable "my_s" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18016: warning: variable "axis_x" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18016: warning: variable "axis_y" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18016: warning: variable "axis_z" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18017: warning: variable "arg" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "tmp_vx" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "tmp_vy" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "tmp_vz" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "vout_x" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "vout_y" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18017: warning: variable "vout_z" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 21135: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RTP_SANS.c", line 21136: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RTP_SANS.c", line 1536: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RTP_SANS.c", line 2939: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 96, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 110, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 149, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 180, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 209, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 221, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 230, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 247, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1583, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1587, Generating acc routine seq Generating NVIDIA GPU code str_len: 1596, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4149, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4580, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4591, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4600, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4612, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4634, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4644, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4652, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4662, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4684, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4691, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4737, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4783, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4800, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4811, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4827, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4856, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4867, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4871, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5048, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5079, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5096, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5195, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5279, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5345, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5422, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5694, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5704, Generating acc routine seq Generating NVIDIA GPU code _hash: 5730, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5771, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5782, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5787, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5795, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5803, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5810, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6467, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6563, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6580, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6695, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6750, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7494, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7878, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7923, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9189, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9257, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9336, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9804, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9820, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9838, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10835, Generating acc routine seq Generating NVIDIA GPU code off_F: 11962, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11967, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11977, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12003, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12066, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12197, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12242, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12359, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12477, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12489, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12524, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12775, Generating acc routine seq Generating NVIDIA GPU code merge: 12782, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12886, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12901, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12955, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13072, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13094, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 13273, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 13332, Generating acc routine seq Generating NVIDIA GPU code init: 16330, Generating update device(_CoarseCollimator2_var,_source_var,_source_monitor_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_lmon_reflect2_var,_Be_Filter_var,_Be_Cryostat_out_var,_Be_Cryostat_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_lmo_afterBe_var,_PSDrad_var,_reactor_var,_sample_psd_var,_det_tube_var,_Origin_var,_coll1_var,_psd_transmit_var,_det_var) class_Progress_bar_trace: 16371, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16461, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16670, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 16967, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 17120, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 17150, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 17617, Generating acc routine seq Generating NVIDIA GPU code class_Sans_spheres_trace: 17991, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 18118, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 18177, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18235, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18848, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18862, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18848, Local memory used for .inl_particle_23399,particleN,.inl_.inl_mcneutron_0_23414,.inl_.X2293_23416,.inl_.inl_.X2500_15_23415 18862, Generating implicit firstprivate(seed,_particle) finally: 20029, Generating update self(_CoarseCollimator2_var,_source_var,_source_monitor_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_lmon_reflect2_var,_Be_Filter_var,_Be_Cryostat_out_var,_Be_Cryostat_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_lmo_afterBe_var,_PSDrad_var,_reactor_var,_sample_psd_var,_det_tube_var,_Origin_var,_coll1_var,_psd_transmit_var,_det_var) mcenabletrace: 5929, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcBnlhhrvhUuKuA.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/RTP_SANS/./RTP_SANS.c:7603: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatwTlhhc7NxQXx3.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: ===