INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20241222_102528" INFO: Regenerating c-file: Test_Monochromators.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_Monochromators.c Test_Monochromators.instr 2024-12-22 10:26:06.576 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Monochromator_pol(0):pol-lib :Monochromator_curved(0):read_table-lib :Monochromator_2foc(0):read_table-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib :Single_crystal(2):opencl-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-22 10:26:06.577 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-22 10:26:06.577 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-22 10:26:06.577 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib pol-lib 2024-12-22 10:26:06.577 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib pol-lib interoff-lib opencl-lib 2024-12-22 10:26:06.577 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-22 10:26:10.132 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('MCSX_REFL_SLIST_SIZE',) due to invalid literal for int() with base 10: 'MCSX_REFL_SLIST_SIZE' 2024-12-22 10:26:16.269 | INFO | mccode_antlr.translators.c:include_source:331 - pol-lib.c requested interpolation-lib but is has not been included yet! The instrument has 23 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component lamStart -> GPU kernel from component Mono_Arm -> GPU kernel from component Mono_Out -> GPU kernel from component Mono1 -> GPU kernel from component Mono2 -> GPU kernel from component Mono3 -> GPU kernel from component Mono4 -> GPU kernel from component Mono5 -> GPU kernel from component Mono6 Component Mono7 is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component Mono7 -> GPU kernel from component Sphere1 -> GPU kernel from component lam1 -> GPU kernel from component psd1 -> GPU kernel from component psd2 -> GPU kernel from component psd3 -> GPU kernel from component L3 -> GPU kernel from component T3 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_Monochromators.out --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libpath --> launching cmd: ncrystal-config --show includedir DEBUG: CMD: nvc -o ./Test_Monochromators.out ./Test_Monochromators.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 -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./Test_Monochromators.c", line 4498: 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_Monochromators.c", line 7740: warning: return value type does not match the function type [bad_return_value_type] if(!ext || ext == infile) return infile; ^ "./Test_Monochromators.c", line 7749: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Test_Monochromators.c", line 7752: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Test_Monochromators.c", line 8242: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Test_Monochromators.c", line 8243: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8243: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8499: warning: missing return statement at end of non-void function "ncrystalsample_surfintersect" [implicit_return_from_non_void_function] } ^ "/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_Monochromators.c", line 11194: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Monochromators.c", line 11286: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Monochromators.c", line 11876: 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_Monochromators.c", line 11876: 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_Monochromators.c", line 11876: 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_Monochromators.c", line 11876: 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_Monochromators.c", line 11876: 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_Monochromators.c", line 11876: 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_Monochromators.c", line 12233: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Monochromators.c", line 15543: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 15543: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 15570: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monochromators.c", line 15570: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monochromators.c", line 15680: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monochromators.c", line 17195: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17195: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17195: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17196: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Test_Monochromators.c", line 17930: warning: incompatible redefinition of macro "strcmp" (declared at line 11242) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Monochromators.c", line 18412: warning: variable "y1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 18412: warning: variable "z1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 18412: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 18412: warning: variable "dt" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 18415: warning: variable "sx_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 18415: warning: variable "sy_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 18415: warning: variable "sz_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 18416: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_Monochromators.c", line 18937: warning: variable "k" was set but never used [set_but_not_used] double my_r0, k; ^ "./Test_Monochromators.c", line 19109: 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_Monochromators.c", line 19109: 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_Monochromators.c", line 19109: 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_Monochromators.c", line 19110: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Test_Monochromators.c", line 19111: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Test_Monochromators.c", line 19112: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Monochromators.c", line 19112: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Monochromators.c", line 19112: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Test_Monochromators.c", line 19113: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19113: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19113: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19114: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19114: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19114: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Test_Monochromators.c", line 19115: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Monochromators.c", line 19115: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Monochromators.c", line 19115: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Test_Monochromators.c", line 19116: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Test_Monochromators.c", line 19117: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Monochromators.c", line 19117: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Monochromators.c", line 19117: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Test_Monochromators.c", line 19118: 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_Monochromators.c", line 19118: 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_Monochromators.c", line 19118: 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_Monochromators.c", line 19119: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Test_Monochromators.c", line 19120: 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_Monochromators.c", line 19120: 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_Monochromators.c", line 19121: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_Monochromators.c", line 19121: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Test_Monochromators.c", line 19122: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./Test_Monochromators.c", line 19129: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./Test_Monochromators.c", line 19136: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Test_Monochromators.c", line 19136: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Test_Monochromators.c", line 19145: 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_Monochromators.c", line 22812: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monochromators.c", line 22813: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monochromators.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monochromators.c", line 2909: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7626, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 7716, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 8232, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 8344, Generating acc routine seq Generating NVIDIA GPU code randrotate: 8359, Generating acc routine seq Generating NVIDIA GPU code randderotate: 8367, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 8375, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 8383, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 8394, Generating acc routine seq Generating NVIDIA GPU code ncrystalsample_surfintersect: 8490, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9836, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9904, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9983, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10451, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10467, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10485, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 10739, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 10756, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 10790, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 10866, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 10904, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 10974, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 11178, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 11239, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 11298, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 11385, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 11424, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 11465, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 11498, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 11523, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 11533, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 11547, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 11563, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 11590, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 11619, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 11643, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 11670, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 11690, Generating acc routine seq Generating NVIDIA GPU code 11723, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 11785, Generating acc routine seq Generating NVIDIA GPU code off_F: 11833, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11838, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11848, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11874, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11937, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12068, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12113, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12230, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12348, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12360, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12395, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12646, Generating acc routine seq Generating NVIDIA GPU code merge: 12653, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12757, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12772, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12826, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12943, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12965, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 14524, Generating acc routine seq Generating NVIDIA GPU code init: 17900, Generating update device(_Mono_Out_var,_Origin_var,_lam1_var,_Mono7_var,_Mono_Arm_var,_L3_var,_Mono1_var,_Mono2_var,_Mono3_var,_Mono4_var,_Mono5_var,_Mono6_var,_Source_var,_instrument_var,_lamStart_var,_psd1_var,_psd3_var,_psd2_var,_Sphere1_var,_T3_var) class_Progress_bar_trace: 17941, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 18031, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 18134, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 18208, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_pol_trace: 18393, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18511, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_2foc_trace: 18856, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 19051, Generating acc routine seq Generating NVIDIA GPU code class_NCrystal_sample_trace: 19605, Generating acc routine seq Generating NVIDIA GPU code 19709, Reference argument passing prevents parallelization: xsect_abs 19711, Reference argument passing prevents parallelization: xsect_scat class_PSD_monitor_4PI_trace: 19757, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 19835, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 19906, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20203, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 20632, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 20646, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 20632, Local memory used for .inl_particle_28967,particleN,.inl_.inl_mcneutron_0_28982,.inl_.X2479_28984,.inl_.inl_.X2689_15_28983 20646, Generating implicit firstprivate(seed,_particle) finally: 21790, Generating update self(_Mono_Out_var,_Origin_var,_lam1_var,_Mono7_var,_Mono_Arm_var,_L3_var,_Mono1_var,_Mono2_var,_Mono3_var,_Mono4_var,_Mono5_var,_Mono6_var,_Source_var,_instrument_var,_lamStart_var,_psd1_var,_psd3_var,_psd2_var,_Sphere1_var,_T3_var) mcenabletrace: 5899, Generating update device(mcdotrace) nvlink error : Undefined reference to 'ncrystal_samplescatter' in '/tmp/nvc3fDwhLJOwwTQ5.o' nvlink error : Undefined reference to 'ncrystal_crosssection_nonoriented' in '/tmp/nvc3fDwhLJOwwTQ5.o' nvlink error : Undefined reference to 'ncrystal_crosssection' in '/tmp/nvc3fDwhLJOwwTQ5.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 ./Test_Monochromators.out ./Test_Monochromators.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 -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -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 ./Test_Monochromators.out ./Test_Monochromators.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 -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2.