INFO: No output directory specified (--dir) INFO: Using directory: "ESRF_ID01_20241123_060259" INFO: Regenerating c-file: ESRF_ID01.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./ESRF_ID01.c ESRF_ID01.instr CFLAGS= -std=c99 ----------------------------------------------------------- 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: ./ESRF_ID01.out DEBUG: CMD: nvc -o ./ESRF_ID01.out ./ESRF_ID01.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 -std=c99 "./ESRF_ID01.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 " "./ESRF_ID01.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./ESRF_ID01.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./ESRF_ID01.c", line 8963: warning: variable "theta0" was declared but never referenced [declared_but_not_referenced] double lambda,theta,theta0,DeltaThetas,a,d,b,C,W,kappa,g,L; ^ "./ESRF_ID01.c", line 9817: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int j; ^ "./ESRF_ID01.c", line 9818: warning: variable "Status" was set but never used [set_but_not_used] int Status; ^ "./ESRF_ID01.c", line 9819: warning: variable "Parsing" was set but never used [set_but_not_used] char **Parsing; ^ "./ESRF_ID01.c", line 10481: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESRF_ID01.c", line 10469: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESRF_ID01.c", line 10522: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESRF_ID01.c", line 10593: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESRF_ID01.c", line 10655: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESRF_ID01.c", line 10717: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESRF_ID01.c", line 10766: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESRF_ID01.c", line 10837: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESRF_ID01.c", line 10886: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESRF_ID01.c", line 10935: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESRF_ID01.c", line 11006: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESRF_ID01.c", line 11055: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESRF_ID01.c", line 11117: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESRF_ID01.c", line 11179: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESRF_ID01.c", line 11236: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESRF_ID01.c", line 11296: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESRF_ID01.c", line 11358: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESRF_ID01.c", line 11425: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESRF_ID01.c", line 11486: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESRF_ID01.c", line 11549: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ESRF_ID01.c", line 11598: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ESRF_ID01.c", line 11688: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ESRF_ID01.c", line 11737: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ESRF_ID01.c", line 11885: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./ESRF_ID01.c", line 12071: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./ESRF_ID01.c", line 12193: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ESRF_ID01.c", line 12193: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ESRF_ID01.c", line 12252: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ESRF_ID01.c", line 12307: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ESRF_ID01.c", line 12307: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ESRF_ID01.c", line 12308: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ESRF_ID01.c", line 12308: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ESRF_ID01.c", line 12308: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ESRF_ID01.c", line 12458: warning: variable "MosaicityAB" is used before its value is set [used_before_set] ReadReflectionData(ReflectionsDatafile, &hklInfo, Mosaicity, MosaicityA, MosaicityB, MosaicityC, MosaicityAB); ^ "./ESRF_ID01.c", line 12827: warning: variable "z1" was set but never used [set_but_not_used] double xx,yy,x1,y1,z1; ^ "./ESRF_ID01.c", line 12829: warning: variable "F1" was declared but never referenced [declared_but_not_referenced] double F1=1.0; ^ "./ESRF_ID01.c", line 13122: warning: variable "Ex0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./ESRF_ID01.c", line 13122: warning: variable "Ey0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./ESRF_ID01.c", line 13122: warning: variable "Ez0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./ESRF_ID01.c", line 13078: warning: variable "Thetaout" was declared but never referenced [declared_but_not_referenced] double Thetaout; // (rad) angle between the crystal surface and the reflected ray ^ "./ESRF_ID01.c", line 13300: warning: variable "lambda" was declared but never referenced [declared_but_not_referenced] double K, lambda,rr; ^ "./ESRF_ID01.c", line 13402: warning: variable "k" was declared but never referenced [declared_but_not_referenced] double k, kn; ^ "./ESRF_ID01.c", line 13569: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ESRF_ID01.c", line 13570: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./ESRF_ID01.c", line 13766: warning: variable "AbsorbtionScatteringLength" was set but never used [set_but_not_used] double AbsorbtionScatteringLength; ^ "./ESRF_ID01.c", line 15872: warning: variable "lambda" was set but never used [set_but_not_used] double rr,K,lambda; ^ "./ESRF_ID01.c", line 16485: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESRF_ID01.c", line 16486: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESRF_ID01.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESRF_ID01.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: 7821, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7889, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7968, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8436, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8452, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8470, Generating acc routine seq Generating NVIDIA GPU code Mx_CubicCrystalChi: 8549, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivityBC: 8638, Generating acc routine seq Generating NVIDIA GPU code cross: 8706, Generating acc routine seq Generating NVIDIA GPU code Mx_DiffractionDispersion: 8721, Generating acc routine seq Generating NVIDIA GPU code Mx_LaueReflectivityBC: 8854, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivity: 8961, Generating acc routine seq Generating NVIDIA GPU code init: 12664, Generating update device(_OrderSortingAperture_var,_SecondarySlit2_var,_PSDMonitor_var,_PrimarySlit1_var,_MAXIPix_var,_Monochromator1Arm2_var,_Monochromator1Arm1_var,_Monochromator1_var,_Monochromator2Arm2_var,_Monochromator2Arm1_var,_Sample_var,_SecondarySlit1_var,_EnergyMonitor_var,_Monochromator2_var,_DetectorArm_var,_DivergenceMonitor_var,_Origin_var,_PrimarySlit2_var,_SampleArm_var,_CentralStop_var,_FresnelZonePlate_var,_instrument_var,_Source_var) class_Progress_bar_trace: 12705, Generating acc routine seq Generating NVIDIA GPU code class_Source_gaussian_trace: 12796, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 12973, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_trace: 13043, Generating acc routine seq Generating NVIDIA GPU code class_Beamstop_trace: 13238, Generating acc routine seq Generating NVIDIA GPU code class_ZonePlate_trace: 13286, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 13376, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 13474, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 13549, Generating acc routine seq Generating NVIDIA GPU code class_Polycrystal_trace: 13640, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14212, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14633, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14647, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14633, Local memory used for .inl_particle_17777,particleN,.inl_.inl_mcphoton_0_17793,.inl_.X2093_17795,.inl_.inl_.X2294_13_17794 14647, Generating implicit firstprivate(seed,_particle) finally: 15561, Generating update self(_OrderSortingAperture_var,_SecondarySlit2_var,_PSDMonitor_var,_PrimarySlit1_var,_MAXIPix_var,_Monochromator1Arm2_var,_Monochromator1Arm1_var,_Monochromator1_var,_Monochromator2Arm2_var,_Monochromator2Arm1_var,_Sample_var,_SecondarySlit1_var,_EnergyMonitor_var,_Monochromator2_var,_DetectorArm_var,_DivergenceMonitor_var,_Origin_var,_PrimarySlit2_var,_SampleArm_var,_CentralStop_var,_FresnelZonePlate_var,_instrument_var,_Source_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatcebkfget1_mzH.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: ===