INFO: No output directory specified (--dir) INFO: Using directory: "RTP_DIF_20241206_130029" INFO: Regenerating c-file: RTP_DIF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./RTP_DIF.c RTP_DIF.instr 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Monochromator_curved(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Shape(0):read_table-lib :Shape(1):interoff-lib 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib monitor_nd-lib 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-12-06 13:00:33.613 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 13:00:33.614 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib The instrument has 5 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component mono_cradle -> SPLIT 100 at component sample_position ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component CoarseCollimator1 -> GPU kernel from component CoarseCollimator2 -> GPU kernel from component lmon -> GPU kernel from component Be_Position -> 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 sample_psd -> SPLIT within buffer at component sample_position -> GPU kernel from component container_in -> GPU kernel from component sample -> GPU kernel from component container_out -> GPU kernel from component sample_out -> GPU kernel from component det_big -> GPU kernel from component det -> GPU kernel from component reactor ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./RTP_DIF.out DEBUG: CMD: nvc -o ./RTP_DIF.out ./RTP_DIF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RTP_DIF.c", line 4527: 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_DIF.c", line 10087: 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_DIF.c", line 10087: 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_DIF.c", line 10087: 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_DIF.c", line 10087: 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_DIF.c", line 10087: 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_DIF.c", line 10087: 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_DIF.c", line 10444: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RTP_DIF.c", line 13290: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_DIF.c", line 13290: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_DIF.c", line 13317: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_DIF.c", line 13317: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_DIF.c", line 13412: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RTP_DIF.c", line 17097: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RTP_DIF.c", line 17098: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RTP_DIF.c", line 17101: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RTP_DIF.c", line 17104: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RTP_DIF.c", line 17108: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RTP_DIF.c", line 17110: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RTP_DIF.c", line 17111: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RTP_DIF.c", line 17112: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RTP_DIF.c", line 17114: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RTP_DIF.c", line 20075: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RTP_DIF.c", line 20076: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RTP_DIF.c", line 1536: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RTP_DIF.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: 4148, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4579, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4590, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4611, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4651, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4661, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4683, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4690, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4771, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4799, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4810, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4826, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4855, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4866, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4870, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5047, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5078, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5095, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5194, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5278, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5344, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5421, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5693, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5703, Generating acc routine seq Generating NVIDIA GPU code _hash: 5729, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5770, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5781, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5786, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5794, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5802, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5809, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6466, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6562, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6579, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6694, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6749, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7491, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7508, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7882, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9103, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9171, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9250, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9718, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9734, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9752, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9818, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9877, Generating acc routine seq Generating NVIDIA GPU code off_F: 10044, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10049, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10059, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10085, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10148, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10279, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10324, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 10441, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10559, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10571, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10606, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10857, Generating acc routine seq Generating NVIDIA GPU code merge: 10864, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10968, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10983, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11037, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11154, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11176, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 12286, Generating acc routine seq Generating NVIDIA GPU code init: 15856, Generating update device(_CoarseCollimator2_var,_source_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_sample_position_var,_sample_out_var,_Origin_var,_sample_psd_var,_container_in_var,_reactor_var,_container_out_var,_det_big_var,_psd_transmit_var,_det_var) class_Progress_bar_trace: 15897, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15987, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 16196, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16349, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 16639, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16669, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 17049, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 17523, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17581, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18078, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18092, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18078, Local memory used for .inl_particle_20911,particleN,.inl_.inl_mcneutron_0_20926,.inl_.X2239_20928,.inl_.inl_.X2446_15_20927 18092, Generating implicit firstprivate(seed,_particle) finally: 19095, Generating update self(_CoarseCollimator2_var,_source_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_sample_position_var,_sample_out_var,_Origin_var,_sample_psd_var,_container_in_var,_reactor_var,_container_out_var,_det_big_var,_psd_transmit_var,_det_var) mcenabletrace: 5928, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcYUwxmwK0z0Yyt.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/RTP_DIF/./RTP_DIF.c:7607: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===