INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20251212_124912" INFO: Regenerating c-file: Test_Monochromators.c WARNING: Full-path code-generator "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS" not found!! WARNING: Attempting replacement by "mcstas-antlr -I$MCSTAS" DEBUG: CMD: mcstas-antlr -I$MCSTAS -t -o ./Test_Monochromators.c Test_Monochromators.instr 2025-12-12 12:49:59.381 | 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 2025-12-12 12:49:59.381 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib pol-lib 2025-12-12 12:49:59.381 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-12-12 12:49:59.381 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-12-12 12:49:59.381 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-12-12 12:49:59.381 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib pol-lib interoff-lib opencl-lib 2025-12-12 12:50:03.041 | 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' 2025-12-12 12:50:13.791 | INFO | mccode_antlr.translators.c:include_source:341 - 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=True ->FUNNEL mode enabled, SPLIT within buffer. -> 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 ----------------------------------------------------------- CFLAGS= -DFUNNEL -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 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_Monochromators.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: nvc -o ./Test_Monochromators.out ./Test_Monochromators.c -lm -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 -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL -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 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./Test_Monochromators.c", line 95: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgenstate(void); ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_Monochromators.c", line 97: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcsetstate(double x, double y, double z, double vx, double vy, double vz, double t, double sx, double sy, double sz, double p, int mcgravitation, void * mcMagnet, int allow_backprop); ^ "./Test_Monochromators.c", line 99: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcparticle, double * x, double * y, double * z, double * vx, double * vy, double * vz, double * t, double * sx, double * sy, double * sz, double * p); ^ "./Test_Monochromators.c", line 113: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./Test_Monochromators.c", line 117: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_Monochromators.c", line 147: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./Test_Monochromators.c", line 117: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_Monochromators.c", line 181: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./Test_Monochromators.c", line 208: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./Test_Monochromators.c", line 221: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./Test_Monochromators.c", line 238: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./Test_Monochromators.c", line 250: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./Test_Monochromators.c", line 319: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Test_Monochromators.c", line 321: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./Test_Monochromators.c", line 672: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./Test_Monochromators.c", line 893: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./Test_Monochromators.c", line 910: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./Test_Monochromators.c", line 912: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./Test_Monochromators.c", line 920: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./Test_Monochromators.c", line 922: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./Test_Monochromators.c", line 924: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./Test_Monochromators.c", line 926: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./Test_Monochromators.c", line 928: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./Test_Monochromators.c", line 1024: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./Test_Monochromators.c", line 1026: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./Test_Monochromators.c", line 1028: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./Test_Monochromators.c", line 1030: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./Test_Monochromators.c", line 1032: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./Test_Monochromators.c", line 1034: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./Test_Monochromators.c", line 1036: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./Test_Monochromators.c", line 1038: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./Test_Monochromators.c", line 1040: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./Test_Monochromators.c", line 4651: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_Monochromators.c", line 5106: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Test_Monochromators.c", line 5025: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_Monochromators.c", line 6352: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Monochromators.c", line 7073: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./Test_Monochromators.c", line 7075: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./Test_Monochromators.c", line 7082: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./Test_Monochromators.c", line 7102: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./Test_Monochromators.c", line 7104: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./Test_Monochromators.c", line 7106: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./Test_Monochromators.c", line 7231: warning: Routine "off_intersect_all" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all(double* t0, double* t3, ^ "./Test_Monochromators.c", line 7254: warning: Routine "off_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect(double* t0, double* t3, ^ "./Test_Monochromators.c", line 7275: warning: Routine "off_x_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect(double *l0,double *l3, ^ "./Test_Monochromators.c", line 7568: warning: Routine "Monitor_nD_Trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Monitor_nD_Trace(MonitornD_Defines_type *, MonitornD_Variables_type *, _class_particle* _particle); ^ "./Test_Monochromators.c", line 7815: warning: Routine "GAUSS_monocurved" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double GAUSS_monocurved(double x, double mean, double rms){ ^ "./Test_Monochromators.c", line 7905: warning: Routine "SX_list_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int SX_list_compare (void const *a, void const *b) ^ "./Test_Monochromators.c", line 8461: warning: Routine "hkl_search" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int hkl_search(struct hkl_data *L, void *TT, int count, double V0, ^ "./Test_Monochromators.c", line 8474: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Test_Monochromators.c", line 8475: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8475: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8576: warning: Routine "hkl_select" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int hkl_select(struct tau_data *T, int tau_count, double coh_refl, double *sum,_class_particle *_particle) { ^ "./Test_Monochromators.c", line 8591: warning: Routine "randrotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void randrotate(double *nx, double *ny, double *nz, double a, double b, double c) { ^ "./Test_Monochromators.c", line 8599: warning: Routine "randderotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void randderotate(double *nx, double *ny, double *nz, double a, double b, double c) { ^ "./Test_Monochromators.c", line 8607: warning: Routine "PGrotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void PGrotate(double *nx, double *ny, double *nz, double a, double csx, double csy, double csz) { ^ "./Test_Monochromators.c", line 8615: warning: Routine "PGderotate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void PGderotate(double *nx, double *ny, double *nz, double a, double csx, double csy, double csz) { ^ "./Test_Monochromators.c", line 8626: warning: Routine "vec_rotate_2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void vec_rotate_2d(double* x, double* y, double angle) { ^ "./Test_Monochromators.c", line 8731: warning: missing return statement at end of non-void function "ncrystalsample_surfintersect" [implicit_return_from_non_void_function] } ^ "./Test_Monochromators.c", line 10790: warning: Routine "off_F" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_F(double x, double y,double z,double A,double B,double C,double D) { ^ "./Test_Monochromators.c", line 10795: warning: Routine "off_sign" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] char off_sign(double a) { ^ "./Test_Monochromators.c", line 10804: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_normal(Coords* n, polygon p) ^ "./Test_Monochromators.c", line 10830: warning: Routine "off_pnpoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_pnpoly(polygon p, Coords v) ^ "./Test_Monochromators.c", line 10833: 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 10833: 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 10833: 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 10833: 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 10833: 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 10833: 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 10893: warning: Routine "off_intersectPoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersectPoly(intersection *inter, Coords a, Coords b, polygon p) ^ "./Test_Monochromators.c", line 11023: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_init_planes(Coords a, Coords b, ^ "./Test_Monochromators.c", line 11067: warning: Routine "off_clip_3D_mod" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_clip_3D_mod(intersection* t, Coords a, Coords b, ^ "./Test_Monochromators.c", line 11188: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Monochromators.c", line 11300: warning: Routine "off_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_compare (void const *a, void const *b) ^ "./Test_Monochromators.c", line 11312: warning: Routine "off_cleanDouble" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanDouble(intersection* t, int* t_size) ^ "./Test_Monochromators.c", line 11347: warning: Routine "off_cleanInOut" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanInOut(intersection* t, int* t_size) ^ "./Test_Monochromators.c", line 11603: warning: Routine "Min_int" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Min_int(int x, int y) { ^ "./Test_Monochromators.c", line 11609: warning: Routine "merge" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void merge(intersection *arr, int l, int m, int r) ^ "./Test_Monochromators.c", line 14580: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 14580: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 14607: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monochromators.c", line 14607: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "/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 14789: warning: Routine "interpolator_interpolate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double *interpolator_interpolate(struct interpolator_struct *interpolator, ^ "./Test_Monochromators.c", line 14800: warning: Routine "interpolator_interpolate3_3" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double *interpolator_interpolate3_3(struct interpolator_struct *interpolator, ^ "./Test_Monochromators.c", line 14890: warning: Routine "kdtree_squaredDistance" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double kdtree_squaredDistance(vertex* a, vertex* b) ^ "./Test_Monochromators.c", line 14906: warning: Routine "kdtree_borderCheck" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void kdtree_borderCheck(vertex *v, treeNode *thisNode, ^ "./Test_Monochromators.c", line 14941: warning: Routine "kdtree_partition" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int kdtree_partition(vertex **points, int d, int left, int right, int pivot) ^ "./Test_Monochromators.c", line 15020: warning: Routine "kdtree_nearestNeighbour_helper" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void kdtree_nearestNeighbour_helper(vertex* v, treeNode *tree, ^ "./Test_Monochromators.c", line 15060: warning: Routine "kdtree_nearestNeighbour" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] vertex* kdtree_nearestNeighbour(vertex* v, treeNode *tree) { ^ "./Test_Monochromators.c", line 15134: warning: Routine "interpolator_offset" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] long interpolator_offset(int dim, long *dimInfo, long *indices) { ^ "./Test_Monochromators.c", line 15365: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Monochromators.c", line 15467: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Monochromators.c", line 16054: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monochromators.c", line 17949: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17949: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17949: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17950: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Test_Monochromators.c", line 18693: warning: incompatible redefinition of macro "exit" (declared at line 651) [bad_macro_redef] #define exit(...) noprintf() ^ "./Test_Monochromators.c", line 18694: warning: incompatible redefinition of macro "strcmp" (declared at line 15417) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Monochromators.c", line 18705: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Progress_bar *class_Progress_bar_trace(_class_Progress_bar *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 18795: warning: Routine "class_Source_simple_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Source_simple *class_Source_simple_trace(_class_Source_simple *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 18898: warning: Routine "class_L_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_L_monitor *class_L_monitor_trace(_class_L_monitor *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 18972: warning: Routine "class_Monochromator_flat_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monochromator_flat *class_Monochromator_flat_trace(_class_Monochromator_flat *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 19157: warning: Routine "class_Monochromator_pol_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monochromator_pol *class_Monochromator_pol_trace(_class_Monochromator_pol *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 19176: warning: variable "y1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19176: warning: variable "z1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19176: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19176: warning: variable "dt" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19179: warning: variable "sx_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19179: warning: variable "sy_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19179: warning: variable "sz_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19180: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_Monochromators.c", line 19280: warning: Routine "class_Monochromator_curved_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monochromator_curved *class_Monochromator_curved_trace(_class_Monochromator_curved *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 19625: warning: Routine "class_Monochromator_2foc_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monochromator_2foc *class_Monochromator_2foc_trace(_class_Monochromator_2foc *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 19706: warning: variable "k" was set but never used [set_but_not_used] double my_r0, k; ^ "./Test_Monochromators.c", line 19820: warning: Routine "class_Single_crystal_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Single_crystal *class_Single_crystal_trace(_class_Single_crystal *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 19878: 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 19878: 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 19878: 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 19879: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Test_Monochromators.c", line 19880: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Test_Monochromators.c", line 19881: 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 19881: 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 19881: 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 19882: 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 19882: 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 19882: 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 19883: 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 19883: 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 19883: 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 19884: 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 19884: 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 19884: 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 19885: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Test_Monochromators.c", line 19886: 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 19886: 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 19886: 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 19887: 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 19887: 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 19887: 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 19888: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Test_Monochromators.c", line 19889: 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 19889: 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 19890: 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 19890: 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 19891: 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 19898: 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 19905: 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 19905: 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 19914: 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 20376: warning: Routine "class_NCrystal_sample_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_NCrystal_sample *class_NCrystal_sample_trace(_class_NCrystal_sample *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 20528: warning: Routine "class_PSD_monitor_4PI_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor_4PI *class_PSD_monitor_4PI_trace(_class_PSD_monitor_4PI *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 20606: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor *class_PSD_monitor_trace(_class_PSD_monitor *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 20677: warning: Routine "class_Monitor_nD_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monitor_nD *class_Monitor_nD_trace(_class_Monitor_nD *_comp, _class_particle *_particle) { ^ "./Test_Monochromators.c", line 23617: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monochromators.c", line 23618: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monochromators.c", line 1528: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monochromators.c", line 2997: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 106, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 120, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 154, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 183, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 210, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 222, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 238, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 250, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1576, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1580, Generating acc routine seq Generating NVIDIA GPU code str_len: 1589, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4269, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4703, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4714, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4723, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4735, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4747, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4757, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4767, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4775, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4785, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4807, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4814, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4860, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4895, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4906, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4923, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4934, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4950, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4979, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4990, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4994, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5029, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5036, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5045, #pragma acc loop seq 5029, Generating implicit copy(lens[:]) [if not already present] 5036, Generating implicit firstprivate(ll,l) 5047, Accelerator restriction: induction variable live-out from loop: i 5048, Accelerator restriction: induction variable live-out from loop: i 5049, Accelerator restriction: induction variable live-out from loop: i 5050, Accelerator restriction: induction variable live-out from loop: i 5052, Accelerator restriction: induction variable live-out from loop: j 5053, Accelerator restriction: induction variable live-out from loop: j 5054, Accelerator restriction: induction variable live-out from loop: j 5055, Accelerator restriction: induction variable live-out from loop: j 5077, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5081, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5084, #pragma acc loop seq 5077, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5084, Generating implicit firstprivate(l) 5101, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5105, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5112, #pragma acc loop seq 5101, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5171, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5202, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5219, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5318, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5402, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5468, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5545, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5817, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5829, Generating acc routine seq Generating NVIDIA GPU code _hash: 5861, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5902, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5913, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5918, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5926, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5934, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5941, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6619, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6659, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6719, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6736, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6851, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6906, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7815, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 7906, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 8464, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 8576, Generating acc routine seq Generating NVIDIA GPU code randrotate: 8591, Generating acc routine seq Generating NVIDIA GPU code randderotate: 8599, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 8607, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 8615, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 8626, Generating acc routine seq Generating NVIDIA GPU code ncrystalsample_surfintersect: 8722, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code Table_Index: 10082, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10150, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10229, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10697, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10713, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10731, Generating acc routine seq Generating NVIDIA GPU code off_F: 10790, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10795, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10805, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10831, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10894, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11025, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11070, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11185, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11301, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11313, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11348, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11603, Generating acc routine seq Generating NVIDIA GPU code merge: 11610, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for L,R p_to_quadratic: 11718, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 11733, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 11787, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11904, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11926, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 13570, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 14891, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 14908, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 14942, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 15022, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 15060, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 15134, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 15349, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 15414, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for indices interpolator_interpolate3_3: 15479, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 15566, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 15605, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 15646, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for mcMagnet mcmagnet_pop: 15691, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 15716, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 15726, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 15740, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 15756, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 15783, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 15812, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 15836, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 15863, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 15883, Generating acc routine seq Generating NVIDIA GPU code 15916, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 15978, Generating acc routine seq Generating NVIDIA GPU code init: 18664, 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: 18705, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 18795, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 18898, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 18972, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_pol_trace: 19157, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 19280, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_2foc_trace: 19625, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 19820, Generating acc routine seq Generating NVIDIA GPU code class_NCrystal_sample_trace: 20376, Generating acc routine seq Generating NVIDIA GPU code 20480, Reference argument passing prevents parallelization: xsect_abs 20482, Reference argument passing prevents parallelization: xsect_scat class_PSD_monitor_4PI_trace: 20528, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 20606, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 20677, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 21491, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 21495, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21495, Generating implicit firstprivate(mpi_node_rank,_particle,ncount,seed) 21505, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 19082, #pragma acc loop seq Generating implicit reduction(+:.inl_total_27924) 19098, #pragma acc loop seq 19761, #pragma acc loop seq 21510, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21505, Local memory used for .inl_.inl_c_2001_28146,.inl_.inl_.inl_b_1975_2007_28151,.inl_.inl_.inl_.X2814_1974_2006_28150,.inl_.inl_b_1997_28145,.inl_.inl_c_1990_28135,.inl_.inl_.inl_b_1975_1996_28140,.inl_.inl_.inl_.X2814_1974_1995_28139,.inl_.inl_b_1986_28134,.inl_.inl_.X2798_1985_28129,.inl_.inl_c_1982_28128,.inl_c_28211,.inl_.inl_b_1981_28126,.inl_.inl_.X2814_1980_28125,.inl_b_28118,.inl_.X2797_28117,.inl_.X2798_28112,.inl_c_28120,.inl_.X2796_28108,.inl_a_28104,.inl_.inl_c_2001_28096,.inl_.inl_.inl_b_1975_2007_28101,.inl_.inl_.inl_.X2814_1974_2006_28100,.inl_.inl_b_1997_28095,.inl_.inl_c_1990_28085,.inl_.inl_.inl_b_1975_1996_28090,.inl_.inl_.inl_.X2814_1974_1995_28089,.inl_.inl_b_1986_28084,.inl_.inl_.X2798_1985_28079,.inl_.inl_c_1982_28078,.inl_c_28109,.inl_.inl_b_1981_28076,.inl_.inl_.X2814_1980_28075,.inl_b_28068,.inl_.X2797_28067,.inl_.X2798_28062,.inl_c_28070,.inl_.X2796_28058,.inl_a_28054,.inl_.inl_c_2001_28046,.inl_.inl_.inl_b_1975_2007_28051,.inl_.inl_.inl_.X2814_1974_2006_28050,.inl_.inl_b_1997_28045,.inl_.inl_c_1990_28035,.inl_.inl_.inl_b_1975_1996_28040,.inl_.inl_.inl_.X2814_1974_1995_28039,.inl_.inl_b_1986_28034,.inl_.inl_.X2798_1985_28029,.inl_.inl_c_1982_28028,.inl_c_28059,.inl_.inl_b_1981_28026,.inl_.inl_.X2814_1980_28025,.inl_b_28018,.inl_.X2797_28017,.inl_.X2798_28012,.inl_c_28020,.inl_.X2796_28008,.inl_a_28004,.inl_.inl_c_2001_27996,.inl_.inl_.inl_b_1975_2007_28001,.inl_.inl_.inl_.X2814_1974_2006_28000,.inl_.inl_b_1997_27995,.inl_.inl_c_1990_27985,.inl_.inl_.inl_b_1975_1996_27990,.inl_.inl_.inl_.X2814_1974_1995_27989,.inl_.inl_b_1986_27984,.inl_.inl_.X2798_1985_27979,.inl_.inl_c_1982_27978,.inl_c_28009,.inl_.inl_b_1981_27976,.inl_.inl_.X2814_1980_27975,.inl_b_27968,.inl_.X2797_27967,.inl_.X2798_27962,.inl_c_27970,.inl_.X2796_27958,.inl_a_27954,.inl_.inl_c_2001_27861,.inl_.inl_.inl_b_1975_2007_27866,.inl_.inl_.inl_.X2814_1974_2006_27865,.inl_.inl_b_1997_27860,.inl_.inl_c_1990_27850,.inl_.inl_.inl_b_1975_1996_27855,.inl_.inl_.inl_.X2814_1974_1995_27854,.inl_.inl_b_1986_27849,.inl_.inl_.X2798_1985_27844,.inl_.inl_c_1982_27843,.inl_c_27959,.inl_.inl_b_1981_27841,.inl_.inl_.X2814_1980_27840,.inl_b_27833,.inl_.X2797_27832,.inl_.X2798_27827,.inl_c_27835,.inl_.X2796_27823,.inl_a_27819,.inl_.inl_c_2001_27811,.inl_.inl_.inl_b_1975_2007_27816,.inl_.inl_.inl_.X2814_1974_2006_27815,.inl_.inl_b_1997_27810,.inl_.inl_c_1990_27800,.inl_.inl_.inl_b_1975_1996_27805,.inl_.inl_.inl_.X2814_1974_1995_27804,.inl_.inl_b_1986_27799,.inl_.inl_.X2798_1985_27794,.inl_.inl_c_1982_27793,.inl_c_27824,.inl_.inl_b_1981_27791,.inl_.inl_.X2814_1980_27790,.inl_b_27783,.inl_.X2797_27782,.inl_.X2798_27777,.inl_c_27785,.inl_.X2796_27773,.inl_a_27769,.inl_.inl_c_2001_27761,.inl_.inl_.inl_b_1975_2007_27766,.inl_.inl_.inl_.X2814_1974_2006_27765,.inl_.inl_b_1997_27760,.inl_.inl_c_1990_27750,.inl_.inl_.inl_b_1975_1996_27755,.inl_.inl_.inl_.X2814_1974_1995_27754,.inl_.inl_b_1986_27749,.inl_.inl_.X2798_1985_27744,.inl_.inl_c_1982_27743,.inl_c_27774,.inl_.inl_b_1981_27741,.inl_.inl_.X2814_1980_27740,.inl_b_27733,.inl_.X2797_27732,.inl_.X2798_27727,.inl_c_27735,.inl_.X2796_27723,.inl_a_27719,.inl_.inl_c_2001_27709,.inl_.inl_.inl_b_1975_2007_27714,.inl_.inl_.inl_.X2814_1974_2006_27713,.inl_.inl_b_1997_27708,.inl_.inl_c_1990_27698,.inl_.inl_.inl_b_1975_1996_27703,.inl_.inl_.inl_.X2814_1974_1995_27702,.inl_.inl_b_1986_27697,.inl_.inl_.X2798_1985_27692,.inl_.inl_c_1982_27691,.inl_c_27724,.inl_.inl_b_1981_27689,.inl_.inl_.X2814_1980_27688,.inl_b_27681,.inl_.X2797_27680,.inl_.X2798_27675,.inl_c_27683,.inl_.X2796_27671,.inl_a_27667,_particle_save,.inl_c_28222,.inl_.inl_c_1990_28237,.inl_.inl_.inl_b_1975_1996_28242,.inl_.inl_.inl_.X2814_1974_1995_28241,.inl_.inl_b_1986_28236,.inl_.inl_c_1982_28230,.inl_.inl_.inl_.X2814_1974_2006_28252,.inl_.inl_.X2814_1980_28227,.inl_.inl_b_1981_28228,.inl_.X2798_28214,.inl_.inl_b_1997_28247,.inl_c_27672,.inl_.inl_.inl_b_1975_2007_28253,.inl_.inl_.X2798_1985_28231,.inl_a_28206,.inl_.X2796_28210,.inl_.X2797_28219,.inl_b_28220,.inl_.inl_c_2001_28248 19068, Scalar last value needed after loop for .inl_mos_sample_27925*5.00000000000000000e+00 at line 19082 Loop carried scalar dependence for .inl_mos_sample_27925 at line 19078,19068 Scalar last value needed after loop for .inl_mos_sample_27925*5.00000000000000000e+00 at line 19093 Scalar last value needed after loop for .inl_mos_sample_27925 at line 19113,19098 19082, Loop is parallelizable 19098, Complex loop carried dependence of _particle+-> prevents parallelization Loop carried dependence of _particle+-> prevents parallelization Loop carried backward dependence of _particle+-> prevents vectorization Scalar last value needed after loop for (.inl_.inl_.inl_randnum_2515_7476_27940*2.00000000000000000e+00)-1.00000000000000000e+00 at line 19098 Scalar last value needed after loop for ((.inl_.inl_.inl_randnum_2519_7482_27946*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2519_7482_27946*2.00000000000000000e+00)-1.00000000000000000e+00)+((.inl_.inl_.inl_randnum_2515_7476_27940*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2515_7476_27940*2.00000000000000000e+00)-1.00000000000000000e+00) at line 19098 19761, Complex loop carried dependence of _particle+-> prevents parallelization Loop carried dependence of _particle+-> prevents parallelization Loop carried backward dependence of _particle+-> prevents vectorization Scalar last value needed after loop for (.inl_.inl_.inl_randnum_2515_8057_28191*2.00000000000000000e+00)-1.00000000000000000e+00 at line 19761 Scalar last value needed after loop for ((.inl_.inl_.inl_randnum_2519_8063_28197*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2519_8063_28197*2.00000000000000000e+00)-1.00000000000000000e+00)+((.inl_.inl_.inl_randnum_2515_8057_28191*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2515_8057_28191*2.00000000000000000e+00)-1.00000000000000000e+00) at line 19761 21687, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 21690, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21687, Local memory used for .inl_.inl_c_2001_28598,.inl_.inl_.inl_b_1975_2007_28603,.inl_.inl_.inl_.X2814_1974_2006_28602,.inl_.inl_b_1997_28597,.inl_.inl_c_1990_28587,.inl_.inl_.inl_b_1975_1996_28592,.inl_.inl_.inl_.X2814_1974_1995_28591,.inl_.inl_b_1986_28586,.inl_.inl_.X2798_1985_28581,.inl_.inl_c_1982_28580,.inl_c_28611,.inl_.inl_b_1981_28578,.inl_.inl_.X2814_1980_28577,.inl_b_28570,.inl_.X2797_28569,.inl_.X2798_28564,.inl_c_28572,.inl_.X2796_28560,.inl_a_28556,.inl_.inl_c_2001_28548,.inl_.inl_.inl_b_1975_2007_28553,.inl_.inl_.inl_.X2814_1974_2006_28552,.inl_.inl_b_1997_28547,.inl_.inl_c_1990_28537,.inl_.inl_.inl_b_1975_1996_28542,.inl_.inl_.inl_.X2814_1974_1995_28541,.inl_.inl_b_1986_28536,.inl_.inl_.X2798_1985_28531,.inl_.inl_c_1982_28530,.inl_c_28561,.inl_.inl_b_1981_28528,.inl_.inl_.X2814_1980_28527,.inl_b_28520,.inl_.X2797_28519,.inl_.X2798_28514,.inl_c_28522,.inl_.X2796_28510,.inl_a_28506,.inl_.inl_c_2001_28498,.inl_.inl_.inl_b_1975_2007_28503,.inl_.inl_.inl_.X2814_1974_2006_28502,.inl_.inl_b_1997_28497,.inl_.inl_c_1990_28487,.inl_.inl_.inl_b_1975_1996_28492,.inl_.inl_.inl_.X2814_1974_1995_28491,.inl_.inl_b_1986_28486,.inl_.inl_.X2798_1985_28481,.inl_.inl_c_1982_28480,.inl_c_28511,.inl_.inl_b_1981_28478,.inl_.inl_.X2814_1980_28477,.inl_b_28470,.inl_.X2797_28469,.inl_.X2798_28464,.inl_c_28472,.inl_.X2796_28460,.inl_a_28456,.inl_.inl_c_2001_28448,.inl_.inl_.inl_b_1975_2007_28453,.inl_.inl_.inl_.X2814_1974_2006_28452,.inl_.inl_b_1997_28447,.inl_.inl_c_1990_28437,.inl_.inl_.inl_b_1975_1996_28442,.inl_.inl_.inl_.X2814_1974_1995_28441,.inl_.inl_b_1986_28436,.inl_.inl_.X2798_1985_28431,.inl_.inl_c_1982_28430,.inl_c_28461,.inl_.inl_b_1981_28428,.inl_.inl_.X2814_1980_28427,.inl_b_28420,.inl_.X2797_28419,.inl_.X2798_28414,.inl_c_28422,.inl_.X2796_28410,.inl_a_28406,.inl_.inl_c_2001_28398,.inl_.inl_.inl_b_1975_2007_28403,.inl_.inl_.inl_.X2814_1974_2006_28402,.inl_.inl_b_1997_28397,.inl_.inl_c_1990_28387,.inl_.inl_.inl_b_1975_1996_28392,.inl_.inl_.inl_.X2814_1974_1995_28391,.inl_.inl_b_1986_28386,.inl_.inl_.X2798_1985_28381,.inl_.inl_c_1982_28380,.inl_c_28411,.inl_.inl_b_1981_28378,.inl_.inl_.X2814_1980_28377,.inl_b_28370,.inl_.X2797_28369,.inl_.X2798_28364,.inl_c_28372,.inl_.X2796_28360,.inl_a_28356,.inl_.inl_c_2001_28348,.inl_.inl_.inl_b_1975_2007_28353,.inl_.inl_.inl_.X2814_1974_2006_28352,.inl_.inl_b_1997_28347,.inl_.inl_c_1990_28337,.inl_.inl_.inl_b_1975_1996_28342,.inl_.inl_.inl_.X2814_1974_1995_28341,.inl_.inl_b_1986_28336,.inl_.inl_.X2798_1985_28331,.inl_.inl_c_1982_28330,.inl_c_28361,.inl_.inl_b_1981_28328,.inl_.inl_.X2814_1980_28327,.inl_b_28320,.inl_.X2797_28319,.inl_.X2798_28314,.inl_c_28322,.inl_.X2796_28310,.inl_a_28306,_particle_save,.inl_c_28622,.inl_.inl_c_1990_28637,.inl_.inl_.inl_b_1975_1996_28642,.inl_.inl_.inl_.X2814_1974_1995_28641,.inl_.inl_b_1986_28636,.inl_.inl_c_1982_28630,.inl_.inl_.inl_.X2814_1974_2006_28652,.inl_.inl_.X2814_1980_28627,.inl_.inl_b_1981_28628,.inl_.X2798_28614,.inl_.inl_b_1997_28647,.inl_c_28311,.inl_.inl_.inl_b_1975_2007_28653,.inl_.inl_.X2798_1985_28631,.inl_a_28606,.inl_.X2796_28610,.inl_.X2797_28619,.inl_b_28620,.inl_.inl_c_2001_28648 finally: 22573, 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: 6061, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcjL0fnB1Nwv2FE.o: in function `cif2hkl': /u/data/pkwi/TESTS/2025-12-12/ANTLR_openacc_mpi_x_7_1e7_Linux_1e7/Test_Monochromators/./Test_Monochromators.c:7964: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===