INFO: No output directory specified (--dir) INFO: Using directory: "SAFARI_MPISI_20241222_085557" INFO: Regenerating c-file: SAFARI_MPISI.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./SAFARI_MPISI.c SAFARI_MPISI.instr 2024-12-22 08:56:27.210 | 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 :Virtual_output(0):monitor_nd-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2024-12-22 08:56:27.210 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:56:27.210 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:56:27.210 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-22 08:56:27.210 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:56:27.210 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib The instrument has 32 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_BehindMono -> GPU kernel from component LAM_BehindMono -> GPU kernel from component ReactorBeamStop -> GPU kernel from component PSD_At_sec_shutter -> GPU kernel from component LAM_At_sec_shutter -> GPU kernel from component PSD_Before_inside_chamber_window -> GPU kernel from component Inside_chamber_window -> GPU kernel from component PSD_After_inside_chamber_window -> 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 Component Source_capture is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component Source_capture -> 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 -> SPLIT within buffer at component Sample -> GPU kernel from component DiffBeamStop -> GPU kernel from component Det_axis -> GPU kernel from component PSD_Detector ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./SAFARI_MPISI.out DEBUG: CMD: nvc -o ./SAFARI_MPISI.out ./SAFARI_MPISI.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_MPISI.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_MPISI.c", line 12093: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./SAFARI_MPISI.c", line 12093: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./SAFARI_MPISI.c", line 12120: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./SAFARI_MPISI.c", line 12120: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./SAFARI_MPISI.c", line 12244: 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_MPISI.c", line 12244: 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_MPISI.c", line 12244: 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_MPISI.c", line 12244: 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_MPISI.c", line 12244: 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_MPISI.c", line 12244: 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_MPISI.c", line 12601: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SAFARI_MPISI.c", line 13539: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_MPISI.c", line 13570: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_MPISI.c", line 18489: warning: variable "pp" was set but never used [set_but_not_used] double pp=0; ^ "./SAFARI_MPISI.c", line 18579: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./SAFARI_MPISI.c", line 18580: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./SAFARI_MPISI.c", line 18583: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./SAFARI_MPISI.c", line 18586: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./SAFARI_MPISI.c", line 18590: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./SAFARI_MPISI.c", line 18592: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./SAFARI_MPISI.c", line 18593: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./SAFARI_MPISI.c", line 18594: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./SAFARI_MPISI.c", line 18596: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./SAFARI_MPISI.c", line 22935: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SAFARI_MPISI.c", line 22936: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./SAFARI_MPISI.c", line 1650: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./SAFARI_MPISI.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: 7615, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7674, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 8050, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9428, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9496, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9575, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10043, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10059, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10077, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11074, Generating acc routine seq Generating NVIDIA GPU code off_F: 12201, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12206, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12216, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12242, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12305, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12436, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12481, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12598, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12716, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12728, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12763, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13014, Generating acc routine seq Generating NVIDIA GPU code merge: 13021, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13125, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13140, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13194, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13311, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13333, Generating acc routine seq Generating NVIDIA GPU code init: 17478, Generating update device(_Prim_axes_var,_ReactorBeamStop_var,_PSD_Source_var,_Source_capture_var,_PSD_Outside_chamber_collimator_var,_LAM_BehindMono_var,_Window_after_filter_var,_Sample_var,_Source_var,_Inside_chamber_window_var,_PSD_After_inside_chamber_window_var,_HighIntensityOutlet_var,_DiffBeamStop_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_Before_inside_chamber_window_var,_LAM_At_sec_shutter_var,_Progress_var,_PSD_After_sapphire_var,_LAM_After_sapphire_var,_PSD_At_sec_shutter_var,_Inside_chamber_collimator_var,_PSD_After_inside_chamber_collimator_var,_Incident_slit_w_var,_PSD_After_Outlet_var,_Mono_axis_var,_PSD_Detector_var,_Sapphire_filter_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,_Sample_rotation_var,_Det_axis_var,_Center_of_rotation_var,_PSD_BehindMono_var,_instrument_var,_Window_before_filter_var) class_Progress_bar_trace: 17519, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17610, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 17819, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 17890, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17963, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 18007, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18090, Generating acc routine seq Generating NVIDIA GPU code class_Beamstop_trace: 18435, Generating acc routine seq Generating NVIDIA GPU code class_Virtual_output_trace: 18481, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 18531, Generating acc routine seq Generating NVIDIA GPU code raytrace: 19029, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 20173, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 20187, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 20173, Local memory used for .inl_particle_29034,particleN,.inl_.inl_mcneutron_0_29049,.inl_.X2332_29051,.inl_.inl_.X2539_15_29050 20187, Generating implicit firstprivate(seed,_particle) finally: 21840, Generating update self(_Prim_axes_var,_ReactorBeamStop_var,_PSD_Source_var,_Source_capture_var,_PSD_Outside_chamber_collimator_var,_LAM_BehindMono_var,_Window_after_filter_var,_Sample_var,_Source_var,_Inside_chamber_window_var,_PSD_After_inside_chamber_window_var,_HighIntensityOutlet_var,_DiffBeamStop_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_Before_inside_chamber_window_var,_LAM_At_sec_shutter_var,_Progress_var,_PSD_After_sapphire_var,_LAM_After_sapphire_var,_PSD_At_sec_shutter_var,_Inside_chamber_collimator_var,_PSD_After_inside_chamber_collimator_var,_Incident_slit_w_var,_PSD_After_Outlet_var,_Mono_axis_var,_PSD_Detector_var,_Sapphire_filter_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,_Sample_rotation_var,_Det_axis_var,_Center_of_rotation_var,_PSD_BehindMono_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/nvcW8m-gqw94SYvm.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/SAFARI_MPISI/./SAFARI_MPISI.c:7775: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatVCn-gn7CclXM6.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: ===