INFO: No output directory specified (--dir) INFO: Using directory: "templateDIFF_20241206_131639" INFO: Regenerating c-file: templateDIFF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./templateDIFF.c templateDIFF.instr 2024-12-06 13:16:42.227 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of bins in component instance Diff_Mono_XY 2024-12-06 13:16:42.228 | INFO | mccode_antlr.instr.instance:set_parameter:122 - first-encountered value 100 retained 2024-12-06 13:16:42.228 | INFO | mccode_antlr.instr.instance:set_parameter:123 - newly-encountered value 40 dropped 2024-12-06 13:16:42.667 | 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-06 13:16:42.668 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 13:16:42.668 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-06 13:16:42.668 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 13:16:42.668 | 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 finished INFO: Recompiling: ./templateDIFF.out DEBUG: CMD: nvc -o ./templateDIFF.out ./templateDIFF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateDIFF.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 " "./templateDIFF.c", line 11716: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 11716: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 11743: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 11743: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 11867: 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 11867: 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 11867: 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 11867: 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 11867: 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 11867: 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 12224: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateDIFF.c", line 13136: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateDIFF.c", line 16465: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./templateDIFF.c", line 16466: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./templateDIFF.c", line 16469: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./templateDIFF.c", line 16472: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./templateDIFF.c", line 16476: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./templateDIFF.c", line 16478: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./templateDIFF.c", line 16479: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./templateDIFF.c", line 16480: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./templateDIFF.c", line 16482: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./templateDIFF.c", line 19307: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateDIFF.c", line 19308: 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: 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: 7436, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7450, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7837, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9066, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9134, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9213, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9681, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9697, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9715, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10712, Generating acc routine seq Generating NVIDIA GPU code off_F: 11824, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11829, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11839, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11865, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11928, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12059, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12104, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12221, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12339, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12351, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12386, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12637, Generating acc routine seq Generating NVIDIA GPU code merge: 12644, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12748, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12763, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12817, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12934, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12956, Generating acc routine seq Generating NVIDIA GPU code init: 15323, 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: 15364, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15454, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 15664, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15738, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16028, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 16373, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16417, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 16889, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17042, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17417, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17431, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17417, Local memory used for .inl_particle_18855,particleN,.inl_.inl_mcneutron_0_18870,.inl_.X2268_18872,.inl_.inl_.X2474_15_18871 17431, Generating implicit firstprivate(seed,_particle) finally: 18332, 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: 5898, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvc6OfymUK-c87Ev.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/templateDIFF/./templateDIFF.c:7562: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===