INFO: No output directory specified (--dir) INFO: Using directory: "ATHENA_1mm_20241121_055524" INFO: Regenerating c-file: ATHENA_1mm.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./ATHENA_1mm.c ATHENA_1mm.instr 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_1mm.out --> pointing path data/ to /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/data DEBUG: CMD: nvc -o ./ATHENA_1mm.out ./ATHENA_1mm.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_1mm.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_1mm.c", line 6635: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./ATHENA_1mm.c", line 6808: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./ATHENA_1mm.c", line 8638: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./ATHENA_1mm.c", line 9039: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./ATHENA_1mm.c", line 10041: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./ATHENA_1mm.c", line 10556: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./ATHENA_1mm.c", line 10558: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./ATHENA_1mm.c", line 10930: 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_1mm.c", line 10930: 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_1mm.c", line 10930: 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_1mm.c", line 10930: 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_1mm.c", line 10930: 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_1mm.c", line 10930: 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_1mm.c", line 11287: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ATHENA_1mm.c", line 12639: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ATHENA_1mm.c", line 12627: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ATHENA_1mm.c", line 12680: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ATHENA_1mm.c", line 12729: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ATHENA_1mm.c", line 12803: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ATHENA_1mm.c", line 12852: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ATHENA_1mm.c", line 12915: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ATHENA_1mm.c", line 12964: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ATHENA_1mm.c", line 13013: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ATHENA_1mm.c", line 13062: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ATHENA_1mm.c", line 13111: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ATHENA_1mm.c", line 13193: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ATHENA_1mm.c", line 13242: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ATHENA_1mm.c", line 13291: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ATHENA_1mm.c", line 13373: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ATHENA_1mm.c", line 13436: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ATHENA_1mm.c", line 13532: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ATHENA_1mm.c", line 13628: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ATHENA_1mm.c", line 13691: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ATHENA_1mm.c", line 13754: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ATHENA_1mm.c", line 13817: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ATHENA_1mm.c", line 13880: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ATHENA_1mm.c", line 14069: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./ATHENA_1mm.c", line 14182: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1mm.c", line 14182: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./ATHENA_1mm.c", line 14183: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1mm.c", line 14183: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1mm.c", line 14183: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./ATHENA_1mm.c", line 14574: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./ATHENA_1mm.c", line 15310: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./ATHENA_1mm.c", line 15487: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./ATHENA_1mm.c", line 15488: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./ATHENA_1mm.c", line 15738: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 15738: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 15738: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 15714: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./ATHENA_1mm.c", line 15718: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 15718: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 15718: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 15617: warning: variable "hit_chamfer" was declared but never referenced [declared_but_not_referenced] int hit_chamfer=0; ^ "./ATHENA_1mm.c", line 16146: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 16146: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 16146: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./ATHENA_1mm.c", line 16122: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./ATHENA_1mm.c", line 16126: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 16126: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 16126: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./ATHENA_1mm.c", line 16026: warning: variable "hit_chamfer" was declared but never referenced [declared_but_not_referenced] int hit_chamfer=0; ^ "./ATHENA_1mm.c", line 18934: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ATHENA_1mm.c", line 18935: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ATHENA_1mm.c", line 1521: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ATHENA_1mm.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: 7889, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7957, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8036, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8504, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8520, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8538, Generating acc routine seq Generating NVIDIA GPU code intersect_paraboloid: 8555, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code lorentzDistribution: 8628, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_hyperboloid: 8637, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9634, Generating acc routine seq Generating NVIDIA GPU code off_F: 10887, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10892, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10902, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10928, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10991, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11122, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11167, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11284, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11402, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11414, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11449, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11700, Generating acc routine seq Generating NVIDIA GPU code merge: 11707, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11811, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11826, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11880, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11997, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12019, Generating acc routine seq Generating NVIDIA GPU code init: 14957, Generating update device(alphax) 15070, Generating update device(_FLmond_var,_src_var,_ref_p_var,_srca_var,_detector_post_optics_var,_mm_p_1_var,_Origin_var,_misalign_rot_h_var,_ref_h_var,_mm_h_1_var,_instrument_var,_paramon_var,_misalign_rot_p_var,_big_detector_var,_optics_centre_var,_focal_detector_var,_a_1_var,_detector_pre_optics_var,_srcoffaxis_var,_ultrafocal_detector_var,_superfocal_detector_var,_hypermon_var) class_Progress_bar_trace: 15111, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 15223, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 15271, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15467, Generating acc routine seq Generating NVIDIA GPU code class_MM_p_trace: 15558, Generating acc routine seq Generating NVIDIA GPU code class_MM_h_trace: 15967, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16370, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16599, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17001, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17015, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17001, Local memory used for .inl_particle_22257,particleN,.inl_.inl_mcphoton_0_22273,.inl_.X2176_22275,.inl_.inl_.X2379_13_22274 17015, Generating implicit firstprivate(seed,_particle) finally: 18010, Generating update self(_FLmond_var,_src_var,_ref_p_var,_srca_var,_detector_post_optics_var,_mm_p_1_var,_Origin_var,_misalign_rot_h_var,_ref_h_var,_mm_h_1_var,_instrument_var,_paramon_var,_misalign_rot_p_var,_big_detector_var,_optics_centre_var,_focal_detector_var,_a_1_var,_detector_pre_optics_var,_srcoffaxis_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/pgcudafatbmCcbdCP5LuST.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: ===