INFO: No output directory specified (--dir) INFO: Using directory: "ILL_D2B_20241206_092719" INFO: Regenerating c-file: ILL_D2B.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_D2B.c ILL_D2B.instr Downloading file 'mcstas-comps/optics/Collimator_radial.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Collimator_radial.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 09:27:23.582 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(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 :Guide_channeled(0):ref-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2024-12-06 09:27:23.583 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 09:27:23.583 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 09:27:23.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 09:27:23.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib monitor_nd-lib 2024-12-06 09:27:23.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 09:27:23.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib The instrument has 17 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Monok -> SPLIT 10 at component Arm_Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component Win0 -> GPU kernel from component Oct1 -> GPU kernel from component Oct2 -> GPU kernel from component Win1 -> GPU kernel from component Win2 -> GPU kernel from component Win3 -> GPU kernel from component Win4 -> GPU kernel from component Win5 -> GPU kernel from component Win6 -> GPU kernel from component SMguide -> GPU kernel from component Alpha_One -> GPU kernel from component Slit_Mono -> GPU kernel from component D2B_Mono_XY -> GPU kernel from component D2B_ALPHA1_Div -> GPU kernel from component D2B_Mono_Lambda -> GPU kernel from component mono_cradle -> SPLIT within buffer at component Monok -> GPU kernel from component sphere -> GPU kernel from component mono_out -> GPU kernel from component Shield_Hole -> GPU kernel from component Alpha_Two -> GPU kernel from component Slit_Sample -> GPU kernel from component D2B_ALPHA2_Div -> GPU kernel from component D2B_Sample_Lambda -> SPLIT within buffer at component Arm_Sample -> GPU kernel from component Container_in -> GPU kernel from component Sample -> GPU kernel from component Container_out -> GPU kernel from component collimador_radial -> GPU kernel from component D2B_BananaTheta -> GPU kernel from component D2B_BananaThetaCenter -> GPU kernel from component D2B_BananaPSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./ILL_D2B.out DEBUG: CMD: nvc -o ./ILL_D2B.out ./ILL_D2B.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_D2B.c", line 4497: 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_D2B.c", line 12181: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_D2B.c", line 12181: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_D2B.c", line 12208: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_D2B.c", line 12208: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_D2B.c", line 12332: 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_D2B.c", line 12332: 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_D2B.c", line 12332: 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_D2B.c", line 12332: 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_D2B.c", line 12332: 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_D2B.c", line 12332: 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_D2B.c", line 12689: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_D2B.c", line 13603: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_D2B.c", line 18607: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ILL_D2B.c", line 18608: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ILL_D2B.c", line 18611: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ILL_D2B.c", line 18614: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ILL_D2B.c", line 18618: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ILL_D2B.c", line 18620: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ILL_D2B.c", line 18621: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ILL_D2B.c", line 18622: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ILL_D2B.c", line 18624: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ILL_D2B.c", line 22485: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_D2B.c", line 22486: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_D2B.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_D2B.c", line 2909: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4118, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4569, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4621, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4660, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4706, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4752, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4780, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4796, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4825, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4836, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4840, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5017, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5048, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5065, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5164, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5248, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5314, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5391, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5663, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5673, Generating acc routine seq Generating NVIDIA GPU code _hash: 5699, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5740, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5751, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5756, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5772, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5779, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6532, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6549, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6719, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7485, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7515, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7891, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9290, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9358, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9437, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9905, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9921, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9939, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10005, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10064, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11177, Generating acc routine seq Generating NVIDIA GPU code off_F: 12289, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12294, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12304, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12330, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12393, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12524, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12569, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12686, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12804, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12816, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12851, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13102, Generating acc routine seq Generating NVIDIA GPU code merge: 13109, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13213, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13228, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13282, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13399, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13421, Generating acc routine seq Generating NVIDIA GPU code init: 16993, Generating update device(_Oct2_var,_Slit_Sample_var,_Source_var,_Monok_var,_Oct1_var,_Win0_var,_Win1_var,_Win2_var,_Win3_var,_Win4_var,_Win5_var,_Origin_var,_Shield_Hole_var,_D2B_Mono_Lambda_var,_Container_out_var,_D2B_BananaTheta_var,_instrument_var,_D2B_Sample_Lambda_var,_sphere_var,_mono_out_var,_mono_cradle_var,_Sample_var,_Alpha_One_var,_Slit_Mono_var,_D2B_ALPHA1_Div_var,_D2B_Mono_XY_var,_Alpha_Two_var,_Arm_Sample_var,_SMguide_var,_Container_in_var,_Win6_var,_D2B_BananaThetaCenter_var,_D2B_BananaPSD_var,_D2B_ALPHA2_Div_var,_collimador_radial_var) class_Progress_bar_trace: 17034, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17124, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17333, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 17377, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 17530, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17604, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 17895, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 18240, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 18318, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 18559, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 19026, Generating acc routine seq Generating NVIDIA GPU code raytrace: 19179, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19936, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19950, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19936, Local memory used for .inl_particle_26397,particleN,.inl_.inl_mcneutron_0_26412,.inl_.X2359_26414,.inl_.inl_.X2567_15_26413 19950, Generating implicit firstprivate(seed,_particle) finally: 21210, Generating update self(_Oct2_var,_Slit_Sample_var,_Source_var,_Monok_var,_Oct1_var,_Win0_var,_Win1_var,_Win2_var,_Win3_var,_Win4_var,_Win5_var,_Origin_var,_Shield_Hole_var,_D2B_Mono_Lambda_var,_Container_out_var,_D2B_BananaTheta_var,_instrument_var,_D2B_Sample_Lambda_var,_sphere_var,_mono_out_var,_mono_cradle_var,_Sample_var,_Alpha_One_var,_Slit_Mono_var,_D2B_ALPHA1_Div_var,_D2B_Mono_XY_var,_Alpha_Two_var,_Arm_Sample_var,_SMguide_var,_Container_in_var,_Win6_var,_D2B_BananaThetaCenter_var,_D2B_BananaPSD_var,_D2B_ALPHA2_Div_var,_collimador_radial_var) mcenabletrace: 5898, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvc03atmCha-ItM3.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/ILL_D2B/./ILL_D2B.c:7616: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===