INFO: No output directory specified (--dir) INFO: Using directory: "Test_undulator_20240701_133321" INFO: Regenerating c-file: Test_undulator.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_undulator.c /home/nexmap/pkwi/xTESTS/2024-07-01/McXtrace_8GPU_Linux_5e6/Test_undulator/Test_undulator.instr CFLAGS= @GSLFLAGS@ -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component src1 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component src1 -> GPU kernel from component e_monitor ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace finished INFO: Recompiling: ./Test_undulator.out --> pointing path miniconda3/lib to /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib --> pointing path miniconda3/lib to /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib --> pointing path miniconda3/include to /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include DEBUG: CMD: nvc -o ./Test_undulator.out ./Test_undulator.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 -Wl,-rpath,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -DFUNNEL "./Test_undulator.c", line 4258: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_undulator.c", line 4713: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Test_undulator.c", line 4632: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_undulator.c", line 6373: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_undulator.c", line 6546: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./Test_undulator.c", line 7004: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_undulator.c", line 6992: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_undulator.c", line 7034: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_undulator.c", line 7096: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_undulator.c", line 7146: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_undulator.c", line 7198: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_undulator.c", line 7249: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_undulator.c", line 7299: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_undulator.c", line 7571: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_undulator.c", line 7626: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_undulator.c", line 7626: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_undulator.c", line 7627: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 7627: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 7627: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 7965: warning: variable "l" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./Test_undulator.c", line 7965: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./Test_undulator.c", line 8241: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_undulator.c", line 8242: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_undulator.c", line 9763: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_undulator.c", line 9764: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_undulator.c", line 1480: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_undulator.c", line 2872: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 81, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 95, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 128, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 176, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 187, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 196, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 206, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1520, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1524, Generating acc routine seq Generating NVIDIA GPU code str_len: 1533, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 3880, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4310, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4321, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4330, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4342, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4354, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4364, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4374, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4382, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4392, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4414, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4421, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4467, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4502, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4513, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4530, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4541, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4557, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4586, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4597, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4601, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4636, Generating present(particles[:],pbuffer[:]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4643, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4652, #pragma acc loop seq 4636, Generating implicit copy(lens[:]) [if not already present] 4643, Generating implicit firstprivate(ll,l) 4654, Accelerator restriction: induction variable live-out from loop: i 4655, Accelerator restriction: induction variable live-out from loop: i 4656, Accelerator restriction: induction variable live-out from loop: i 4657, Accelerator restriction: induction variable live-out from loop: i 4659, Accelerator restriction: induction variable live-out from loop: j 4660, Accelerator restriction: induction variable live-out from loop: j 4661, Accelerator restriction: induction variable live-out from loop: j 4662, Accelerator restriction: induction variable live-out from loop: j 4684, Generating present(pbuffer[:]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4688, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4691, #pragma acc loop seq 4684, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 4691, Generating implicit firstprivate(l) 4708, Generating present(particles[:]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 4712, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4719, #pragma acc loop seq 4708, Local memory used for targetbuffer,sourcebuffer mccoordschange: 4778, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 4809, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 4826, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 4925, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5009, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5075, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5152, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5424, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5434, Generating acc routine seq Generating NVIDIA GPU code _hash: 5460, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5501, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5512, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5517, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5525, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5533, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5540, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6174, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6207, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6268, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6284, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6370, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6438, Generating acc routine seq Generating NVIDIA GPU code init: 7784, Generating update device(_src1_var,_slit_var,_e_monitor1_var,_psd_monitor1_var,_psd_monitor_var,_Origin_var,_instrument_var,_e_monitor_var) class_Progress_bar_trace: 7827, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 8139, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 8221, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 8319, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 8682, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8686, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8682, Local memory used for .inl_particle_9037,.inl_.inl_mcphoton_0_9053,.inl_.X1964_9055,.inl_.inl_.X2155_13_9054 8686, Generating implicit firstprivate(seed,_particle) 8696, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8701, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8696, Local memory used for _particle_save,.inl_c_9076,.inl_.inl_c_1910_9091,.inl_.inl_.inl_b_1895_1916_9096,.inl_.inl_.inl_.X2120_1894_1915_9095,.inl_.inl_b_1906_9090,.inl_.inl_c_1902_9084,.inl_.inl_.inl_.X2120_1894_1926_9106,.inl_.inl_.X2120_1900_9081,.inl_.inl_b_1901_9082,.inl_.X2104_9068,.inl_.inl_b_1917_9101,.inl_c_9065,.inl_.inl_.inl_b_1895_1927_9107,.inl_.inl_.X2104_1905_9085,.inl_a_9060,.inl_.X2102_9064,.inl_.X2103_9073,.inl_b_9074,.inl_.inl_c_1921_9102 8701, Generating implicit private(_particle) 8736, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8739, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8736, Local memory used for .inl_.inl_c_1921_9375,.inl_.inl_.inl_b_1895_1927_9380,.inl_.inl_.inl_.X2120_1894_1926_9379,.inl_.inl_b_1917_9374,.inl_.inl_c_1910_9364,.inl_.inl_.inl_b_1895_1916_9369,.inl_.inl_.inl_.X2120_1894_1915_9368,.inl_.inl_b_1906_9363,.inl_.inl_.X2104_1905_9358,.inl_.inl_c_1902_9357,.inl_c_9409,.inl_.inl_b_1901_9355,.inl_.inl_.X2120_1900_9354,.inl_b_9347,.inl_.X2103_9346,.inl_.X2104_9341,.inl_c_9349,.inl_.X2102_9337,.inl_a_9333,.inl_.inl_c_1921_9325,.inl_.inl_.inl_b_1895_1927_9330,.inl_.inl_.inl_.X2120_1894_1926_9329,.inl_.inl_b_1917_9324,.inl_.inl_c_1910_9314,.inl_.inl_.inl_b_1895_1916_9319,.inl_.inl_.inl_.X2120_1894_1915_9318,.inl_.inl_b_1906_9313,.inl_.inl_.X2104_1905_9308,.inl_.inl_c_1902_9307,.inl_c_9338,.inl_.inl_b_1901_9305,.inl_.inl_.X2120_1900_9304,.inl_b_9297,.inl_.X2103_9296,.inl_.X2104_9291,.inl_c_9299,.inl_.X2102_9287,.inl_a_9283,.inl_.inl_c_1921_9275,.inl_.inl_.inl_b_1895_1927_9280,.inl_.inl_.inl_.X2120_1894_1926_9279,.inl_.inl_b_1917_9274,.inl_.inl_c_1910_9264,.inl_.inl_.inl_b_1895_1916_9269,.inl_.inl_.inl_.X2120_1894_1915_9268,.inl_.inl_b_1906_9263,.inl_.inl_.X2104_1905_9258,.inl_.inl_c_1902_9257,.inl_c_9288,.inl_.inl_b_1901_9255,.inl_.inl_.X2120_1900_9254,.inl_b_9247,.inl_.X2103_9246,.inl_.X2104_9241,.inl_c_9249,.inl_.X2102_9237,.inl_a_9233,.inl_.inl_c_1921_9204,.inl_.inl_.inl_b_1895_1927_9209,.inl_.inl_.inl_.X2120_1894_1926_9208,.inl_.inl_b_1917_9203,.inl_.inl_c_1910_9193,.inl_.inl_.inl_b_1895_1916_9198,.inl_.inl_.inl_.X2120_1894_1915_9197,.inl_.inl_b_1906_9192,.inl_.inl_.X2104_1905_9187,.inl_.inl_c_1902_9186,.inl_c_9238,.inl_.inl_b_1901_9184,.inl_.inl_.X2120_1900_9183,.inl_b_9176,.inl_.X2103_9175,.inl_.X2104_9170,.inl_c_9178,.inl_.X2102_9166,.inl_a_9162,_particle_save,.inl_c_9420,.inl_.inl_c_1910_9435,.inl_.inl_.inl_b_1895_1916_9440,.inl_.inl_.inl_.X2120_1894_1915_9439,.inl_.inl_b_1906_9434,.inl_.inl_c_1902_9428,.inl_.inl_.inl_.X2120_1894_1926_9450,.inl_.inl_.X2120_1900_9425,.inl_.inl_b_1901_9426,.inl_.X2104_9412,.inl_.inl_b_1917_9445,.inl_c_9167,.inl_.inl_.inl_b_1895_1927_9451,.inl_.inl_.X2104_1905_9429,.inl_a_9404,.inl_.X2102_9408,.inl_.X2103_9417,.inl_b_9418,.inl_.inl_c_1921_9446 8739, Generating implicit private(_particle) finally: 9205, Generating update self(_src1_var,_slit_var,_e_monitor1_var,_psd_monitor1_var,_psd_monitor_var,_Origin_var,_instrument_var,_e_monitor_var) mcenabletrace: 5656, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatMzrdcYiGe6AaA.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: ===