INFO: No output directory specified (--dir) INFO: Using directory: "SAFARI_MPISI_20241206_122605" INFO: Regenerating c-file: SAFARI_MPISI.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./SAFARI_MPISI.c SAFARI_MPISI.instr 2024-12-06 12:26:10.052 | 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-06 12:26:10.054 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 12:26:10.054 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 12:26:10.054 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 12:26:10.055 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 12:26:10.055 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-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 finished INFO: Recompiling: ./SAFARI_MPISI.out DEBUG: CMD: nvc -o ./SAFARI_MPISI.out ./SAFARI_MPISI.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./SAFARI_MPISI.c", line 4641: 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 12077: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./SAFARI_MPISI.c", line 12077: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./SAFARI_MPISI.c", line 12104: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./SAFARI_MPISI.c", line 12104: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./SAFARI_MPISI.c", line 12228: 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 12228: 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 12228: 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 12228: 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 12228: 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 12228: 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 12585: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SAFARI_MPISI.c", line 13523: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_MPISI.c", line 13554: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_MPISI.c", line 18473: warning: variable "pp" was set but never used [set_but_not_used] double pp=0; ^ "./SAFARI_MPISI.c", line 18563: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./SAFARI_MPISI.c", line 18564: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./SAFARI_MPISI.c", line 18567: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./SAFARI_MPISI.c", line 18570: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./SAFARI_MPISI.c", line 18574: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./SAFARI_MPISI.c", line 18576: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./SAFARI_MPISI.c", line 18577: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./SAFARI_MPISI.c", line 18578: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./SAFARI_MPISI.c", line 18580: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./SAFARI_MPISI.c", line 22919: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SAFARI_MPISI.c", line 22920: 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: 4262, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4693, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4704, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4713, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4725, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4737, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4747, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4757, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4765, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4775, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4797, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4804, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4850, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4885, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4896, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4913, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4924, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4940, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4969, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4980, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4984, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5161, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5192, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5209, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5392, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5458, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5535, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5807, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5817, Generating acc routine seq Generating NVIDIA GPU code _hash: 5843, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5884, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5895, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5900, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5908, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5916, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5923, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6580, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6676, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6693, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6808, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6863, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7614, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7673, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 8049, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9427, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9495, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9574, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10042, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10058, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10076, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11073, Generating acc routine seq Generating NVIDIA GPU code off_F: 12185, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12190, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12200, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12226, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12289, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12420, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12465, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12582, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12700, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12712, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12747, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12998, Generating acc routine seq Generating NVIDIA GPU code merge: 13005, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13109, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13124, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13178, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13295, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13317, Generating acc routine seq Generating NVIDIA GPU code init: 17462, 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: 17503, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17594, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 17803, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 17874, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17947, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 17991, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18074, Generating acc routine seq Generating NVIDIA GPU code class_Beamstop_trace: 18419, Generating acc routine seq Generating NVIDIA GPU code class_Virtual_output_trace: 18465, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 18515, Generating acc routine seq Generating NVIDIA GPU code raytrace: 19013, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 20157, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 20171, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 20157, Local memory used for .inl_particle_29034,particleN,.inl_.inl_mcneutron_0_29049,.inl_.X2332_29051,.inl_.inl_.X2539_15_29050 20171, Generating implicit firstprivate(seed,_particle) finally: 21824, 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: 6042, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcjDBwmBIDcNCrT.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/SAFARI_MPISI/./SAFARI_MPISI.c:7774: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===