INFO: No output directory specified (--dir) INFO: Using directory: "Histogrammer_20241118_090334" 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 -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/include -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 3700: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Histogrammer.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./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 13404: warning: incompatible redefinition of macro "exit" (declared at line 602) [bad_macro_redef] #define exit(...) noprintf() ^ "./Histogrammer.c", line 13901: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13901: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13901: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./Histogrammer.c", line 13776: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./Histogrammer.c", line 15671: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Histogrammer.c", line 15672: 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[:buffer_len],pbuffer[:buffer_len]) 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[:buffer_len]) 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[:buffer_len]) 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: 13417, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 13739, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13975, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 14497, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14501, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14497, Local memory used for .inl_.inl_mcneutron_0_12176,.inl_particle_12161,.inl_.X2186_12178,.inl_.inl_.X2410_15_12177 14501, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) 14511, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14516, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14511, Local memory used for _particle_save,.inl_c_12199,.inl_.inl_c_1963_12214,.inl_.inl_.inl_b_1948_1969_12219,.inl_.inl_.inl_.X2375_1947_1968_12218,.inl_.inl_b_1959_12213,.inl_.inl_c_1955_12207,.inl_.inl_.inl_.X2375_1947_1979_12229,.inl_.inl_.X2375_1953_12204,.inl_.inl_b_1954_12205,.inl_.X2359_12191,.inl_.inl_b_1970_12224,.inl_c_12188,.inl_.inl_.inl_b_1948_1980_12230,.inl_.inl_.X2359_1958_12208,.inl_a_12183,.inl_.X2357_12187,.inl_.X2358_12196,.inl_b_12197,.inl_.inl_c_1974_12225 14516, Generating implicit private(_particle) 14559, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 14562, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 14559, Local memory used for .inl_.inl_c_1974_12327,.inl_.inl_.inl_b_1948_1980_12332,.inl_.inl_.inl_.X2375_1947_1979_12331,.inl_.inl_b_1970_12326,.inl_.inl_c_1963_12316,.inl_.inl_.inl_b_1948_1969_12321,.inl_.inl_.inl_.X2375_1947_1968_12320,.inl_.inl_b_1959_12315,.inl_.inl_.X2359_1958_12310,.inl_.inl_c_1955_12309,.inl_c_12340,.inl_.inl_b_1954_12307,.inl_.inl_.X2375_1953_12306,.inl_b_12299,.inl_.X2358_12298,.inl_.X2359_12293,.inl_c_12301,.inl_.X2357_12289,.inl_a_12285,_particle_save,.inl_c_12351,.inl_.inl_c_1963_12366,.inl_.inl_.inl_b_1948_1969_12371,.inl_.inl_.inl_.X2375_1947_1968_12370,.inl_.inl_b_1959_12365,.inl_.inl_c_1955_12359,.inl_.inl_.inl_.X2375_1947_1979_12381,.inl_.inl_.X2375_1953_12356,.inl_.inl_b_1954_12357,.inl_.X2359_12343,.inl_.inl_b_1970_12376,.inl_c_12290,.inl_.inl_.inl_b_1948_1980_12382,.inl_.inl_.X2359_1958_12360,.inl_a_12335,.inl_.X2357_12339,.inl_.X2358_12348,.inl_b_12349,.inl_.inl_c_1974_12377 14562, Generating implicit firstprivate(file_mode,_particle) finally: 15142, Generating update self(_Monitor_var,_Origin_var,_MCPLinput_var,_instrument_var,_Virtualinput_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===