INFO: No output directory specified (--dir) INFO: Using directory: "Histogrammer_20240919_034302" INFO: Regenerating c-file: Histogrammer.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Histogrammer.c Histogrammer.instr Warning: 'Virtual_input' is an obsolete component (not maintained). CFLAGS= -DFUNNEL -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Virtualinput is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Virtualinput -> GPU kernel from component MCPLinput ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Histogrammer.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./Histogrammer.out ./Histogrammer.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL -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 "./Histogrammer.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Histogrammer.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Histogrammer.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Histogrammer.c", line 8390: warning: variable "length" was declared but never referenced [declared_but_not_referenced] long length=0; ^ "./Histogrammer.c", line 10594: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Histogrammer.c", line 10594: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Histogrammer.c", line 10621: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Histogrammer.c", line 10621: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 10949: 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; ^ "./Histogrammer.c", line 11306: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Histogrammer.c", line 12442: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Histogrammer.c", line 12430: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Histogrammer.c", line 12483: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Histogrammer.c", line 12541: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Histogrammer.c", line 12605: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Histogrammer.c", line 12926: warning: variable "line" was declared but never referenced [declared_but_not_referenced] char line[256]; ^ "./Histogrammer.c", line 12927: warning: variable "ncount" was declared but never referenced [declared_but_not_referenced] long long ncount; ^ "./Histogrammer.c", line 13903: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13903: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13903: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13778: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./Histogrammer.c", line 15657: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Histogrammer.c", line 15658: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Histogrammer.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Histogrammer.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4864, Generating present(particles[:],pbuffer[:]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4871, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4880, #pragma acc loop seq 4864, Generating implicit copy(lens[:]) [if not already present] 4871, Generating implicit firstprivate(ll,l) 4882, Accelerator restriction: induction variable live-out from loop: i 4883, Accelerator restriction: induction variable live-out from loop: i 4884, Accelerator restriction: induction variable live-out from loop: i 4885, Accelerator restriction: induction variable live-out from loop: i 4887, Accelerator restriction: induction variable live-out from loop: j 4888, Accelerator restriction: induction variable live-out from loop: j 4889, Accelerator restriction: induction variable live-out from loop: j 4890, Accelerator restriction: induction variable live-out from loop: j 4912, Generating present(pbuffer[:]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4916, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4919, #pragma acc loop seq 4912, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 4919, Generating implicit firstprivate(l) 4936, Generating present(particles[:]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 4940, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4947, #pragma acc loop seq 4936, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7724, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7792, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7871, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8339, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8355, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8373, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9590, Generating acc routine seq Generating NVIDIA GPU code off_F: 10906, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10911, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10921, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10947, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11010, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11141, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11186, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11303, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11421, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11433, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11468, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11719, Generating acc routine seq Generating NVIDIA GPU code merge: 11726, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11830, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11845, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11899, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12016, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12038, Generating acc routine seq Generating NVIDIA GPU code init: 13374, Generating update device(_Monitor_var,_Origin_var,_MCPLinput_var,_instrument_var,_Virtualinput_var) class_Progress_bar_trace: 13419, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 13741, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13977, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 14492, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14496, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14492, Local memory used for .inl_particle_12021,.inl_.inl_mcneutron_0_12036,.inl_.X2062_12038,.inl_.inl_.X2267_15_12037 14496, Generating implicit private(_particle,seed) 14506, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14511, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14506, Local memory used for .inl_c_12059,_particle_save,.inl_.inl_c_1909_12074,.inl_.inl_.inl_b_1894_1915_12079,.inl_.inl_.inl_.X2232_1893_1914_12078,.inl_.inl_b_1905_12073,.inl_.inl_c_1901_12067,.inl_.inl_.inl_.X2232_1893_1925_12089,.inl_.inl_.X2232_1899_12064,.inl_.inl_b_1900_12065,.inl_.X2216_12051,.inl_.inl_b_1916_12084,.inl_c_12048,.inl_.inl_.inl_b_1894_1926_12090,.inl_.inl_.X2216_1904_12068,.inl_a_12043,.inl_.X2214_12047,.inl_.X2215_12056,.inl_b_12057,.inl_.inl_c_1920_12085 14511, Generating implicit private(_particle) 14547, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14550, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14547, Local memory used for .inl_.inl_c_1920_12187,.inl_.inl_.inl_b_1894_1926_12192,.inl_.inl_.inl_.X2232_1893_1925_12191,.inl_.inl_b_1916_12186,.inl_.inl_c_1909_12176,.inl_.inl_.inl_b_1894_1915_12181,.inl_.inl_.inl_.X2232_1893_1914_12180,.inl_.inl_b_1905_12175,.inl_.inl_.X2216_1904_12170,.inl_.inl_c_1901_12169,.inl_c_12200,.inl_.inl_b_1900_12167,.inl_.inl_.X2232_1899_12166,.inl_b_12159,.inl_.X2215_12158,.inl_.X2216_12153,.inl_c_12161,.inl_.X2214_12149,.inl_a_12145,_particle_save,.inl_c_12211,.inl_.inl_c_1909_12226,.inl_.inl_.inl_b_1894_1915_12231,.inl_.inl_.inl_.X2232_1893_1914_12230,.inl_.inl_b_1905_12225,.inl_.inl_c_1901_12219,.inl_.inl_.inl_.X2232_1893_1925_12241,.inl_.inl_.X2232_1899_12216,.inl_.inl_b_1900_12217,.inl_.X2216_12203,.inl_.inl_b_1916_12236,.inl_c_12150,.inl_.inl_.inl_b_1894_1926_12242,.inl_.inl_.X2216_1904_12220,.inl_a_12195,.inl_.X2214_12199,.inl_.X2215_12208,.inl_b_12209,.inl_.inl_c_1920_12237 14550, Generating implicit firstprivate(file_mode,_particle) finally: 15128, Generating update self(_Monitor_var,_Origin_var,_MCPLinput_var,_instrument_var,_Virtualinput_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===