INFO: No output directory specified (--dir) INFO: Using directory: "Vin_test_20241118_000306" INFO: Regenerating c-file: Vin_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Vin_test.c Vin_test.instr Warning: 'Virtual_input' is an obsolete component (not maintained). CFLAGS= -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Vin is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Vin -> GPU kernel from component PSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Vin_test.out DEBUG: CMD: nvc -o ./Vin_test.out ./Vin_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./Vin_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 " "./Vin_test.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Vin_test.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Vin_test.c", line 8380: warning: variable "length" was declared but never referenced [declared_but_not_referenced] long length=0; ^ "./Vin_test.c", line 8595: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Vin_test.c", line 8583: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Vin_test.c", line 8636: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Vin_test.c", line 8694: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Vin_test.c", line 10505: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Vin_test.c", line 10506: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Vin_test.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Vin_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[: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: 7714, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7782, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7861, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8329, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8345, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8363, Generating acc routine seq Generating NVIDIA GPU code init: 9024, Generating update device(_PSD_var,_Origin_var,_instrument_var,_Vin_var) class_Progress_bar_trace: 9067, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 9389, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 9669, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9673, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9669, Local memory used for .inl_.inl_mcneutron_0_8344,.inl_particle_8329,.inl_.X1815_8346,.inl_.inl_.X2013_15_8345 9673, Generating implicit private(_particle,seed) 9683, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9688, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9683, Local memory used for _particle_save,.inl_c_8367,.inl_.inl_c_1909_8382,.inl_.inl_.inl_b_1894_1915_8387,.inl_.inl_.inl_.X1978_1893_1914_8386,.inl_.inl_b_1905_8381,.inl_.inl_c_1901_8375,.inl_.inl_.inl_.X1978_1893_1925_8397,.inl_.inl_.X1978_1899_8372,.inl_.inl_b_1900_8373,.inl_.X1962_8359,.inl_.inl_b_1916_8392,.inl_c_8356,.inl_.inl_.inl_b_1894_1926_8398,.inl_.inl_.X1962_1904_8376,.inl_a_8351,.inl_.X1960_8355,.inl_.X1961_8364,.inl_b_8365,.inl_.inl_c_1920_8393 9688, Generating implicit private(_particle) 9730, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9733, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9730, Local memory used for _particle_save,.inl_c_8469,.inl_.inl_c_1909_8484,.inl_.inl_.inl_b_1894_1915_8489,.inl_.inl_.inl_.X1978_1893_1914_8488,.inl_.inl_b_1905_8483,.inl_.inl_c_1901_8477,.inl_.inl_.inl_.X1978_1893_1925_8499,.inl_.inl_.X1978_1899_8474,.inl_.inl_b_1900_8475,.inl_.X1962_8461,.inl_.inl_b_1916_8494,.inl_c_8458,.inl_.inl_.inl_b_1894_1926_8500,.inl_.inl_.X1962_1904_8478,.inl_a_8453,.inl_.X1960_8457,.inl_.X1961_8466,.inl_b_8467,.inl_.inl_c_1920_8495 9733, Generating implicit private(_particle) finally: 10087, Generating update self(_PSD_var,_Origin_var,_Vin_var,_instrument_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===