INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_CRISP_20241222_081851" INFO: Regenerating c-file: ISIS_CRISP.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ISIS_CRISP.c ISIS_CRISP.instr 2024-12-22 08:19:09.756 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide_tapering(0):ref-lib :ref-lib(0):read_table-lib 2024-12-22 08:19:09.756 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib The instrument has 5 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component isis_source -> GPU kernel from component defslit1 -> GPU kernel from component defslit2 -> GPU kernel from component coarseslit1 -> GPU kernel from component coarseslit2 -> GPU kernel from component lmon1 -> GPU kernel from component PSDmon1 -> GPU kernel from component slit1 -> GPU kernel from component PSDmons1 -> GPU kernel from component eguide1 -> GPU kernel from component slit2 -> GPU kernel from component lmon2 Component samp1 is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component samp1 -> GPU kernel from component slit3 -> GPU kernel from component eguide2 -> GPU kernel from component lmon3 -> GPU kernel from component PSDdet1 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ISIS_CRISP.out --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/include to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include DEBUG: CMD: nvc -o ./ISIS_CRISP.out ./ISIS_CRISP.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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./ISIS_CRISP.c", line 4490: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ISIS_CRISP.c", line 7340: warning: nested comment is not allowed [nested_comment] /* ^ "./ISIS_CRISP.c", line 7324: warning: variable "Efrac" was declared but never referenced [declared_but_not_referenced] double Efrac; // Fraction of an Energy Bin ^ "./ISIS_CRISP.c", line 7334: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_CRISP.c", line 7484: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_CRISP.c", line 7487: warning: variable "Rend" was set but never used [set_but_not_used] double R0,R1,R,Rend; ^ "./ISIS_CRISP.c", line 7492: warning: variable "Estart" was set but never used [set_but_not_used] double Espread,Estart; ^ "./ISIS_CRISP.c", line 7493: warning: variable "EX" was declared but never referenced [declared_but_not_referenced] double *EX; ^ "./ISIS_CRISP.c", line 9854: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 9941: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 9980: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10019: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10058: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10102: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10145: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10184: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10227: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10294: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10333: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10377: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10425: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10464: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10531: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10575: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10618: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 11766: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double v,r,E; ^ "./ISIS_CRISP.c", line 12119: warning: variable "vlen2" was declared but never referenced [declared_but_not_referenced] double vlen2,nlen2; /* Vector lengths squared */ ^ "./ISIS_CRISP.c", line 12425: warning: variable "tvar" was declared but never referenced [declared_but_not_referenced] double dbl0,dbl1,tvar; ^ "./ISIS_CRISP.c", line 12367: warning: variable "old_x" was declared but never referenced [declared_but_not_referenced] double old_x = x, old_y = y, old_z = z; ^ "./ISIS_CRISP.c", line 12360: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "n1" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "n2" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "pfn" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "s0" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "c0" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 12360: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double dt,q,n1,n2,pfn,R0,lambda,theta,s0,c0,kx,ky,kz,t0,t1,t2,l_i,l_o,v, solid_angle; ^ "./ISIS_CRISP.c", line 14534: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ISIS_CRISP.c", line 14535: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ISIS_CRISP.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ISIS_CRISP.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: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, 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: 4111, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4542, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4553, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4586, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4653, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4699, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4734, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4745, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4789, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4818, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4829, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4833, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5010, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5041, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5058, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5157, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5241, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5384, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5656, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5666, Generating acc routine seq Generating NVIDIA GPU code _hash: 5692, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5733, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5749, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5757, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5765, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5772, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6429, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6525, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6542, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6657, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code polInterp: 7070, Generating acc routine seq Generating NVIDIA GPU code binSearch: 7127, Generating acc routine seq Generating NVIDIA GPU code getPoint: 7483, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8900, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8968, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9047, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9515, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9531, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9549, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9615, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9674, Generating acc routine seq Generating NVIDIA GPU code init: 11693, Generating update device(_PSDmons1_var,_instrument_var,_coarseslit2_var,_defslit1_var,_a1_var,_coarseslit1_var,_isis_source_var,_PSDdet1_var,_samp1_var,_PSDmon1_var,_defslit2_var,_slit1_var,_lmon1_var,_lmon3_var,_slit3_var,_slit2_var,_eguide1_var,_lmon2_var,_eguide2_var) class_ISIS_moderator_trace: 11735, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 11867, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11911, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11984, Generating acc routine seq Generating NVIDIA GPU code class_Guide_tapering_trace: 12055, Generating acc routine seq Generating NVIDIA GPU code class_Multilayer_Sample_trace: 12337, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12631, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 13048, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 13062, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 13048, Local memory used for .inl_particle_15834,particleN,.inl_.inl_mcneutron_0_15849,.inl_.X2265_15851,.inl_.inl_.X2466_15_15850 13062, Generating implicit firstprivate(seed,_particle) finally: 13803, Generating update self(_PSDmons1_var,_instrument_var,_coarseslit2_var,_defslit1_var,_a1_var,_coarseslit1_var,_isis_source_var,_PSDdet1_var,_samp1_var,_PSDmon1_var,_defslit2_var,_slit1_var,_lmon1_var,_lmon3_var,_slit3_var,_slit2_var,_eguide1_var,_lmon2_var,_eguide2_var) mcenabletrace: 5891, Generating update device(mcdotrace) nvlink error : Undefined reference to 'gsl_matrix_complex_free' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_abs' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_conjugate' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_exp' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_div' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_add' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_sqrt' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_sub' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_mul' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_mul_real' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_matrix_complex_get' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_matrix_complex_set' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_complex_rect' in '/tmp/nvczCq3gl6ah0LGZ.o' nvlink error : Undefined reference to 'gsl_matrix_complex_alloc' in '/tmp/nvczCq3gl6ah0LGZ.o' pgacclnk: child process exit status 2: /opt/nvidia/hpc_sdk/Linux_x86_64/24.7/compilers/bin/tools/nvdd INFO: call to nvc failed with Command 'nvc -o ./ISIS_CRISP.out ./ISIS_CRISP.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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./ISIS_CRISP.out ./ISIS_CRISP.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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lgsl -lgslcblas -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2.