INFO: No output directory specified (--dir) INFO: Using directory: "Test_Mirrors_20241123_064139" INFO: Regenerating c-file: Test_Mirrors.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_Mirrors.c Test_Mirrors.instr Info: 'Mirror_toroid_pothole' is a contributed component. 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: ./Test_Mirrors.out DEBUG: CMD: nvc -o ./Test_Mirrors.out ./Test_Mirrors.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 "./Test_Mirrors.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 " "./Test_Mirrors.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_Mirrors.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./Test_Mirrors.c", line 8619: warning: conversion from pointer to smaller integer [pointer_conversion_loses_bits] int N=(unsigned int)((double **) pars)[0]; ^ "./Test_Mirrors.c", line 8597: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int status; ^ "./Test_Mirrors.c", line 8708: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mirrors.c", line 8907: warning: variable "R" was declared but never referenced [declared_but_not_referenced] double b_mu,R; ^ "./Test_Mirrors.c", line 8967: warning: variable "k2" is used before its value is set [used_before_set] qpd=csqrt(q*q - 8*k2* *(pp->delta) + I*8*k2* *(pp->beta)); ^ "./Test_Mirrors.c", line 8962: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./Test_Mirrors.c", line 8985: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9415: 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; ^ "./Test_Mirrors.c", line 9772: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Mirrors.c", line 11115: 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; ^ "./Test_Mirrors.c", line 11773: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Mirrors.c", line 11761: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Mirrors.c", line 11814: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Mirrors.c", line 11885: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Mirrors.c", line 11948: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Mirrors.c", line 11997: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Mirrors.c", line 12060: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Mirrors.c", line 12124: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Mirrors.c", line 12184: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Mirrors.c", line 12245: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Mirrors.c", line 12305: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Mirrors.c", line 12365: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Mirrors.c", line 12435: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Mirrors.c", line 12484: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_Mirrors.c", line 12547: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_Mirrors.c", line 12610: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_Mirrors.c", line 12765: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_Mirrors.c", line 12835: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mirrors.c", line 12835: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_Mirrors.c", line 12836: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mirrors.c", line 12836: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mirrors.c", line 12836: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_Mirrors.c", line 12945: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mirrors.c", line 13037: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Mirrors.c", line 13208: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_Mirrors.c", line 13637: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_Mirrors.c", line 13638: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_Mirrors.c", line 13844: warning: variable "yy0" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mirrors.c", line 13844: warning: variable "yy1" was set but never used [set_but_not_used] double xx0, xx1, yy0, yy1, zz0, zz1; /* we will have to tentatively propagate twice to see which surface we hit */ ^ "./Test_Mirrors.c", line 13818: warning: variable "E" was set but never used [set_but_not_used] double E; // (keV) x-ray energy ^ "./Test_Mirrors.c", line 13821: warning: variable "x_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_Mirrors.c", line 13821: warning: variable "y_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_Mirrors.c", line 13821: warning: variable "z_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_Mirrors.c", line 13822: warning: variable "R" was declared but never referenced [declared_but_not_referenced] double R; ^ "./Test_Mirrors.c", line 13943: warning: variable "first" was set but never used [set_but_not_used] int status,first; ^ "./Test_Mirrors.c", line 14201: warning: variable "ty" was set but never used [set_but_not_used] double k,l0,l1,l2,l3,tx,ty,tz; ^ "./Test_Mirrors.c", line 14305: warning: subscript out of range [subscript_out_of_range] op[0]=x; op[1]=y; op[2]=z; op[3]=kx; op[4]=ky; op[5]=kz; op[6]=phi; op[7]=t; op[8]=Ex; op[9]=Ey; op[10]=Ez; op[12]=p; ^ "./Test_Mirrors.c", line 14308: warning: subscript out of range [subscript_out_of_range] x=op[0]; y=op[1]; z=op[2]; kx=op[3]; ky=op[4]; kz=op[5]; phi=op[6]; t=op[7]; Ex=op[8]; Ey=op[9]; Ez=op[10]; p=op[12]; ^ "./Test_Mirrors.c", line 14291: warning: variable "ty" was set but never used [set_but_not_used] double l0,l1,l2,l3,tx,ty,tz; ^ "./Test_Mirrors.c", line 14472: warning: variable "EE" was set but never used [set_but_not_used] double QQ,EE,Ref; ^ "./Test_Mirrors.c", line 15812: warning: variable "t" was declared but never referenced [declared_but_not_referenced] double t,xx,yy,zz,xx0,yy0,zz0; ^ "./Test_Mirrors.c", line 15882: warning: variable "xmin" was declared but never referenced [declared_but_not_referenced] double x0,x1,z0,z1,y[4],xmin,xmax,zmin,zmax; ^ "./Test_Mirrors.c", line 15882: warning: variable "zmin" was declared but never referenced [declared_but_not_referenced] double x0,x1,z0,z1,y[4],xmin,xmax,zmin,zmax; ^ "./Test_Mirrors.c", line 16237: warning: variable "x1" was declared but never referenced [declared_but_not_referenced] double x1,y1,z1,z_el,y_el; ^ "./Test_Mirrors.c", line 16568: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Mirrors.c", line 16569: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Mirrors.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Mirrors.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 ellipsoid_intersect: 6690, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6750, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code paraboloid_intersect: 6771, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code paraboloid_normal: 6807, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7811, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7879, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7958, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8426, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8442, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8460, Generating acc routine seq Generating NVIDIA GPU code reflec_coating: 8891, Generating acc routine seq Generating NVIDIA GPU code reflec_bare: 8923, Generating acc routine seq Generating NVIDIA GPU code reflec_kinematic: 8927, Generating acc routine seq Generating NVIDIA GPU code reflec_q_prmtc: 8937, Generating acc routine seq Generating NVIDIA GPU code reflec_eth_prmtc: 8949, Generating acc routine seq Generating NVIDIA GPU code reflec_parratt: 8959, Generating acc routine seq Generating NVIDIA GPU code parrat_reflec_bulk: 8982, Generating acc routine seq Generating NVIDIA GPU code refleccq: 9006, Generating acc routine seq Generating NVIDIA GPU code reflecq: 9057, Generating acc routine seq Generating NVIDIA GPU code off_F: 9372, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9377, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9387, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9413, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 9476, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 9607, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9652, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9769, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9887, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9899, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9934, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10185, Generating acc routine seq Generating NVIDIA GPU code merge: 10192, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10296, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10311, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10365, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 10482, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 10504, Generating acc routine seq Generating NVIDIA GPU code Mx_CubicCrystalChi: 10701, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivityBC: 10790, Generating acc routine seq Generating NVIDIA GPU code cross: 10858, Generating acc routine seq Generating NVIDIA GPU code Mx_DiffractionDispersion: 10873, Generating acc routine seq Generating NVIDIA GPU code Mx_LaueReflectivityBC: 11006, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivity: 11113, Generating acc routine seq Generating NVIDIA GPU code CoordTransME: 11269, Generating acc routine seq Generating NVIDIA GPU code CoordTransEM: 11278, Generating acc routine seq Generating NVIDIA GPU code init: 13348, Generating update device(_src_var,_psd3_var,_mt6_multilayer_var,_mirror_out_var,_mirror_stage_var,_mt0_flat_var,_mt1_ellip_var,_mt2_parab_var,_mt3_curved_var,_mt4_toroid_var,_mt5_toroid_pot_var,_instrument_var,_psd0_var,_psd1_var,_psd2_var,_Origin_var) class_Progress_bar_trace: 13389, Generating acc routine seq Generating NVIDIA GPU code class_Source_flat_trace: 13480, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 13617, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_trace: 13708, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_elliptic_trace: 13800, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_parabolic_trace: 13928, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_curved_trace: 14080, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_toroid_trace: 14189, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_toroid_pothole_trace: 14277, Generating acc routine seq Generating NVIDIA GPU code class_Multilayer_elliptic_trace: 14380, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14552, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14897, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14911, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14897, Local memory used for .inl_particle_19026,particleN,.inl_.inl_mcphoton_0_19042,.inl_.X2095_19044,.inl_.inl_.X2300_13_19043 14911, Generating implicit firstprivate(seed,_particle) finally: 15556, Generating update self(_psd3_var,_src_var,_mt6_multilayer_var,_mirror_out_var,_mirror_stage_var,_mt0_flat_var,_mt1_ellip_var,_mt2_parab_var,_mt3_curved_var,_mt4_toroid_var,_mt5_toroid_pot_var,_instrument_var,_psd0_var,_psd1_var,_psd2_var,_Origin_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatYA0wfwkrEUFta.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: ===