INFO: No output directory specified (--dir) INFO: Using directory: "CXO_20241123_055833" INFO: Regenerating c-file: CXO.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./CXO.c CXO.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: ./CXO.out DEBUG: CMD: nvc -o ./CXO.out ./CXO.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 "./CXO.c", line 4489: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./CXO.c", line 6612: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./CXO.c", line 6785: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./CXO.c", line 8832: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./CXO.c", line 9834: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./CXO.c", line 10349: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./CXO.c", line 10351: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 10723: 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; ^ "./CXO.c", line 11080: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./CXO.c", line 12019: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./CXO.c", line 12583: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./CXO.c", line 12571: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./CXO.c", line 12624: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./CXO.c", line 12673: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./CXO.c", line 12722: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./CXO.c", line 12771: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./CXO.c", line 12845: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./CXO.c", line 12906: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./CXO.c", line 12969: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./CXO.c", line 13065: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./CXO.c", line 13139: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./CXO.c", line 13213: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./CXO.c", line 13287: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./CXO.c", line 13361: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./CXO.c", line 13422: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./CXO.c", line 13496: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./CXO.c", line 13570: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./CXO.c", line 13644: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./CXO.c", line 13718: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./CXO.c", line 13779: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./CXO.c", line 13842: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./CXO.c", line 13938: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./CXO.c", line 14001: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./CXO.c", line 14062: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./CXO.c", line 14125: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./CXO.c", line 14221: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./CXO.c", line 14377: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./CXO.c", line 14488: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./CXO.c", line 14543: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./CXO.c", line 14543: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./CXO.c", line 14544: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./CXO.c", line 14544: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./CXO.c", line 14544: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./CXO.c", line 15106: warning: variable "C0" was set but never used [set_but_not_used] double alpha,thetap,thetah,P,d,e,C0; ^ "./CXO.c", line 15501: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./CXO.c", line 15753: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./CXO.c", line 15754: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./CXO.c", line 16118: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16118: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16118: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16108: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./CXO.c", line 16112: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 16112: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 16112: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 16401: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16401: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16401: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./CXO.c", line 16391: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./CXO.c", line 16395: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 16395: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 16395: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./CXO.c", line 19028: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./CXO.c", line 19029: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./CXO.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./CXO.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 87, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 101, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 163, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 188, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 199, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 208, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 220, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4110, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4541, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4552, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4652, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4698, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4733, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4744, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4788, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4817, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4828, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4832, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5009, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5040, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5057, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5156, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5240, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5306, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5383, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5655, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5665, Generating acc routine seq Generating NVIDIA GPU code _hash: 5691, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5732, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5748, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5756, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5764, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5771, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6413, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6446, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6507, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6523, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6609, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6677, Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6763, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7831, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7899, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7978, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8446, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8462, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8480, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9427, Generating acc routine seq Generating NVIDIA GPU code off_F: 10680, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10685, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10695, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10721, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10784, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10915, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10960, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11077, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11195, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11207, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11242, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11493, Generating acc routine seq Generating NVIDIA GPU code merge: 11500, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11604, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11619, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11673, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11790, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11812, Generating acc routine seq Generating NVIDIA GPU code intersect_paraboloid: 11943, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_hyperboloid: 12018, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 15330, Generating update device(_optics_entry_var,_off_axis_var,_optics_centre_var,_near_psd_var,_src_div_var,_sh6_p_var,_preOp_div_var,_preOp_emon_var,_postOp_psd_var,_sh1_h_var,_sh3_h_var,_sh4_h_var,_sh6_h_var,_instrument_var,_preOp_psd_var,_sh1_p_var,_sh3_p_var,_sh4_p_var,_postOp_div_var,_postOp_emon_var,_origin_var,_midOp_emon_var,_far_psd_var,_fp_psd_auto_var,_fp_emon_var,_fp_psd_var) class_Progress_bar_trace: 15371, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 15462, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 15658, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15733, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15824, Generating acc routine seq Generating NVIDIA GPU code class_Shell_p_trace: 16055, Generating acc routine seq Generating NVIDIA GPU code 16218, Reference argument passing prevents parallelization: beta class_Shell_h_trace: 16344, Generating acc routine seq Generating NVIDIA GPU code 16501, Reference argument passing prevents parallelization: beta raytrace: 16632, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17203, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17217, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17203, Local memory used for .inl_particle_22738,particleN,.inl_.inl_mcphoton_0_22754,.inl_.X2159_22756,.inl_.inl_.X2365_13_22755 17217, Generating implicit firstprivate(seed,_particle) finally: 18158, Generating update self(_optics_entry_var,_off_axis_var,_optics_centre_var,_near_psd_var,_sh6_p_var,_src_div_var,_preOp_div_var,_preOp_emon_var,_postOp_psd_var,_sh1_h_var,_sh3_h_var,_sh4_h_var,_sh6_h_var,_instrument_var,_preOp_psd_var,_sh1_p_var,_sh3_p_var,_sh4_p_var,_postOp_div_var,_postOp_emon_var,_origin_var,_midOp_emon_var,_far_psd_var,_fp_psd_auto_var,_fp_emon_var,_fp_psd_var) mcenabletrace: 5890, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatCOgifuucyq8gn.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: ===