INFO: No output directory specified (--dir) INFO: Using directory: "template_simple_20241123_063447" INFO: Regenerating c-file: template_simple.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./template_simple.c template_simple.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace finished INFO: Recompiling: ./template_simple.out DEBUG: CMD: nvc -o ./template_simple.out ./template_simple.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./template_simple.c", line 4476: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./template_simple.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./template_simple.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./template_simple.c", line 6985: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./template_simple.c", line 6973: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./template_simple.c", line 7843: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./template_simple.c", line 7844: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./template_simple.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./template_simple.c", line 2888: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 84, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 131, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 156, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 179, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 190, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 199, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 209, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1532, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1536, Generating acc routine seq Generating NVIDIA GPU code str_len: 1545, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4097, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4528, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4539, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4548, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4572, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4600, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4639, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4685, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4731, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4759, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4775, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4804, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4815, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4819, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4996, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5027, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5044, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5143, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5227, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5293, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5370, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5642, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5652, Generating acc routine seq Generating NVIDIA GPU code _hash: 5678, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5719, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5730, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5735, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5751, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5758, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6400, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6433, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6494, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6510, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6596, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code init: 7085, Generating update device(_origin_var,_instrument_var) class_Progress_bar_trace: 7126, Generating acc routine seq Generating NVIDIA GPU code raytrace: 7221, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 7297, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 7233, #pragma acc loop seq 7311, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 7297, Local memory used for .inl_.inl_mcphoton_0_6225,.inl_particle_6209,particleN,.inl__particle_save_6280,.inl_.inl_.X1846_2969_6242,.inl_.inl_c_2977_6250,.inl_.inl_.inl_c_1911_2992_6263,.inl_.inl_.inl_.inl_b_1896_1917__6268,.inl_.inl_.inl_.inl_.X1862_1895__6267,.inl_.inl_.inl_b_1907_2991_6262,.inl_.inl_.inl_c_1903_2985_6256,.inl_.inl_.inl_.inl_.X1862_1895__6278,.inl_.inl_.inl_.X1862_1901_2982_6254,.inl_.inl_.inl_b_1902_2983_6255,.inl_.inl_.X1896_13_6226,.inl_.inl_.inl_b_1918_3002_6273,.inl_.inl_c_2966_6241,.inl_.inl_.inl_.inl_b_1896_1928__6279,.inl_.inl_.inl_.X1846_1906_2986_6257,.inl_.inl_a_2961_6239,.inl_.inl_.X1844_2965_6240,.inl_.inl_.X1845_2974_6246,.inl_.inl_b_2975_6249,.inl_.X1708_6227,.inl_.inl_.inl_c_1922_3003_6274 7311, Generating implicit firstprivate(seed,_particle) 7233, Complex loop carried dependence of _particle->flag_nocoordschange,_particle->x,_particle->y,_particle->z,_particle->,_particle+->,->,_particle->kz,_particle->kx,_particle->ky,_particle->Ez,_particle->Ex,_particle->Ey,_particle->_absorbed,_particle->_index prevents parallelization Scalar last value needed after loop for .inl__particle_save_6280 at line 7261 Complex loop carried dependence of _particle->phi,_particle->t,_particle->p,_particle->_restore,_particle->_scattered prevents parallelization finally: 7566, Generating update self(_origin_var,_instrument_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatMeZsfYUJR6mlV.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===