INFO: No output directory specified (--dir) INFO: Using directory: "Test_undulator_20241121_065800" INFO: Regenerating c-file: Test_undulator.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_undulator.c 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 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 " "./Test_undulator.c", line 4931: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Test_undulator.c", line 4850: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_undulator.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_undulator.c", line 6772: 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 7230: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_undulator.c", line 7218: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_undulator.c", line 7271: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_undulator.c", line 7344: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_undulator.c", line 7405: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_undulator.c", line 7468: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_undulator.c", line 7530: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_undulator.c", line 7591: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_undulator.c", line 7874: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_undulator.c", line 7929: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_undulator.c", line 7929: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_undulator.c", line 7930: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 7930: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 7930: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_undulator.c", line 8259: warning: variable "l" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./Test_undulator.c", line 8259: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./Test_undulator.c", line 8521: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_undulator.c", line 8522: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_undulator.c", line 10054: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_undulator.c", line 10055: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_undulator.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_undulator.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 sort_absorb_last: 4854, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4861, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4870, #pragma acc loop seq 4854, Generating implicit copy(lens[:]) [if not already present] 4861, Generating implicit firstprivate(ll,l) 4872, Accelerator restriction: induction variable live-out from loop: i 4873, Accelerator restriction: induction variable live-out from loop: i 4874, Accelerator restriction: induction variable live-out from loop: i 4875, Accelerator restriction: induction variable live-out from loop: i 4877, Accelerator restriction: induction variable live-out from loop: j 4878, Accelerator restriction: induction variable live-out from loop: j 4879, Accelerator restriction: induction variable live-out from loop: j 4880, Accelerator restriction: induction variable live-out from loop: j 4902, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4906, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4909, #pragma acc loop seq 4902, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 4909, Generating implicit firstprivate(l) 4926, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 4930, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4937, #pragma acc loop seq 4926, Local memory used for targetbuffer,sourcebuffer 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: 8087, 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: 8128, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 8426, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 8501, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 8592, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 8955, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8959, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8955, Local memory used for .inl_particle_9160,.inl_.inl_mcphoton_0_9176,.inl_.X1967_9178,.inl_.inl_.X2159_13_9177 8959, Generating implicit firstprivate(seed,_particle) 8969, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8974, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8969, Local memory used for _particle_save,.inl_c_9199,.inl_.inl_c_1916_9214,.inl_.inl_.inl_b_1901_1922_9219,.inl_.inl_.inl_.X2124_1900_1921_9218,.inl_.inl_b_1912_9213,.inl_.inl_c_1908_9207,.inl_.inl_.inl_.X2124_1900_1932_9229,.inl_.inl_.X2124_1906_9204,.inl_.inl_b_1907_9205,.inl_.X2108_9191,.inl_.inl_b_1923_9224,.inl_c_9188,.inl_.inl_.inl_b_1901_1933_9230,.inl_.inl_.X2108_1911_9208,.inl_a_9183,.inl_.X2106_9187,.inl_.X2107_9196,.inl_b_9197,.inl_.inl_c_1927_9225 8974, Generating implicit private(_particle) 9016, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9019, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9016, Local memory used for .inl_.inl_c_1927_9564,.inl_.inl_.inl_b_1901_1933_9569,.inl_.inl_.inl_.X2124_1900_1932_9568,.inl_.inl_b_1923_9563,.inl_.inl_c_1916_9553,.inl_.inl_.inl_b_1901_1922_9558,.inl_.inl_.inl_.X2124_1900_1921_9557,.inl_.inl_b_1912_9552,.inl_.inl_.X2108_1911_9547,.inl_.inl_c_1908_9546,.inl_c_9598,.inl_.inl_b_1907_9544,.inl_.inl_.X2124_1906_9543,.inl_b_9536,.inl_.X2107_9535,.inl_.X2108_9530,.inl_c_9538,.inl_.X2106_9526,.inl_a_9522,.inl_.inl_c_1927_9471,.inl_.inl_.inl_b_1901_1933_9476,.inl_.inl_.inl_.X2124_1900_1932_9475,.inl_.inl_b_1923_9470,.inl_.inl_c_1916_9460,.inl_.inl_.inl_b_1901_1922_9465,.inl_.inl_.inl_.X2124_1900_1921_9464,.inl_.inl_b_1912_9459,.inl_.inl_.X2108_1911_9454,.inl_.inl_c_1908_9453,.inl_c_9527,.inl_.inl_b_1907_9451,.inl_.inl_.X2124_1906_9450,.inl_b_9443,.inl_.X2107_9442,.inl_.X2108_9437,.inl_c_9445,.inl_.X2106_9433,.inl_a_9429,.inl_.X2108_9601,.inl_.inl_c_1927_9398,.inl_.inl_.inl_b_1901_1933_9403,.inl_.inl_.inl_.X2124_1900_1932_9402,.inl_.inl_b_1923_9397,.inl_.inl_c_1916_9387,.inl_.inl_.inl_b_1901_1922_9392,.inl_.inl_.inl_.X2124_1900_1921_9391,.inl_.inl_b_1912_9386,.inl_.inl_.X2108_1911_9381,.inl_.inl_c_1908_9380,.inl_c_9434,.inl_.inl_b_1907_9378,.inl_.inl_.X2124_1906_9377,.inl_b_9370,.inl_.X2107_9369,.inl_.X2108_9364,.inl_c_9372,.inl_.X2106_9360,.inl_a_9356,.inl_.inl_c_1927_9327,.inl_.inl_.inl_b_1901_1933_9332,.inl_.inl_.inl_.X2124_1900_1932_9331,.inl_.inl_b_1923_9326,.inl_.inl_c_1916_9316,.inl_.inl_.inl_b_1901_1922_9321,.inl_.inl_.inl_.X2124_1900_1921_9320,.inl_.inl_b_1912_9315,.inl_.inl_.X2108_1911_9310,.inl_.inl_c_1908_9309,.inl_c_9361,.inl_.inl_b_1907_9307,.inl_.inl_.X2124_1906_9306,.inl_b_9299,.inl_.X2107_9298,.inl_.X2108_9293,.inl_c_9301,.inl_.X2106_9289,.inl_a_9285,_particle_save,.inl_c_9609,.inl_.inl_c_1916_9624,.inl_.inl_.inl_b_1901_1922_9629,.inl_.inl_.inl_.X2124_1900_1921_9628,.inl_.inl_b_1912_9623,.inl_.inl_c_1908_9617,.inl_.inl_.inl_.X2124_1900_1932_9639,.inl_.inl_.X2124_1906_9614,.inl_.inl_b_1907_9615,.inl_.inl_.X2107_4118_9503,.inl_.inl_b_1923_9634,.inl_c_9290,.inl_.inl_.inl_b_1901_1933_9640,.inl_.inl_.X2108_1911_9618,.inl_a_9593,.inl_.X2106_9597,.inl_.X2107_9606,.inl_b_9607,.inl_.inl_c_1927_9635 9019, Generating implicit private(_particle) finally: 9493, Generating update self(_src1_var,_slit_var,_e_monitor1_var,_psd_monitor1_var,_psd_monitor_var,_Origin_var,_instrument_var,_e_monitor_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafat_bIAb6qjFcY7R.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: ===