INFO: No output directory specified (--dir) INFO: Using directory: "NuSTAR_1shell_20241121_060622" INFO: Regenerating c-file: NuSTAR_1shell.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./NuSTAR_1shell.c NuSTAR_1shell.instr !!! WARNING: GROUP hyperoptics seems to include only one COMPONENT: !!! --> Shell_h_1 <-- !!! This may lead to unphysical simulation behaviour! 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: ./NuSTAR_1shell.out DEBUG: CMD: nvc -o ./NuSTAR_1shell.out ./NuSTAR_1shell.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 "./NuSTAR_1shell.c", line 4501: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./NuSTAR_1shell.c", line 6624: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./NuSTAR_1shell.c", line 6797: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./NuSTAR_1shell.c", line 8601: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./NuSTAR_1shell.c", line 9073: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./NuSTAR_1shell.c", line 9061: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./NuSTAR_1shell.c", line 9114: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./NuSTAR_1shell.c", line 9188: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./NuSTAR_1shell.c", line 9237: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./NuSTAR_1shell.c", line 9286: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./NuSTAR_1shell.c", line 9349: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./NuSTAR_1shell.c", line 9398: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./NuSTAR_1shell.c", line 9447: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./NuSTAR_1shell.c", line 9521: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./NuSTAR_1shell.c", line 9584: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./NuSTAR_1shell.c", line 9658: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./NuSTAR_1shell.c", line 9721: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./NuSTAR_1shell.c", line 9784: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./NuSTAR_1shell.c", line 9847: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./NuSTAR_1shell.c", line 9910: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./NuSTAR_1shell.c", line 9973: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./NuSTAR_1shell.c", line 10129: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NuSTAR_1shell.c", line 10242: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NuSTAR_1shell.c", line 10242: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NuSTAR_1shell.c", line 10243: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell.c", line 10243: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell.c", line 10243: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell.c", line 10625: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./NuSTAR_1shell.c", line 10721: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NuSTAR_1shell.c", line 11016: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./NuSTAR_1shell.c", line 11241: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./NuSTAR_1shell.c", line 11242: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./NuSTAR_1shell.c", line 11375: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11375: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11375: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11365: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./NuSTAR_1shell.c", line 11369: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 11369: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 11369: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 11654: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11654: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11654: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell.c", line 11644: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./NuSTAR_1shell.c", line 11648: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 11648: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 11648: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell.c", line 13610: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./NuSTAR_1shell.c", line 13611: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./NuSTAR_1shell.c", line 1510: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./NuSTAR_1shell.c", line 2913: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 140, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 169, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 196, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 207, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 216, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 230, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1557, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1561, Generating acc routine seq Generating NVIDIA GPU code str_len: 1570, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4122, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4553, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4657, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4664, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4710, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4745, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4756, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4800, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4829, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4840, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4844, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5021, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5052, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5069, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5168, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5252, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5318, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5395, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5667, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5677, Generating acc routine seq Generating NVIDIA GPU code _hash: 5703, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5744, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5755, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5760, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5768, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5776, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5783, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6425, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6458, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6519, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6535, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6621, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6689, Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6775, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7858, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7926, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8005, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8473, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8489, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8507, Generating acc routine seq Generating NVIDIA GPU code intersect_paraboloid: 8525, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_hyperboloid: 8600, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 10747, Generating update device(alphax) 10831, Generating update device(_optics_centre_var,_srcoffaxis_var,_src_var,_big_detector_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_instrument_var,_Origin_var,_big_detector_parab_var,_big_detector_hyper_var,_Shell_p_1_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_focal_detector_var) class_Progress_bar_trace: 10872, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 10977, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 11173, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11221, Generating acc routine seq Generating NVIDIA GPU code class_Shell_p_trace: 11312, Generating acc routine seq Generating NVIDIA GPU code 11475, Reference argument passing prevents parallelization: beta class_Shell_h_trace: 11597, Generating acc routine seq Generating NVIDIA GPU code 11754, Reference argument passing prevents parallelization: beta raytrace: 11884, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12249, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12263, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12249, Local memory used for .inl_particle_18550,particleN,.inl_.inl_mcphoton_0_18566,.inl_.X1951_18568,.inl_.inl_.X2152_13_18567 12263, Generating implicit firstprivate(seed,_particle) finally: 12882, Generating update self(_optics_centre_var,_srcoffaxis_var,_src_var,_big_detector_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_instrument_var,_Origin_var,_big_detector_parab_var,_big_detector_hyper_var,_Shell_p_1_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_focal_detector_var) mcenabletrace: 5902, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatkI9fbE67M2VtC.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: ===