INFO: No output directory specified (--dir) INFO: Using directory: "Vout_test_20240919_000318" INFO: Regenerating c-file: Vout_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Vout_test.c Vout_test.instr Warning: 'Virtual_output' is an obsolete component (not maintained). CFLAGS= -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Vout is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Vout -> GPU kernel from component PSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Vout_test.out DEBUG: CMD: nvc -o ./Vout_test.out ./Vout_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./Vout_test.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 " "./Vout_test.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Vout_test.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Vout_test.c", line 8994: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Vout_test.c", line 8994: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Vout_test.c", line 9021: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Vout_test.c", line 9021: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Vout_test.c", line 9279: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Vout_test.c", line 9267: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Vout_test.c", line 9320: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Vout_test.c", line 9384: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Vout_test.c", line 9440: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Vout_test.c", line 10009: warning: variable "pp" was set but never used [set_but_not_used] double pp=0; ^ "./Vout_test.c", line 11125: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Vout_test.c", line 11126: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Vout_test.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Vout_test.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 Monitor_nD_Trace: 7990, Generating acc routine seq Generating NVIDIA GPU code init: 9764, Generating update device(_PSD_var,_Src_var,_Origin_var,_instrument_var,_Vout_var) class_Progress_bar_trace: 9809, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 9899, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 10051, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 10345, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 10349, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 10345, Local memory used for .inl_particle_8335,.inl_.inl_mcneutron_0_8350,.inl_.X1933_8352,.inl_.inl_.X2125_15_8351 10349, Generating implicit private(_particle,seed) 10359, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 10364, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 10359, Local memory used for .inl_.inl_c_1920_8399,.inl_.inl_.inl_b_1894_1926_8404,.inl_.inl_.inl_.X2090_1893_1925_8403,.inl_.inl_b_1916_8398,.inl_.inl_c_1909_8388,.inl_.inl_.inl_b_1894_1915_8393,.inl_.inl_.inl_.X2090_1893_1914_8392,.inl_.inl_b_1905_8387,.inl_.inl_.X2074_1904_8382,.inl_.inl_c_1901_8381,.inl_c_8414,.inl_.inl_b_1900_8379,.inl_.inl_.X2090_1899_8378,.inl_b_8371,.inl_.X2073_8370,.inl_.X2074_8365,.inl_c_8373,.inl_.X2072_8361,.inl_a_8357,_particle_save,.inl_c_8425,.inl_.inl_c_1909_8440,.inl_.inl_.inl_b_1894_1915_8445,.inl_.inl_.inl_.X2090_1893_1914_8444,.inl_.inl_b_1905_8439,.inl_.inl_c_1901_8433,.inl_.inl_.inl_.X2090_1893_1925_8455,.inl_.inl_.X2090_1899_8430,.inl_.inl_b_1900_8431,.inl_.X2074_8417,.inl_.inl_b_1916_8450,.inl_c_8362,.inl_.inl_.inl_b_1894_1926_8456,.inl_.inl_.X2074_1904_8434,.inl_a_8409,.inl_.X2072_8413,.inl_.X2073_8422,.inl_b_8423,.inl_.inl_c_1920_8451 10364, Generating implicit private(_particle) 10412, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 10415, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 10412, Local memory used for _particle_save,.inl_c_8528,.inl_.inl_c_1909_8543,.inl_.inl_.inl_b_1894_1915_8548,.inl_.inl_.inl_.X2090_1893_1914_8547,.inl_.inl_b_1905_8542,.inl_.inl_c_1901_8536,.inl_.inl_.inl_.X2090_1893_1925_8558,.inl_.inl_.X2090_1899_8533,.inl_.inl_b_1900_8534,.inl_.X2074_8520,.inl_.inl_b_1916_8553,.inl_c_8517,.inl_.inl_.inl_b_1894_1926_8559,.inl_.inl_.X2074_1904_8537,.inl_a_8512,.inl_.X2072_8516,.inl_.X2073_8525,.inl_b_8526,.inl_.inl_c_1920_8554 10415, Generating implicit private(_particle) finally: 10713, Generating update self(_PSD_var,_Src_var,_Origin_var,_instrument_var,_Vout_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===