INFO: No output directory specified (--dir) INFO: Using directory: "Test_SX_20250130_163518" INFO: Regenerating c-file: Test_SX.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_SX.c Test_SX.instr CFLAGS= WARNING: The parameter mosaic_AB of sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. WARNING: The parameter surf_dir of sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- 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_SX.out DEBUG: CMD: nvc -o ./Test_SX.out ./Test_SX.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 nvc-Warning- The -gpu=[no]managed option is deprecated; please use -gpu=mem:managed or -gpu=mem:separate instead "./Test_SX.c", line 4477: 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_SX.c", line 6600: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_SX.c", line 6773: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Test_SX.c", line 8754: 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_SX.c", line 8754: 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_SX.c", line 8754: 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_SX.c", line 8754: 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_SX.c", line 8754: 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_SX.c", line 8754: 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_SX.c", line 9111: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_SX.c", line 10073: warning: return value type does not match the function type [bad_return_value_type] if(!ext || ext == infile) return infile; ^ "./Test_SX.c", line 10082: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Test_SX.c", line 10085: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Test_SX.c", line 10147: warning: variable "flag" was declared but never referenced [declared_but_not_referenced] char flag=0; ^ "./Test_SX.c", line 10648: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Test_SX.c", line 10649: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_SX.c", line 10649: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_SX.c", line 10807: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_SX.c", line 10809: warning: variable "Z" was set but never used [set_but_not_used] double Z; ^ "./Test_SX.c", line 11117: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_SX.c", line 11092: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_SX.c", line 11158: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_SX.c", line 11221: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_SX.c", line 11326: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_SX.c", line 11433: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_SX.c", line 11503: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_SX.c", line 11503: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_SX.c", line 11504: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_SX.c", line 11504: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_SX.c", line 11504: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_SX.c", line 11655: warning: variable "surf_dir_sum" was declared but never referenced [declared_but_not_referenced] double surf_dir_sum =0; ^ "./Test_SX.c", line 11593: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_SX.c", line 11593: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_SX.c", line 11593: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_SX.c", line 11836: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_SX.c", line 11836: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_SX.c", line 12087: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_SX.c", line 12088: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_SX.c", line 12219: warning: variable "k" was declared but never referenced [declared_but_not_referenced] double k; /* photon wave vector */ ^ "./Test_SX.c", line 12220: warning: variable "rho_x" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_SX.c", line 12220: warning: variable "rho_y" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_SX.c", line 12220: warning: variable "rho_z" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Test_SX.c", line 12221: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Test_SX.c", line 12222: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Test_SX.c", line 12223: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_SX.c", line 12223: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_SX.c", line 12223: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_SX.c", line 12224: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_SX.c", line 12224: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_SX.c", line 12224: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_SX.c", line 12225: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_SX.c", line 12225: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_SX.c", line 12225: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_SX.c", line 12226: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_SX.c", line 12226: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_SX.c", line 12226: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_SX.c", line 12227: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Test_SX.c", line 12228: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_SX.c", line 12228: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_SX.c", line 12228: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_SX.c", line 12229: warning: variable "l11" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_SX.c", line 12229: warning: variable "l12" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_SX.c", line 12229: warning: variable "l22" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Test_SX.c", line 12230: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Test_SX.c", line 12231: warning: variable "Bt_D_O_x" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Test_SX.c", line 12231: warning: variable "Bt_D_O_y" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Test_SX.c", line 12232: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_SX.c", line 12232: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_SX.c", line 12233: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./Test_SX.c", line 12239: warning: variable "coh_xsect" was declared but never referenced [declared_but_not_referenced] double coh_xsect, coh_xlen; /* Coherent cross section and length */ ^ "./Test_SX.c", line 12240: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./Test_SX.c", line 12255: warning: variable "type" was set but never used [set_but_not_used] char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./Test_SX.c", line 14040: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_SX.c", line 14041: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_SX.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_SX.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: 4098, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4529, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4540, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4601, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4611, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4640, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4686, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4721, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4732, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4760, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4776, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4805, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4816, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4820, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4997, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5028, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5045, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5144, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5228, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5294, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5371, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5643, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5653, Generating acc routine seq Generating NVIDIA GPU code _hash: 5679, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5720, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5731, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5736, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5752, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5759, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6401, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6495, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6511, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6597, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7804, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7872, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7951, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8419, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8435, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8453, Generating acc routine seq Generating NVIDIA GPU code off_F: 8711, Generating acc routine seq Generating NVIDIA GPU code off_sign: 8716, Generating acc routine seq Generating NVIDIA GPU code off_normal: 8726, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 8752, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 8815, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 8946, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 8991, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9108, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9226, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9238, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9273, Generating acc routine seq Generating NVIDIA GPU code Min_int: 9524, Generating acc routine seq Generating NVIDIA GPU code merge: 9531, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 9635, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 9650, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 9704, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 9821, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 9843, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 10050, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 10638, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 10751, Generating acc routine seq Generating NVIDIA GPU code randrotate: 10766, Generating acc routine seq Generating NVIDIA GPU code randderotate: 10774, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 10783, Generating acc routine seq Generating NVIDIA GPU code init: 11889, Generating update device(_src_var,_sample_var,_instrument_var,_psd4pi_var,_psd0_var) class_Source_flat_trace: 11930, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 12067, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 12158, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 12703, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12780, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12919, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12933, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12919, Local memory used for .inl_particle_14305,particleN,.inl_.inl_mcphoton_0_14321,.inl_.X1991_14323,.inl_.inl_.X2196_13_14322 12933, Generating implicit firstprivate(seed,_particle) finally: 13501, Generating update self(_src_var,_sample_var,_instrument_var,_psd4pi_var,_psd0_var) mcenabletrace: 5878, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcIXg1MQdl4J_l.o: in function `cif2hkl': /u/data/pkwi/xTESTS/2025-01-30/McXtrace_8GPU_openacc_1e7_Linux_1e7/Test_SX/./Test_SX.c:10087: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===