INFO: No output directory specified (--dir) INFO: Using directory: "NSLS2_CHX_20250130_161417" INFO: Regenerating c-file: NSLS2_CHX.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./NSLS2_CHX.c NSLS2_CHX.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: ./NSLS2_CHX.out DEBUG: CMD: nvc -o ./NSLS2_CHX.out ./NSLS2_CHX.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 nvc-Warning- The -gpu=[no]managed option is deprecated; please use -gpu=mem:managed or -gpu=mem:separate instead "./NSLS2_CHX.c", line 4477: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./NSLS2_CHX.c", line 6600: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./NSLS2_CHX.c", line 6773: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./NSLS2_CHX.c", line 8490: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double Arg,s,q,alpha,beta; ^ "./NSLS2_CHX.c", line 8490: warning: variable "beta" was declared but never referenced [declared_but_not_referenced] double Arg,s,q,alpha,beta; ^ "./NSLS2_CHX.c", line 8884: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./NSLS2_CHX.c", line 8872: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./NSLS2_CHX.c", line 8925: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./NSLS2_CHX.c", line 8996: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./NSLS2_CHX.c", line 9059: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./NSLS2_CHX.c", line 9121: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./NSLS2_CHX.c", line 9184: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./NSLS2_CHX.c", line 9246: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./NSLS2_CHX.c", line 9309: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./NSLS2_CHX.c", line 9371: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./NSLS2_CHX.c", line 9519: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NSLS2_CHX.c", line 9648: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NSLS2_CHX.c", line 9648: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NSLS2_CHX.c", line 9649: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NSLS2_CHX.c", line 9649: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NSLS2_CHX.c", line 9649: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NSLS2_CHX.c", line 9757: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NSLS2_CHX.c", line 10000: warning: variable "z1" was set but never used [set_but_not_used] double xx,yy,x1,y1,z1; ^ "./NSLS2_CHX.c", line 10002: warning: variable "F1" was declared but never referenced [declared_but_not_referenced] double F1=1.0; ^ "./NSLS2_CHX.c", line 10166: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./NSLS2_CHX.c", line 10167: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./NSLS2_CHX.c", line 10327: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0,nr; ^ "./NSLS2_CHX.c", line 10329: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E,mu,f,rhoel,dl,d_total,e,k,delta,beta,Refractive_Index_Re,Refractive_Index_Im; ^ "./NSLS2_CHX.c", line 10329: warning: variable "Refractive_Index_Im" was set but never used [set_but_not_used] double E,mu,f,rhoel,dl,d_total,e,k,delta,beta,Refractive_Index_Re,Refractive_Index_Im; ^ "./NSLS2_CHX.c", line 11759: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./NSLS2_CHX.c", line 11760: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./NSLS2_CHX.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./NSLS2_CHX.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: 4098, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4529, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4540, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4601, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4611, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4640, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4686, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4721, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4732, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4760, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4776, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4805, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4816, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4820, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4997, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5028, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5045, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5144, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5228, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5294, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5371, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5643, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5653, Generating acc routine seq Generating NVIDIA GPU code _hash: 5679, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5720, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5731, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5736, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5752, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5759, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6401, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6495, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6511, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6597, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7810, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7878, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7957, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8425, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8441, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8459, Generating acc routine seq Generating NVIDIA GPU code intersect_parab_Cyl: 8482, Generating acc routine seq Generating NVIDIA GPU code init: 9837, Generating update device(_Kinoform_var,_Slit_var,_Det_ff_var,_Origin_var,_CRL_var,_Det1_var,_Det_var,_Det_f_var,_instrument_var,_Source_var) class_Progress_bar_trace: 9878, Generating acc routine seq Generating NVIDIA GPU code class_Source_gaussian_trace: 9969, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 10146, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 10237, Generating acc routine seq Generating NVIDIA GPU code class_Lens_parab_Cyl_trace: 10307, Generating acc routine seq Generating NVIDIA GPU code raytrace: 10436, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 10680, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 10694, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 10680, Local memory used for .inl_particle_11978,particleN,.inl_.inl_mcphoton_0_11994,.inl_.X1863_11996,.inl_.inl_.X2060_13_11995 10694, Generating implicit firstprivate(seed,_particle) finally: 11232, Generating update self(_Kinoform_var,_Slit_var,_Det_ff_var,_Origin_var,_CRL_var,_Det1_var,_Det_var,_Det_f_var,_instrument_var,_Source_var) mcenabletrace: 5878, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===