INFO: No output directory specified (--dir) INFO: Using directory: "ESS_BEER_MCPL_20241222_055910" INFO: Regenerating c-file: ESS_BEER_MCPL.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ESS_BEER_MCPL.c ESS_BEER_MCPL.instr 2024-12-22 05:59:44.935 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :NPI_tof_dhkl_detector(0):read_table-lib 2024-12-22 05:59:44.935 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 05:59:44.935 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 05:59:44.935 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib The instrument has 18 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component src -> GPU kernel from component xymon -> GPU kernel from component lmon -> GPU kernel from component hdiv_mon -> GPU kernel from component toflam -> GPU kernel from component Sample_axis -> GPU kernel from component Detector_arm -> GPU kernel from component sample -> GPU kernel from component col_mask -> GPU kernel from component rad2 -> GPU kernel from component MonNDXZ -> GPU kernel from component MonNDX -> GPU kernel from component MonNDY -> GPU kernel from component MonNDZ -> GPU kernel from component dhklmon -> GPU kernel from component psdtof -> GPU kernel from component psdtofDetail ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ESS_BEER_MCPL.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./ESS_BEER_MCPL.out ./ESS_BEER_MCPL.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 -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lmcpl -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./ESS_BEER_MCPL.c", line 4510: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ESS_BEER_MCPL.c", line 7943: warning: variable "drange" was set but never used [set_but_not_used] double a1,a2,drange; ^ "./ESS_BEER_MCPL.c", line 11982: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 11982: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 12009: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 12009: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12133: 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; ^ "./ESS_BEER_MCPL.c", line 12490: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_BEER_MCPL.c", line 13364: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ESS_BEER_MCPL.c", line 13428: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_BEER_MCPL.c", line 14425: warning: variable "line" was declared but never referenced [declared_but_not_referenced] char line[256]; ^ "./ESS_BEER_MCPL.c", line 14426: warning: variable "ncount" was declared but never referenced [declared_but_not_referenced] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16208: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16208: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16208: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16083: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16534: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_BEER_MCPL.c", line 16646: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ESS_BEER_MCPL.c", line 16647: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ESS_BEER_MCPL.c", line 16650: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ESS_BEER_MCPL.c", line 16653: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ESS_BEER_MCPL.c", line 16657: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ESS_BEER_MCPL.c", line 16659: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ESS_BEER_MCPL.c", line 16660: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ESS_BEER_MCPL.c", line 16661: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ESS_BEER_MCPL.c", line 16663: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ESS_BEER_MCPL.c", line 17651: warning: variable "iex" was declared but never referenced [declared_but_not_referenced] int iex=-1; ^ "./ESS_BEER_MCPL.c", line 21095: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_BEER_MCPL.c", line 21096: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_BEER_MCPL.c", line 1518: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_BEER_MCPL.c", line 2921: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 93, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 143, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 171, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 197, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 209, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 218, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 232, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1565, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1569, Generating acc routine seq Generating NVIDIA GPU code str_len: 1578, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4131, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4634, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4644, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4666, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4673, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4719, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4793, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4809, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4838, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4849, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4853, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5030, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5061, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5078, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5177, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5261, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5327, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5404, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5676, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5686, Generating acc routine seq Generating NVIDIA GPU code _hash: 5712, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5753, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5769, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5777, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5785, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5792, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6449, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6545, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6562, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6677, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6732, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7788, Generating acc routine seq Generating NVIDIA GPU code getNearestLine: 7904, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9317, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9385, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9464, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9932, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9948, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9966, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10963, Generating acc routine seq Generating NVIDIA GPU code off_F: 12090, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12095, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12105, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12131, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12194, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12325, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12370, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12487, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12605, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12617, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12652, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12903, Generating acc routine seq Generating NVIDIA GPU code merge: 12910, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13014, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13029, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13083, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13200, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13222, Generating acc routine seq Generating NVIDIA GPU code MXV: 13363, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 15817, Generating update device(tof,smi[:][:],filt) 15915, Generating update device(_MonNDZ_var,_sample_var,_xymon_var,_toflam_var,_instrument_var,_dhklmon_var,_src_var,_Origin_var,_rad2_var,_Sample_axis_var,_psdtof_var,_Detector_arm_var,_MonNDXZ_var,_MonNDX_var,_MonNDY_var,_col_mask_var,_psdtofDetail_var,_lmon_var,_hdiv_mon_var) class_Progress_bar_trace: 15956, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 16046, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16282, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 16353, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 16426, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 16509, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16598, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17088, Generating acc routine seq Generating NVIDIA GPU code class_Exact_radial_coll_trace: 17132, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17250, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_dhkl_detector_trace: 17540, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_theta_monitor_trace: 17814, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17922, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18323, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18337, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18323, Local memory used for .inl_particle_20997,particleN,.inl_.inl_mcneutron_0_21012,.inl_.X2397_21014,.inl_.inl_.X2605_15_21013 18337, Generating implicit firstprivate(seed,_particle) finally: 19932, Generating update self(_MonNDZ_var,_sample_var,_xymon_var,_toflam_var,_instrument_var,_dhklmon_var,_src_var,_Origin_var,_rad2_var,_Sample_axis_var,_psdtof_var,_Detector_arm_var,_MonNDXZ_var,_MonNDX_var,_MonNDY_var,_col_mask_var,_psdtofDetail_var,_lmon_var,_hdiv_mon_var) mcenabletrace: 5911, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcob1MgQapHc6iQ.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/ESS_BEER_MCPL/./ESS_BEER_MCPL.c:7513: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatLB3MgVx0PHhn5.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: ===