INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_CRISP_20241206_114422" INFO: Regenerating c-file: ISIS_CRISP.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ISIS_CRISP.c ISIS_CRISP.instr Downloading file 'mcstas-comps/contrib/ISIS_moderator.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/ISIS_moderator.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/Multilayer_Sample.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/Multilayer_Sample.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 11:44:26.707 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide_tapering(0):ref-lib :ref-lib(0):read_table-lib 2024-12-06 11:44:26.707 | 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 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 -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 4489: 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 7339: warning: nested comment is not allowed [nested_comment] /* ^ "./ISIS_CRISP.c", line 7323: warning: variable "Efrac" was declared but never referenced [declared_but_not_referenced] double Efrac; // Fraction of an Energy Bin ^ "./ISIS_CRISP.c", line 7333: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_CRISP.c", line 7483: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_CRISP.c", line 7486: warning: variable "Rend" was set but never used [set_but_not_used] double R0,R1,R,Rend; ^ "./ISIS_CRISP.c", line 7491: warning: variable "Estart" was set but never used [set_but_not_used] double Espread,Estart; ^ "./ISIS_CRISP.c", line 7492: warning: variable "EX" was declared but never referenced [declared_but_not_referenced] double *EX; ^ "./ISIS_CRISP.c", line 9853: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 9940: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 9979: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10018: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10057: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10101: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10144: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10183: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10226: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10293: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10332: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10376: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10424: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10463: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10530: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10574: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 10617: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_CRISP.c", line 11765: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double v,r,E; ^ "./ISIS_CRISP.c", line 12118: warning: variable "vlen2" was declared but never referenced [declared_but_not_referenced] double vlen2,nlen2; /* Vector lengths squared */ ^ "./ISIS_CRISP.c", line 12424: warning: variable "tvar" was declared but never referenced [declared_but_not_referenced] double dbl0,dbl1,tvar; ^ "./ISIS_CRISP.c", line 12366: 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 12359: 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 12359: 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 12359: 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 12359: 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 12359: 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 12359: 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 12359: 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 14533: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ISIS_CRISP.c", line 14534: 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: 4110, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4541, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4552, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4652, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4698, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4733, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4744, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4788, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4817, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4828, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4832, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5009, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5040, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5057, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5156, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5240, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5306, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5383, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5655, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5665, Generating acc routine seq Generating NVIDIA GPU code _hash: 5691, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5732, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5748, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5756, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5764, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5771, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6428, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6524, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6541, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6656, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6711, Generating acc routine seq Generating NVIDIA GPU code polInterp: 7069, Generating acc routine seq Generating NVIDIA GPU code binSearch: 7126, Generating acc routine seq Generating NVIDIA GPU code getPoint: 7482, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8899, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8967, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9046, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9514, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9530, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9548, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9614, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9673, Generating acc routine seq Generating NVIDIA GPU code init: 11692, 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: 11734, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 11866, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 11910, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 11983, Generating acc routine seq Generating NVIDIA GPU code class_Guide_tapering_trace: 12054, Generating acc routine seq Generating NVIDIA GPU code class_Multilayer_Sample_trace: 12336, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12630, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 13047, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 13061, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 13047, Local memory used for .inl_particle_15834,particleN,.inl_.inl_mcneutron_0_15849,.inl_.X2265_15851,.inl_.inl_.X2466_15_15850 13061, Generating implicit firstprivate(seed,_particle) finally: 13802, 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: 5890, Generating update device(mcdotrace) nvlink error : Undefined reference to 'gsl_matrix_complex_free' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_abs' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_conjugate' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_exp' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_div' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_add' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_sqrt' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_sub' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_mul' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_mul_real' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_matrix_complex_get' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_matrix_complex_set' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_complex_rect' in '/tmp/nvc5tdvmR0CdaWcw.o' nvlink error : Undefined reference to 'gsl_matrix_complex_alloc' in '/tmp/nvc5tdvmR0CdaWcw.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 -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 -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.