INFO: No output directory specified (--dir) INFO: Using directory: "ILL_IN13_20241206_112928" INFO: Regenerating c-file: ILL_IN13.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_IN13.c ILL_IN13.instr 2024-12-06 11:29:31.406 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(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 :Incoherent(0):read_table-lib :Incoherent(1):interoff-lib 2024-12-06 11:29:31.407 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 11:29:31.407 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 11:29:31.407 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 11:29:31.407 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib WARNING: --> USERVAR R is of type Rotation --> and may need specific per-particle initialization through an EXTEND block! The instrument has 8 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component mono_cradle -> SPLIT 10 at component defl_cradle -> SPLIT 10 at component SamplePos ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Progress -> GPU kernel from component Source -> GPU kernel from component EndOfFakeGuide -> GPU kernel from component mono_pos -> GPU kernel from component CaF2_incoming -> SPLIT within buffer at component mono_cradle -> GPU kernel from component CaF2_mono -> GPU kernel from component CaF2_transmitted -> GPU kernel from component out_mono -> SPLIT within buffer at component defl_cradle -> GPU kernel from component Defl_XY -> GPU kernel from component Defl_lambda -> GPU kernel from component IN13_deflector -> GPU kernel from component out_defl -> GPU kernel from component source_slit -> GPU kernel from component sample_slit -> SPLIT within buffer at component SamplePos -> GPU kernel from component SamposPSD -> GPU kernel from component SamposEnergy -> GPU kernel from component SamposPSDcm2 -> GPU kernel from component Sample -> GPU kernel from component PSD_scattered -> GPU kernel from component RotateNeutron -> GPU kernel from component AnalyserMount -> GPU kernel from component Analyser -> GPU kernel from component Sample_copy -> GPU kernel from component DetectorMount -> GPU kernel from component Detector -> GPU kernel from component DetectorEnergy -> GPU kernel from component DetectorShape ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./ILL_IN13.out DEBUG: CMD: nvc -o ./ILL_IN13.out ./ILL_IN13.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_IN13.c", line 4556: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ILL_IN13.c", line 11410: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN13.c", line 11410: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN13.c", line 11437: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN13.c", line 11437: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11561: 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; ^ "./ILL_IN13.c", line 11918: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_IN13.c", line 12870: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_IN13.c", line 12931: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_IN13.c", line 16929: warning: variable "l_i" was set but never used [set_but_not_used] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ILL_IN13.c", line 16929: warning: variable "l_o" was declared but never referenced [declared_but_not_referenced] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ILL_IN13.c", line 19911: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_IN13.c", line 19912: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_IN13.c", line 1565: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_IN13.c", line 2968: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 101, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 115, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 159, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 195, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 229, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 241, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 250, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 272, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1612, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1616, Generating acc routine seq Generating NVIDIA GPU code str_len: 1625, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4177, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4619, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4640, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4652, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4662, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4672, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4680, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4690, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4712, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4719, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4800, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4811, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4828, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4839, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4855, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4884, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4895, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4899, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5076, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5107, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5124, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5223, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5373, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5450, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5722, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5732, Generating acc routine seq Generating NVIDIA GPU code _hash: 5758, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5799, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5810, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5815, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5823, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5831, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5838, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6495, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6591, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6608, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6723, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6778, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7485, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7499, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8760, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8828, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8907, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9375, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9391, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9409, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10406, Generating acc routine seq Generating NVIDIA GPU code off_F: 11518, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11523, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11533, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11559, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11622, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11753, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11798, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11915, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12033, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12045, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12080, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12331, Generating acc routine seq Generating NVIDIA GPU code merge: 12338, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12442, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12457, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12511, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12628, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12650, Generating acc routine seq Generating NVIDIA GPU code init: 15571, Generating update device(_PSD_scattered_var,_SamposPSDcm2_var,_Detector_var,_mono_cradle_var,_Analyser_var,_instrument_var,_CaF2_incoming_var,_CaF2_mono_var,_out_defl_var,_Source_var,_CaF2_transmitted_var,_Defl_XY_var,_EndOfFakeGuide_var,_mono_pos_var,_source_slit_var,_sample_slit_var,_out_mono_var,_RotateNeutron_var,_SamposEnergy_var,_Sample_var,_SamposPSD_var,_Sample_copy_var,_IN13_deflector_var,_Progress_var,_AnalyserMount_var,_SamplePos_var,_DetectorEnergy_var,_DetectorShape_var,_Defl_lambda_var,_DetectorMount_var,_defl_cradle_var) class_Progress_bar_trace: 15612, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15720, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 15929, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16010, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16317, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 16701, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 16774, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16818, Generating acc routine seq Generating NVIDIA GPU code class_Incoherent_trace: 16889, Generating acc routine seq Generating NVIDIA GPU code 17086, Reference argument passing prevents parallelization: solid_angle 17089, Reference argument passing prevents parallelization: solid_angle raytrace: 17238, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17828, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17842, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17828, Local memory used for .inl_particle_22098,particleN,.inl_.inl_mcneutron_0_22113,.inl_.X2235_22115,.inl_.inl_.X2438_15_22114 17842, Generating implicit firstprivate(seed,_particle) finally: 19001, Generating update self(_PSD_scattered_var,_SamposPSDcm2_var,_Detector_var,_mono_cradle_var,_Analyser_var,_instrument_var,_CaF2_incoming_var,_CaF2_mono_var,_out_defl_var,_Source_var,_CaF2_transmitted_var,_Defl_XY_var,_EndOfFakeGuide_var,_mono_pos_var,_sample_slit_var,_source_slit_var,_out_mono_var,_RotateNeutron_var,_SamposEnergy_var,_Sample_var,_SamposPSD_var,_Sample_copy_var,_IN13_deflector_var,_Progress_var,_AnalyserMount_var,_SamplePos_var,_DetectorEnergy_var,_DetectorShape_var,_Defl_lambda_var,_DetectorMount_var,_defl_cradle_var) mcenabletrace: 5957, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===