INFO: No output directory specified (--dir) INFO: Using directory: "Template_Johann_spec_20241121_064027" INFO: Regenerating c-file: Template_Johann_spec.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Template_Johann_spec.c Template_Johann_spec.instr Info: 'Bragg_crystal_bent_BC' 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: ./Template_Johann_spec.out DEBUG: CMD: nvc -o ./Template_Johann_spec.out ./Template_Johann_spec.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 "./Template_Johann_spec.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 " "./Template_Johann_spec.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Template_Johann_spec.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Template_Johann_spec.c", line 8953: 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; ^ "./Template_Johann_spec.c", line 9415: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./Template_Johann_spec.c", line 10417: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./Template_Johann_spec.c", line 10932: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./Template_Johann_spec.c", line 10934: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11306: 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; ^ "./Template_Johann_spec.c", line 11663: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Template_Johann_spec.c", line 12904: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Template_Johann_spec.c", line 12892: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Template_Johann_spec.c", line 12945: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Template_Johann_spec.c", line 12994: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Template_Johann_spec.c", line 13043: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Template_Johann_spec.c", line 13117: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Template_Johann_spec.c", line 13180: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Template_Johann_spec.c", line 13258: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Template_Johann_spec.c", line 13317: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Template_Johann_spec.c", line 13413: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Template_Johann_spec.c", line 13509: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Template_Johann_spec.c", line 13605: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Template_Johann_spec.c", line 13794: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Template_Johann_spec.c", line 13907: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_Johann_spec.c", line 13907: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_Johann_spec.c", line 13908: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Template_Johann_spec.c", line 13908: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Template_Johann_spec.c", line 13908: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Template_Johann_spec.c", line 13988: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Template_Johann_spec.c", line 14076: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_Johann_spec.c", line 14076: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_Johann_spec.c", line 14526: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./Template_Johann_spec.c", line 14703: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Template_Johann_spec.c", line 14704: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Template_Johann_spec.c", line 14878: warning: variable "grad_x" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Template_Johann_spec.c", line 14878: warning: variable "grad_y" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Template_Johann_spec.c", line 14878: warning: variable "grad_z" was declared but never referenced [declared_but_not_referenced] double grad_x, grad_y, grad_z; ^ "./Template_Johann_spec.c", line 14883: warning: variable "l_grad_x" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Template_Johann_spec.c", line 14883: warning: variable "l_grad_y" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Template_Johann_spec.c", line 14883: warning: variable "l_grad_z" was declared but never referenced [declared_but_not_referenced] double l_grad_x, l_grad_y, l_grad_z; ^ "./Template_Johann_spec.c", line 14900: warning: variable "fail" was set but never used [set_but_not_used] int fail; ^ "./Template_Johann_spec.c", line 14855: 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 */ ^ "./Template_Johann_spec.c", line 14855: 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 */ ^ "./Template_Johann_spec.c", line 14817: warning: variable "x_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Template_Johann_spec.c", line 14817: warning: variable "y_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Template_Johann_spec.c", line 14817: warning: variable "z_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; // intersection with the y=0 plane ^ "./Template_Johann_spec.c", line 16554: warning: variable "aa" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Template_Johann_spec.c", line 16554: warning: variable "bb" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Template_Johann_spec.c", line 16554: warning: variable "cc" was declared but never referenced [declared_but_not_referenced] double aa,bb,cc; ^ "./Template_Johann_spec.c", line 16995: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Template_Johann_spec.c", line 16996: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Template_Johann_spec.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Template_Johann_spec.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 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 Mx_CubicCrystalChi: 8539, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivityBC: 8628, Generating acc routine seq Generating NVIDIA GPU code cross: 8696, Generating acc routine seq Generating NVIDIA GPU code Mx_DiffractionDispersion: 8711, Generating acc routine seq Generating NVIDIA GPU code Mx_LaueReflectivityBC: 8844, Generating acc routine seq Generating NVIDIA GPU code Mx_DarwinReflectivity: 8951, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10010, Generating acc routine seq Generating NVIDIA GPU code off_F: 11263, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11268, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11278, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11304, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11367, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11498, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11543, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11660, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11778, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11790, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11825, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12076, Generating acc routine seq Generating NVIDIA GPU code merge: 12083, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12187, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12202, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12256, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12373, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12395, Generating acc routine seq Generating NVIDIA GPU code init: 14355, Generating update device(_instrument_var,_origin_var,_bc_var,_src_var,_s_arm_var,_analyzer_psd_var,_det_var,_det4_var,_d_arm_var,_det2_var,_det3_var,_fpi_var) class_Progress_bar_trace: 14396, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 14487, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14683, Generating acc routine seq Generating NVIDIA GPU code class_Bragg_crystal_bent_BC_trace: 14774, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 15037, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15110, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15333, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15587, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15601, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15587, Local memory used for .inl_particle_15233,particleN,.inl_.inl_mcphoton_0_15249,.inl_.X2092_15251,.inl_.inl_.X2296_13_15250 15601, Generating implicit firstprivate(seed,_particle) finally: 16288, Generating update self(_instrument_var,_origin_var,_bc_var,_s_arm_var,_src_var,_analyzer_psd_var,_det_var,_det4_var,_d_arm_var,_det2_var,_det3_var,_fpi_var) mcenabletrace: 5877, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatUKfqbkOrJY4uS.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: ===