INFO: No output directory specified (--dir) INFO: Using directory: "SAFARI_PITSI_20241222_085803" INFO: Regenerating c-file: SAFARI_PITSI.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./SAFARI_PITSI.c SAFARI_PITSI.instr 2024-12-22 08:58:33.333 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Filter_gen(0):read_table-lib :Monochromator_curved(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2024-12-22 08:58:33.334 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-22 08:58:33.334 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-22 08:58:33.334 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-22 08:58:33.334 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib The instrument has 29 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Progress -> GPU kernel from component Reactorbeam -> GPU kernel from component Prim_axes -> GPU kernel from component Source -> GPU kernel from component PSD_Source -> GPU kernel from component LAM_Source -> GPU kernel from component Window_before_filter -> GPU kernel from component Sapphire_filter -> GPU kernel from component Window_after_filter -> GPU kernel from component LAM_After_sapphire -> GPU kernel from component PSD_After_sapphire -> GPU kernel from component HighResOutlet -> GPU kernel from component HighIntensityOutlet -> GPU kernel from component PSD_After_Outlet -> GPU kernel from component Mono_axis -> GPU kernel from component Blade_1 -> GPU kernel from component Blade_2 -> GPU kernel from component Blade_3 -> GPU kernel from component Blade_4 -> GPU kernel from component Blade_5 -> GPU kernel from component Blade_6 -> GPU kernel from component Blade_7 -> GPU kernel from component Blade_8 -> GPU kernel from component Blade_9 -> GPU kernel from component Blade_10 -> GPU kernel from component Blade_11 -> GPU kernel from component Blade_12 -> GPU kernel from component Blade_13 -> GPU kernel from component PSD_At_sec_shutter -> GPU kernel from component LAM_At_sec_shutter -> GPU kernel from component Inside_chamber_collimator -> GPU kernel from component PSD_After_inside_chamber_collimator -> GPU kernel from component Outside_chamber_collimator -> GPU kernel from component PSD_Outside_chamber_collimator_1 -> GPU kernel from component PSD_Outside_chamber_collimator -> GPU kernel from component Incident_slit_h -> GPU kernel from component Incident_slit_w -> GPU kernel from component PSD_After_Incident_slit_w -> GPU kernel from component Center_of_rotation -> GPU kernel from component Sample_rotation -> GPU kernel from component Sample_location -> GPU kernel from component PSD_Center_of_rotation -> GPU kernel from component DIV_Center_of_rotation -> SPLIT within buffer at component Sample -> GPU kernel from component Det_axis -> GPU kernel from component Det_axis_2 -> GPU kernel from component Det_axis_3 -> GPU kernel from component Det_axis_4 -> GPU kernel from component RadColl -> GPU kernel from component PSD_Detector -> GPU kernel from component PSD_Detector_2 -> GPU kernel from component PSD_Detector_3 -> GPU kernel from component PSD_Detector_4 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./SAFARI_PITSI.out DEBUG: CMD: nvc -o ./SAFARI_PITSI.out ./SAFARI_PITSI.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 "./SAFARI_PITSI.c", line 4642: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 9992: 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; ^ "./SAFARI_PITSI.c", line 10349: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SAFARI_PITSI.c", line 11292: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_PITSI.c", line 11323: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_PITSI.c", line 16388: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./SAFARI_PITSI.c", line 16501: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./SAFARI_PITSI.c", line 16502: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./SAFARI_PITSI.c", line 16505: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./SAFARI_PITSI.c", line 16508: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./SAFARI_PITSI.c", line 16512: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./SAFARI_PITSI.c", line 16514: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./SAFARI_PITSI.c", line 16515: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./SAFARI_PITSI.c", line 16516: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./SAFARI_PITSI.c", line 16518: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./SAFARI_PITSI.c", line 21136: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SAFARI_PITSI.c", line 21137: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./SAFARI_PITSI.c", line 1650: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./SAFARI_PITSI.c", line 3053: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 115, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 129, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 187, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 237, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 285, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 297, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 306, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 342, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1697, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1701, Generating acc routine seq Generating NVIDIA GPU code str_len: 1710, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4263, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4694, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4705, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4714, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4726, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4738, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4748, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4758, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4766, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4776, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4798, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4805, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4851, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4886, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4897, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4914, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4925, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4941, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4970, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4981, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4985, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5162, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5193, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5210, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5309, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5393, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5459, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5536, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5808, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5818, Generating acc routine seq Generating NVIDIA GPU code _hash: 5844, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5885, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5896, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5901, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5909, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5917, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5924, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6581, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6677, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6694, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6809, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6864, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7409, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7468, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7842, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9249, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9317, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9396, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9864, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9880, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9898, Generating acc routine seq Generating NVIDIA GPU code off_F: 9949, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9954, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9964, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9990, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10053, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10184, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10229, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 10346, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10464, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10476, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10511, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10762, Generating acc routine seq Generating NVIDIA GPU code merge: 10769, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10873, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10888, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10942, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11059, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11081, Generating acc routine seq Generating NVIDIA GPU code init: 15406, Generating update device(_Prim_axes_var,_RadColl_var,_PSD_Source_var,_Sapphire_filter_var,_PSD_Outside_chamber_collimator_var,_LAM_At_sec_shutter_var,_Window_after_filter_var,_Sample_var,_Source_var,_Inside_chamber_collimator_var,_PSD_After_inside_chamber_collimator_var,_HighIntensityOutlet_var,_Det_axis_var,_PSD_After_Incident_slit_w_var,_LAM_Source_var,_Blade_13_var,_Blade_1_var,_Blade_2_var,_Blade_3_var,_Blade_4_var,_Blade_5_var,_Blade_6_var,_Blade_7_var,_Blade_8_var,_Blade_10_var,_Blade_11_var,_Blade_12_var,_PSD_After_sapphire_var,_LAM_After_sapphire_var,_Incident_slit_w_var,_PSD_After_Outlet_var,_Mono_axis_var,_PSD_Detector_var,_PSD_Outside_chamber_collimator_1_var,_HighResOutlet_var,_Incident_slit_h_var,_Outside_chamber_collimator_var,_Blade_9_var,_Sample_location_var,_Reactorbeam_var,_PSD_At_sec_shutter_var,_Center_of_rotation_var,_Sample_rotation_var,_Det_axis_4_var,_DIV_Center_of_rotation_var,_Det_axis_2_var,_Det_axis_3_var,_Progress_var,_PSD_Detector_4_var,_PSD_Center_of_rotation_var,_PSD_Detector_2_var,_PSD_Detector_3_var,_instrument_var,_Window_before_filter_var) class_Progress_bar_trace: 15447, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15538, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15747, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 15818, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15891, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 15935, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16018, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 16363, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16453, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 16925, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17102, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18222, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18236, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18222, Local memory used for .inl_particle_29036,particleN,.inl_.inl_mcneutron_0_29051,.inl_.X2210_29053,.inl_.inl_.X2418_15_29052 18236, Generating implicit firstprivate(seed,_particle) finally: 19934, Generating update self(_Prim_axes_var,_RadColl_var,_PSD_Source_var,_Sapphire_filter_var,_PSD_Outside_chamber_collimator_var,_LAM_At_sec_shutter_var,_Window_after_filter_var,_Sample_var,_Source_var,_Inside_chamber_collimator_var,_PSD_After_inside_chamber_collimator_var,_HighIntensityOutlet_var,_Det_axis_var,_PSD_After_Incident_slit_w_var,_LAM_Source_var,_Blade_13_var,_Blade_1_var,_Blade_2_var,_Blade_3_var,_Blade_4_var,_Blade_5_var,_Blade_6_var,_Blade_7_var,_Blade_8_var,_Blade_10_var,_Blade_11_var,_Blade_12_var,_PSD_After_sapphire_var,_LAM_After_sapphire_var,_Incident_slit_w_var,_PSD_After_Outlet_var,_Mono_axis_var,_PSD_Detector_var,_PSD_Outside_chamber_collimator_1_var,_HighResOutlet_var,_Incident_slit_h_var,_Outside_chamber_collimator_var,_Blade_9_var,_Sample_location_var,_Reactorbeam_var,_PSD_At_sec_shutter_var,_Center_of_rotation_var,_Sample_rotation_var,_Det_axis_4_var,_DIV_Center_of_rotation_var,_Det_axis_2_var,_Det_axis_3_var,_Progress_var,_PSD_Detector_4_var,_PSD_Center_of_rotation_var,_PSD_Detector_2_var,_PSD_Detector_3_var,_instrument_var,_Window_before_filter_var) mcenabletrace: 6043, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcTaF-ghdS_j9gU.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/SAFARI_PITSI/./SAFARI_PITSI.c:7567: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatBFF-grSnOFe58.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: ===