INFO: No output directory specified (--dir) INFO: Using directory: "ATHENA_1shell_20241121_060005" INFO: Regenerating c-file: ATHENA_1shell.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./ATHENA_1shell.c ATHENA_1shell.instr !!! WARNING: GROUP hyperoptics seems to include only one COMPONENT: !!! --> Shell_h_1 <-- !!! This may lead to unphysical simulation behaviour! CFLAGS= -DDATPATH=GETPATH(data/) WARNING: --> USERVAR nid is of type long long and may need specific --> per-particle initialisation through an --> EXTEND block! ----------------------------------------------------------- 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: ./ATHENA_1shell.out --> pointing path data/ to /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data DEBUG: CMD: nvc -o ./ATHENA_1shell.out ./ATHENA_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 -DDATPATH=/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data "./ATHENA_1shell.c", line 4512: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ATHENA_1shell.c", line 6635: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./ATHENA_1shell.c", line 6808: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./ATHENA_1shell.c", line 8612: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./ATHENA_1shell.c", line 9026: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./ATHENA_1shell.c", line 10028: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./ATHENA_1shell.c", line 10543: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./ATHENA_1shell.c", line 10545: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./ATHENA_1shell.c", line 10917: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 10917: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 10917: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 10917: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 10917: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 10917: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ATHENA_1shell.c", line 11274: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ATHENA_1shell.c", line 12607: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ATHENA_1shell.c", line 12595: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ATHENA_1shell.c", line 12648: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ATHENA_1shell.c", line 12722: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ATHENA_1shell.c", line 12771: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ATHENA_1shell.c", line 12820: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ATHENA_1shell.c", line 12883: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ATHENA_1shell.c", line 12932: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ATHENA_1shell.c", line 12981: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ATHENA_1shell.c", line 13055: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ATHENA_1shell.c", line 13118: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ATHENA_1shell.c", line 13192: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ATHENA_1shell.c", line 13251: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ATHENA_1shell.c", line 13314: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ATHENA_1shell.c", line 13410: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ATHENA_1shell.c", line 13506: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ATHENA_1shell.c", line 13569: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ATHENA_1shell.c", line 13632: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ATHENA_1shell.c", line 13695: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ATHENA_1shell.c", line 13758: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ATHENA_1shell.c", line 13947: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./ATHENA_1shell.c", line 14060: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1shell.c", line 14060: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1shell.c", line 14061: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1shell.c", line 14061: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1shell.c", line 14061: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1shell.c", line 14443: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./ATHENA_1shell.c", line 14522: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1shell.c", line 14522: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1shell.c", line 15057: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./ATHENA_1shell.c", line 15289: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ATHENA_1shell.c", line 15290: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./ATHENA_1shell.c", line 15423: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15423: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15423: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15413: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./ATHENA_1shell.c", line 15417: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 15417: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 15417: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 15707: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15707: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15707: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1shell.c", line 15697: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./ATHENA_1shell.c", line 15701: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 15701: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 15701: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1shell.c", line 18374: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ATHENA_1shell.c", line 18375: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ATHENA_1shell.c", line 1521: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ATHENA_1shell.c", line 2924: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 144, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 175, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 204, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 215, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 224, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 240, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1568, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1572, Generating acc routine seq Generating NVIDIA GPU code str_len: 1581, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4133, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4584, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4636, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4668, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4675, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4721, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4756, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4767, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4795, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4811, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4840, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4851, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4855, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5032, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5063, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5080, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5179, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5263, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5329, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5406, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5678, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5688, Generating acc routine seq Generating NVIDIA GPU code _hash: 5714, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5755, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5766, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5771, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5779, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5787, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5794, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6469, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6546, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6632, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6700, Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6786, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7869, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7937, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8016, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8484, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8500, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8518, Generating acc routine seq Generating NVIDIA GPU code intersect_paraboloid: 8536, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_hyperboloid: 8611, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9621, Generating acc routine seq Generating NVIDIA GPU code off_F: 10874, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10879, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10889, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10915, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10978, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11109, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11154, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11271, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11389, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11401, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11436, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11687, Generating acc routine seq Generating NVIDIA GPU code merge: 11694, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11798, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11813, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11867, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11984, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12006, Generating acc routine seq Generating NVIDIA GPU code init: 14769, Generating update device(alphax) 14865, Generating update device(_FLmond_var,_paramon_var,_srcoffaxis_var,_src_var,_detector_post_optics_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_instrument_var,_Origin_var,_focal_detector_var,_big_detector_var,_optics_centre_var,_fourpi_var,_Shell_p_1_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_hypermon_var) class_Progress_bar_trace: 14906, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 15018, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 15214, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15269, Generating acc routine seq Generating NVIDIA GPU code class_Shell_p_trace: 15360, Generating acc routine seq Generating NVIDIA GPU code 15523, Reference argument passing prevents parallelization: beta class_Shell_h_trace: 15650, Generating acc routine seq Generating NVIDIA GPU code 15807, Reference argument passing prevents parallelization: beta class_PSD_monitor_4PI_trace: 15934, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16007, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16236, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16678, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16692, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16678, Local memory used for .inl_particle_22215,particleN,.inl_.inl_mcphoton_0_22231,.inl_.X2164_22233,.inl_.inl_.X2370_13_22232 16692, Generating implicit firstprivate(seed,_particle) finally: 17540, Generating update self(_FLmond_var,_paramon_var,_srcoffaxis_var,_src_var,_detector_post_optics_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_instrument_var,_Origin_var,_focal_detector_var,_big_detector_var,_optics_centre_var,_fourpi_var,_Shell_p_1_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_hypermon_var) mcenabletrace: 5913, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatZefebzykwNjVi.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: ===