INFO: No output directory specified (--dir) INFO: Using directory: "SAFARI_PITSI_20241206_122820" INFO: Regenerating c-file: SAFARI_PITSI.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./SAFARI_PITSI.c SAFARI_PITSI.instr 2024-12-06 12:28:24.085 | 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-06 12:28:24.085 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-06 12:28:24.086 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-06 12:28:24.086 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-06 12:28:24.086 | 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 finished INFO: Recompiling: ./SAFARI_PITSI.out DEBUG: CMD: nvc -o ./SAFARI_PITSI.out ./SAFARI_PITSI.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./SAFARI_PITSI.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_PITSI.c", line 9991: 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 9991: 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 9991: 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 9991: 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 9991: 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 9991: 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 10348: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SAFARI_PITSI.c", line 11291: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_PITSI.c", line 11322: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SAFARI_PITSI.c", line 16387: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./SAFARI_PITSI.c", line 16500: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./SAFARI_PITSI.c", line 16501: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./SAFARI_PITSI.c", line 16504: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./SAFARI_PITSI.c", line 16507: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./SAFARI_PITSI.c", line 16511: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./SAFARI_PITSI.c", line 16513: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./SAFARI_PITSI.c", line 16514: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./SAFARI_PITSI.c", line 16515: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./SAFARI_PITSI.c", line 16517: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./SAFARI_PITSI.c", line 21135: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SAFARI_PITSI.c", line 21136: 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: 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: 7408, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7467, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7841, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9248, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9316, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9395, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9863, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9879, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9897, Generating acc routine seq Generating NVIDIA GPU code off_F: 9948, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9953, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9963, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9989, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10052, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10183, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10228, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 10345, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10463, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10475, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10510, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10761, Generating acc routine seq Generating NVIDIA GPU code merge: 10768, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10872, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10887, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10941, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11058, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11080, Generating acc routine seq Generating NVIDIA GPU code init: 15405, 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: 15446, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15537, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15746, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 15817, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15890, Generating acc routine seq Generating NVIDIA GPU code class_Filter_gen_trace: 15934, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16017, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 16362, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16452, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 16924, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17101, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18221, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18235, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18221, Local memory used for .inl_particle_29036,particleN,.inl_.inl_mcneutron_0_29051,.inl_.X2210_29053,.inl_.inl_.X2418_15_29052 18235, Generating implicit firstprivate(seed,_particle) finally: 19933, 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: 6042, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvc4UDwmOVt-oHX0.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/SAFARI_PITSI/./SAFARI_PITSI.c:7566: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===