INFO: No output directory specified (--dir) INFO: Using directory: "ESS_BEER_MCPL_20241124_000323" INFO: Regenerating c-file: ESS_BEER_MCPL.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ESS_BEER_MCPL.c ESS_BEER_MCPL.instr Info: 'Exact_radial_coll' is a contributed component. Info: 'NPI_tof_dhkl_detector' is a contributed component. Info: 'NPI_tof_theta_monitor' is a contributed component. CFLAGS= -DMCPLPATH=GETPATH(data) -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) WARNING: The parameter format of sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ESS_BEER_MCPL.out --> pointing path data to /u/data/pkwi/McStas/mcstas/3.x-dev/data --> 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 -DMCPLPATH=/u/data/pkwi/McStas/mcstas/3.x-dev/data -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 4511: 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 8723: 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 8723: 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 8723: 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 8723: 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 8723: 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 8723: 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 9080: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_BEER_MCPL.c", line 12546: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 12546: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_BEER_MCPL.c", line 12573: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 12573: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_BEER_MCPL.c", line 12715: warning: variable "drange" was set but never used [set_but_not_used] double a1,a2,drange; ^ "./ESS_BEER_MCPL.c", line 13368: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ESS_BEER_MCPL.c", line 13436: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_BEER_MCPL.c", line 13424: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESS_BEER_MCPL.c", line 13477: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESS_BEER_MCPL.c", line 13541: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESS_BEER_MCPL.c", line 13606: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESS_BEER_MCPL.c", line 13672: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESS_BEER_MCPL.c", line 13738: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESS_BEER_MCPL.c", line 13807: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESS_BEER_MCPL.c", line 13856: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESS_BEER_MCPL.c", line 13905: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESS_BEER_MCPL.c", line 13998: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESS_BEER_MCPL.c", line 14056: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESS_BEER_MCPL.c", line 14116: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESS_BEER_MCPL.c", line 14218: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESS_BEER_MCPL.c", line 14320: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESS_BEER_MCPL.c", line 14422: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESS_BEER_MCPL.c", line 14524: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESS_BEER_MCPL.c", line 14607: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESS_BEER_MCPL.c", line 14672: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESS_BEER_MCPL.c", line 14809: warning: variable "line" was declared but never referenced [declared_but_not_referenced] char line[256]; ^ "./ESS_BEER_MCPL.c", line 14810: warning: variable "ncount" was declared but never referenced [declared_but_not_referenced] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16615: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16615: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16615: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_BEER_MCPL.c", line 16490: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./ESS_BEER_MCPL.c", line 16941: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_BEER_MCPL.c", line 17052: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ESS_BEER_MCPL.c", line 17053: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ESS_BEER_MCPL.c", line 17056: 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 17059: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ESS_BEER_MCPL.c", line 17063: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ESS_BEER_MCPL.c", line 17065: 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 17066: 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 17067: 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 17069: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ESS_BEER_MCPL.c", line 18057: warning: variable "iex" was declared but never referenced [declared_but_not_referenced] int iex=-1; ^ "./ESS_BEER_MCPL.c", line 21594: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_BEER_MCPL.c", line 21595: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_BEER_MCPL.c", line 1520: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_BEER_MCPL.c", line 2923: 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: 208, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 217, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 231, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1567, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1571, Generating acc routine seq Generating NVIDIA GPU code str_len: 1580, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4132, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4667, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4674, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4755, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4783, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4810, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4839, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4850, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4854, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5031, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5062, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5079, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5178, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5262, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5328, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5405, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5677, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5687, Generating acc routine seq Generating NVIDIA GPU code _hash: 5713, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5754, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5770, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5778, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5786, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5793, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6452, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6488, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6548, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6565, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6680, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6735, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7777, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7845, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7924, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8392, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8408, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8426, Generating acc routine seq Generating NVIDIA GPU code off_F: 8680, Generating acc routine seq Generating NVIDIA GPU code off_sign: 8685, Generating acc routine seq Generating NVIDIA GPU code off_normal: 8695, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 8721, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 8784, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 8915, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 8960, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9077, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9195, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9207, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9242, Generating acc routine seq Generating NVIDIA GPU code Min_int: 9493, Generating acc routine seq Generating NVIDIA GPU code merge: 9500, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 9604, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 9619, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 9673, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 9790, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 9812, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 10303, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11542, Generating acc routine seq Generating NVIDIA GPU code getNearestLine: 12676, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code MXV: 13367, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 16203, Generating update device(tof,smi[:][:],filt) 16320, 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: 16363, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 16453, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16689, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 16760, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 16833, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 16916, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 17004, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 17494, Generating acc routine seq Generating NVIDIA GPU code class_Exact_radial_coll_trace: 17538, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17656, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_dhkl_detector_trace: 17946, Generating acc routine seq Generating NVIDIA GPU code class_NPI_tof_theta_monitor_trace: 18220, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18327, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18728, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18742, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18728, Local memory used for .inl_particle_21040,particleN,.inl_.inl_mcneutron_0_21055,.inl_.X2389_21057,.inl_.inl_.X2597_15_21056 18742, Generating implicit firstprivate(seed,_particle) finally: 20364, 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: 5912, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvckgNogEBJMlHTV.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-24/McStas_8GPU_openacc_1e7_Linux_1e7/ESS_BEER_MCPL/./ESS_BEER_MCPL.c:10028: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===