INFO: No output directory specified (--dir) INFO: Using directory: "templateDIFF_20241222_094332" INFO: Regenerating c-file: templateDIFF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./templateDIFF.c templateDIFF.instr 2024-12-22 09:43:44.923 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of bins in component instance Diff_Mono_XY 2024-12-22 09:43:44.923 | INFO | mccode_antlr.instr.instance:set_parameter:122 - first-encountered value 100 retained 2024-12-22 09:43:44.923 | INFO | mccode_antlr.instr.instance:set_parameter:123 - newly-encountered value 40 dropped 2024-12-22 09:43:58.919 | 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 :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2024-12-22 09:43:58.919 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 09:43:58.920 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-22 09:43:58.920 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 09:43:58.920 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib The instrument has 14 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Monok -> SPLIT 10 at component Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component mono_cradle -> GPU kernel from component Alpha_One -> GPU kernel from component Diff_Mono_XY -> GPU kernel from component Diff_Mono_Lambda -> SPLIT within buffer at component Monok -> GPU kernel from component mono_out -> GPU kernel from component Alpha_Two -> GPU kernel from component Diff_Sample_Lambda -> GPU kernel from component Slit_Sample -> SPLIT within buffer at component Sample -> GPU kernel from component collimador_radial -> GPU kernel from component Diff_BananaTheta -> GPU kernel from component Diff_BananaPSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./templateDIFF.out DEBUG: CMD: nvc -o ./templateDIFF.out ./templateDIFF.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 "./templateDIFF.c", line 4498: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./templateDIFF.c", line 11732: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 11732: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 11759: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 11759: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 11883: 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; ^ "./templateDIFF.c", line 12240: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateDIFF.c", line 13152: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateDIFF.c", line 16481: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./templateDIFF.c", line 16482: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./templateDIFF.c", line 16485: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./templateDIFF.c", line 16488: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./templateDIFF.c", line 16492: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./templateDIFF.c", line 16494: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./templateDIFF.c", line 16495: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./templateDIFF.c", line 16496: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./templateDIFF.c", line 16498: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./templateDIFF.c", line 19323: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateDIFF.c", line 19324: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateDIFF.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateDIFF.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: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7437, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7451, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7838, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9067, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9135, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9214, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9682, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9698, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9716, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10713, Generating acc routine seq Generating NVIDIA GPU code off_F: 11840, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11845, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11855, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11881, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11944, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12075, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12120, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12237, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12355, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12367, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12402, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12653, Generating acc routine seq Generating NVIDIA GPU code merge: 12660, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12764, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12779, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12833, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12950, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12972, Generating acc routine seq Generating NVIDIA GPU code init: 15339, Generating update device(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_out_var,_mono_cradle_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) class_Progress_bar_trace: 15380, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15470, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 15680, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15754, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16044, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 16389, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16433, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 16905, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17058, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17433, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17447, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17433, Local memory used for .inl_particle_18855,particleN,.inl_.inl_mcneutron_0_18870,.inl_.X2268_18872,.inl_.inl_.X2474_15_18871 17447, Generating implicit firstprivate(seed,_particle) finally: 18348, Generating update self(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_cradle_var,_mono_out_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) mcenabletrace: 5899, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvc8E1kh099Ya-p0.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/templateDIFF/./templateDIFF.c:7563: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatD81khxEkgPBp4.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: ===