INFO: No output directory specified (--dir) INFO: Using directory: "ESS_BEER_MCPL_20241206_084810" INFO: Regenerating c-file: ESS_BEER_MCPL.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ESS_BEER_MCPL.c ESS_BEER_MCPL.instr Downloading file 'mcstas-comps/misc/MCPL_input.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/misc/MCPL_input.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/L_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/L_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/Div1D_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/Div1D_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/TOFLambda_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/TOFLambda_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/samples/PowderN.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/samples/PowderN.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/Exact_radial_coll.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/Exact_radial_coll.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/Monitor_nD.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/Monitor_nD.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/NPI_tof_dhkl_detector.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/NPI_tof_dhkl_detector.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/NPI_tof_theta_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/NPI_tof_theta_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'common/lib/share/interoff-lib.h' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/common/lib/share/interoff-lib.h' to '/home/nexmap/pkwi/.cache/libc/v3.5.14'. 2024-12-06 08:48:18.938 | 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-06 08:48:18.939 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 08:48:18.939 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-06 08:48:18.939 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib Downloading file 'common/lib/share/interoff-lib.c' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/common/lib/share/interoff-lib.c' to '/home/nexmap/pkwi/.cache/libc/v3.5.14'. 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 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 -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 4509: 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 7942: warning: variable "drange" was set but never used [set_but_not_used] double a1,a2,drange; ^ "./ESS_BEER_MCPL.c", line 11966: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 11966: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 11993: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 11993: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 12117: 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 12117: 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 12117: 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 12117: 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 12117: 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 12117: 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 12474: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_BEER_MCPL.c", line 13348: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ESS_BEER_MCPL.c", line 13412: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_BEER_MCPL.c", line 14409: warning: variable "line" was declared but never referenced [declared_but_not_referenced] char line[256]; ^ "./ESS_BEER_MCPL.c", line 14410: warning: variable "ncount" was declared but never referenced [declared_but_not_referenced] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16192: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16192: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16192: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16067: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16518: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_BEER_MCPL.c", line 16630: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ESS_BEER_MCPL.c", line 16631: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ESS_BEER_MCPL.c", line 16634: 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 16637: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ESS_BEER_MCPL.c", line 16641: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ESS_BEER_MCPL.c", line 16643: 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 16644: 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 16645: 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 16647: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ESS_BEER_MCPL.c", line 17635: warning: variable "iex" was declared but never referenced [declared_but_not_referenced] int iex=-1; ^ "./ESS_BEER_MCPL.c", line 21079: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_BEER_MCPL.c", line 21080: 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: 4130, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4572, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4665, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4672, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4718, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4792, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4808, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4837, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4848, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4852, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5029, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5060, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5077, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5176, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5260, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5326, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5403, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5675, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5685, Generating acc routine seq Generating NVIDIA GPU code _hash: 5711, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5752, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5763, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5768, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5776, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5784, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5791, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6448, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6544, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6561, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6676, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6731, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7787, Generating acc routine seq Generating NVIDIA GPU code getNearestLine: 7903, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9316, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9384, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9463, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9931, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9947, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9965, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10962, Generating acc routine seq Generating NVIDIA GPU code off_F: 12074, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12079, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12089, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12115, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12178, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12309, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12354, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12471, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12589, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12601, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12636, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12887, Generating acc routine seq Generating NVIDIA GPU code merge: 12894, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12998, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13013, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13067, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13184, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13206, Generating acc routine seq Generating NVIDIA GPU code MXV: 13347, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 15801, Generating update device(tof,smi[:][:],filt) 15899, 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: 15940, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 16030, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16266, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 16337, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 16410, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 16493, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16582, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17072, Generating acc routine seq Generating NVIDIA GPU code class_Exact_radial_coll_trace: 17116, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17234, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_dhkl_detector_trace: 17524, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_theta_monitor_trace: 17798, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17906, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18307, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18321, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18307, Local memory used for .inl_particle_20997,particleN,.inl_.inl_mcneutron_0_21012,.inl_.X2397_21014,.inl_.inl_.X2605_15_21013 18321, Generating implicit firstprivate(seed,_particle) finally: 19916, 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: 5910, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcZFnsmzL3kck63.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/ESS_BEER_MCPL/./ESS_BEER_MCPL.c:7512: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===