INFO: No output directory specified (--dir) INFO: Using directory: "Test_mirror_elliptic_20250130_163150" INFO: Regenerating c-file: Test_mirror_elliptic.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Test_mirror_elliptic.c Test_mirror_elliptic.instr 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_mirror_elliptic.out DEBUG: CMD: nvc -o ./Test_mirror_elliptic.out ./Test_mirror_elliptic.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 nvc-Warning- The -gpu=[no]managed option is deprecated; please use -gpu=mem:managed or -gpu=mem:separate instead "./Test_mirror_elliptic.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_mirror_elliptic.c", line 6600: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_mirror_elliptic.c", line 6773: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Test_mirror_elliptic.c", line 8946: 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; ^ "/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_mirror_elliptic.c", line 9214: warning: conversion from pointer to smaller integer [pointer_conversion_loses_bits] int N=(unsigned int)((double **) pars)[0]; ^ "./Test_mirror_elliptic.c", line 9192: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int status; ^ "./Test_mirror_elliptic.c", line 9303: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_mirror_elliptic.c", line 9502: warning: variable "R" was declared but never referenced [declared_but_not_referenced] double b_mu,R; ^ "./Test_mirror_elliptic.c", line 9562: 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_mirror_elliptic.c", line 9557: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./Test_mirror_elliptic.c", line 9580: warning: variable "qinf" was declared but never referenced [declared_but_not_referenced] double complex qinf; ^ "./Test_mirror_elliptic.c", line 10024: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_mirror_elliptic.c", line 10012: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_mirror_elliptic.c", line 10065: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_mirror_elliptic.c", line 10136: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_mirror_elliptic.c", line 10185: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_mirror_elliptic.c", line 10234: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_mirror_elliptic.c", line 10298: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_mirror_elliptic.c", line 10347: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_mirror_elliptic.c", line 10408: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_mirror_elliptic.c", line 10563: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_mirror_elliptic.c", line 10631: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_mirror_elliptic.c", line 10688: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_mirror_elliptic.c", line 10743: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_mirror_elliptic.c", line 10743: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Test_mirror_elliptic.c", line 10744: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_mirror_elliptic.c", line 10744: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_mirror_elliptic.c", line 10744: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./Test_mirror_elliptic.c", line 11144: 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_mirror_elliptic.c", line 11144: 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_mirror_elliptic.c", line 11118: warning: variable "E" was set but never used [set_but_not_used] double E; // (keV) x-ray energy ^ "./Test_mirror_elliptic.c", line 11121: warning: variable "x_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_mirror_elliptic.c", line 11121: warning: variable "y_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_mirror_elliptic.c", line 11121: warning: variable "z_int" was declared but never referenced [declared_but_not_referenced] double x_int,y_int,z_int; ^ "./Test_mirror_elliptic.c", line 11122: warning: variable "R" was declared but never referenced [declared_but_not_referenced] double R; ^ "./Test_mirror_elliptic.c", line 11328: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./Test_mirror_elliptic.c", line 11329: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./Test_mirror_elliptic.c", line 12300: warning: variable "t" was declared but never referenced [declared_but_not_referenced] double t,xx,yy,zz,xx0,yy0,zz0; ^ "./Test_mirror_elliptic.c", line 12686: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_mirror_elliptic.c", line 12687: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_mirror_elliptic.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_mirror_elliptic.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 Mx_CubicCrystalChi: 8607, Accelerator restriction: unsupported operation: DCMPLXABS Mx_DarwinReflectivityBC: 8789, Accelerator restriction: unsupported operation: DCMPLXABS 8664, Accelerator restriction: unsupported operation: DCMPLXABS cross: 8689, Generating acc routine seq Generating NVIDIA GPU code Mx_DiffractionDispersion: 8799, Accelerator restriction: unsupported operation: DCMPLXABS Mx_LaueReflectivityBC: 8789, Accelerator restriction: unsupported operation: DCMPLXABS 8926, Accelerator restriction: unsupported operation: DCMPLXABS Mx_DarwinReflectivity: 8944, Generating acc routine seq Generating NVIDIA GPU code reflec_coating: 9486, Generating acc routine seq Generating NVIDIA GPU code reflec_bare: 9518, Generating acc routine seq Generating NVIDIA GPU code reflec_kinematic: 9522, Generating acc routine seq Generating NVIDIA GPU code reflec_q_prmtc: 9532, Generating acc routine seq Generating NVIDIA GPU code reflec_eth_prmtc: 9544, Generating acc routine seq Generating NVIDIA GPU code reflec_parratt: 9554, Generating acc routine seq Generating NVIDIA GPU code parrat_reflec_bulk: 9577, Generating acc routine seq Generating NVIDIA GPU code refleccq: 9601, Generating acc routine seq Generating NVIDIA GPU code reflecq: 9520, Accelerator restriction: unsupported operation: DCMPLXABS init: 10831, Generating update device(_instrument_var,_a_mirror_elliptic_var,_arm_position_var,_Source_var,_arm_rotation_var,_arm_var,_psd_monitor_var,_origin_var,_e_monitor_var) class_Progress_bar_trace: 10872, Generating acc routine seq Generating NVIDIA GPU code class_Source_flat_trace: 10963, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_elliptic_trace: 9663, Accelerator restriction: unsupported operation: DCMPLXABS class_E_monitor_trace: 11233, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11308, Generating acc routine seq Generating NVIDIA GPU code raytrace: 11403, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 11578, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 11592, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 11578, Local memory used for .inl_particle_11772,particleN,.inl_.inl_mcphoton_0_11788,.inl_.X1934_11790,.inl_.inl_.X2133_13_11789 11592, Generating implicit firstprivate(seed,_particle) finally: 12141, Generating update self(_instrument_var,_a_mirror_elliptic_var,_arm_position_var,_Source_var,_arm_rotation_var,_arm_var,_psd_monitor_var,_origin_var,_e_monitor_var) mcenabletrace: 5878, Generating update device(mcdotrace) nvvmCompileProgram: failed with error 9: NVVM_ERROR_COMPILATION nvnvvmd: error: /tmp/nvaccdvTYjDCEBxLT.gpu (42034, 14): parse use of undefined value '@class_Mirror_elliptic_trace' NVC++-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (./Test_mirror_elliptic.c: 11578) NVC++/x86-64 Linux 25.1-0: compilation aborted INFO: call to nvc failed with Command 'nvc -o ./Test_mirror_elliptic.out ./Test_mirror_elliptic.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' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 595, in main() File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Test_mirror_elliptic.out ./Test_mirror_elliptic.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' returned non-zero exit status 2.