INFO: No output directory specified (--dir) INFO: Using directory: "Be_BM_beamline_20241121_064116" INFO: Regenerating c-file: Be_BM_beamline.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Be_BM_beamline.c Be_BM_beamline.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: ./Be_BM_beamline.out DEBUG: CMD: nvc -o ./Be_BM_beamline.out ./Be_BM_beamline.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 "./Be_BM_beamline.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 " "./Be_BM_beamline.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Be_BM_beamline.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Be_BM_beamline.c", line 8795: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Be_BM_beamline.c", line 8783: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Be_BM_beamline.c", line 8836: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Be_BM_beamline.c", line 8907: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Be_BM_beamline.c", line 8970: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Be_BM_beamline.c", line 9031: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Be_BM_beamline.c", line 9094: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Be_BM_beamline.c", line 9157: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Be_BM_beamline.c", line 9219: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Be_BM_beamline.c", line 9282: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Be_BM_beamline.c", line 9343: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Be_BM_beamline.c", line 9491: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Be_BM_beamline.c", line 9620: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Be_BM_beamline.c", line 9620: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Be_BM_beamline.c", line 9621: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Be_BM_beamline.c", line 9621: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Be_BM_beamline.c", line 9621: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Be_BM_beamline.c", line 9679: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Be_BM_beamline.c", line 9731: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Be_BM_beamline.c", line 10047: warning: variable "z1" was set but never used [set_but_not_used] double xx,yy,x1,y1,z1; ^ "./Be_BM_beamline.c", line 10049: warning: variable "F1" was declared but never referenced [declared_but_not_referenced] double F1=1.0; ^ "./Be_BM_beamline.c", line 10213: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Be_BM_beamline.c", line 10214: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Be_BM_beamline.c", line 10376: warning: variable "s2" was declared but never referenced [declared_but_not_referenced] double s2x,s2y,s2z,s2; ^ "./Be_BM_beamline.c", line 10377: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double F,k,e,theta,alpha,delta; ^ "./Be_BM_beamline.c", line 11999: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Be_BM_beamline.c", line 12000: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Be_BM_beamline.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Be_BM_beamline.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 Table_Index: 7809, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7877, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7956, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8424, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8440, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8458, Generating acc routine seq Generating NVIDIA GPU code init: 9884, Generating update device(_Be_lens_var,_Origin_var,_instrument_var,_slit_var,_Be_lens2_var,_psd2_var,_psd0_var,_wavel_mon_var,_wavel_mon0_var,_psd1_var,_generic_source_var) class_Progress_bar_trace: 9925, Generating acc routine seq Generating NVIDIA GPU code class_Source_gaussian_trace: 10016, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 10193, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 10284, Generating acc routine seq Generating NVIDIA GPU code class_Lens_simple_trace: 10358, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 10465, Generating acc routine seq Generating NVIDIA GPU code raytrace: 10539, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 10804, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 10818, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 10804, Local memory used for .inl_particle_12637,particleN,.inl_.inl_mcphoton_0_12653,.inl_.X1883_12655,.inl_.inl_.X2080_13_12654 10818, Generating implicit firstprivate(seed,_particle) finally: 11418, Generating update self(_Be_lens_var,_Origin_var,_instrument_var,_slit_var,_Be_lens2_var,_psd2_var,_psd0_var,_wavel_mon_var,_wavel_mon0_var,_psd1_var,_generic_source_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatHXNqbJ5e8fS_m.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: ===