INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20250514_102819" 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-05-14 10:28:58.465 | 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-05-14 10:28:58.465 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib pol-lib 2025-05-14 10:28:58.465 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-05-14 10:28:58.465 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib pol-lib interoff-lib opencl-lib 2025-05-14 10:28:58.466 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-05-14 10:28:58.466 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib pol-lib interoff-lib opencl-lib monitor_nd-lib 2025-05-14 10:29:02.047 | 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-05-14 10:29:10.804 | INFO | mccode_antlr.translators.c:include_source:339 - pol-lib.c requested interpolation-lib but is has not been included yet! 2025-05-14 10:29:13.192 | WARNING | mccode_antlr.instr.instr:_replace_keywords:285 - Guessing that @NCRYSTALFLAGS@ should be -lncrystal 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 -lncrystal 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 -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 324: 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 326: 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 676: 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 897: 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 914: 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 916: 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 924: 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 926: 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 928: 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 930: 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 932: 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 1028: 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 1030: 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 1032: 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 1034: 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 1036: 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 1038: 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 1040: 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 1042: 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 1044: 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 4596: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_Monochromators.c", line 5051: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Test_Monochromators.c", line 4970: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_Monochromators.c", line 6297: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_Monochromators.c", line 7015: 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 7017: 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 7024: 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 7044: 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 7046: 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 7048: 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 7173: 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 7196: 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 7217: 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 7510: 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 7757: 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 7847: 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 8370: 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 8383: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Test_Monochromators.c", line 8384: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8384: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Test_Monochromators.c", line 8485: 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 8500: 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 8508: 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 8516: 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 8524: 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 8535: 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 8640: warning: missing return statement at end of non-void function "ncrystalsample_surfintersect" [implicit_return_from_non_void_function] } ^ "./Test_Monochromators.c", line 10684: 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 10689: 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 10698: 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 10724: 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 10727: 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 10727: 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 10727: 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 10727: 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 10727: 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 10727: 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 10787: 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 10917: 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 10961: 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 11084: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Monochromators.c", line 11198: 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 11210: 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 11245: 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 11497: 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 11503: 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 14470: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 14470: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Monochromators.c", line 14497: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Monochromators.c", line 14497: 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 14679: 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 14690: 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 14780: 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 14796: 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 14831: 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 14906: 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 14946: 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 15016: 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 15236: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Monochromators.c", line 15328: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Monochromators.c", line 15903: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monochromators.c", line 17798: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17798: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17798: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_Monochromators.c", line 17799: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Test_Monochromators.c", line 18535: warning: incompatible redefinition of macro "strcmp" (declared at line 15284) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Monochromators.c", line 18546: 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 18636: 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 18739: 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 18813: 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 18998: 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 19017: warning: variable "y1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19017: warning: variable "z1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19017: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19017: warning: variable "dt" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./Test_Monochromators.c", line 19020: warning: variable "sx_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19020: warning: variable "sy_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19020: warning: variable "sz_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./Test_Monochromators.c", line 19021: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_Monochromators.c", line 19121: 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 19466: 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 19547: warning: variable "k" was set but never used [set_but_not_used] double my_r0, k; ^ "./Test_Monochromators.c", line 19661: 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 19719: 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 19719: 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 19719: 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 19720: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Test_Monochromators.c", line 19721: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Test_Monochromators.c", line 19722: 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 19722: 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 19722: 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 19723: 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 19723: 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 19723: 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 19724: 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 19724: 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 19724: 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 19725: 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 19725: 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 19725: 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 19726: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Test_Monochromators.c", line 19727: 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 19727: 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 19727: 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 19728: 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 19728: 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 19728: 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 19729: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Test_Monochromators.c", line 19730: 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 19730: 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 19731: 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 19731: 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 19732: 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 19739: 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 19746: 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 19746: 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 19755: 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 20215: 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 20367: 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 20445: 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 20516: 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 23434: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monochromators.c", line 23435: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monochromators.c", line 1533: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monochromators.c", line 2953: 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: 1581, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1585, Generating acc routine seq Generating NVIDIA GPU code str_len: 1594, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4217, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4659, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4668, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4680, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4692, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4702, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4712, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4720, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4730, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4752, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4759, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4805, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4840, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4851, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4868, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4879, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4895, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4924, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4935, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4939, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4974, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4981, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4990, #pragma acc loop seq 4974, Generating implicit copy(lens[:]) [if not already present] 4981, Generating implicit firstprivate(ll,l) 4992, Accelerator restriction: induction variable live-out from loop: i 4993, Accelerator restriction: induction variable live-out from loop: i 4994, Accelerator restriction: induction variable live-out from loop: i 4995, Accelerator restriction: induction variable live-out from loop: i 4997, Accelerator restriction: induction variable live-out from loop: j 4998, Accelerator restriction: induction variable live-out from loop: j 4999, Accelerator restriction: induction variable live-out from loop: j 5000, Accelerator restriction: induction variable live-out from loop: j 5022, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5026, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5029, #pragma acc loop seq 5022, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5029, Generating implicit firstprivate(l) 5046, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5050, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5057, #pragma acc loop seq 5046, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5116, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5147, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5164, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5263, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5347, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5413, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5490, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5762, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5774, Generating acc routine seq Generating NVIDIA GPU code _hash: 5806, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5847, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5858, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5863, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5871, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5879, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5886, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6564, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6601, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6661, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6678, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6793, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6848, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7757, Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 7848, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 8373, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 8485, Generating acc routine seq Generating NVIDIA GPU code randrotate: 8500, Generating acc routine seq Generating NVIDIA GPU code randderotate: 8508, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 8516, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 8524, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 8535, Generating acc routine seq Generating NVIDIA GPU code ncrystalsample_surfintersect: 8631, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code Table_Index: 9980, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10048, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10127, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10595, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10611, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10629, Generating acc routine seq Generating NVIDIA GPU code off_F: 10684, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10689, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10699, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10725, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10788, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10919, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10964, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11081, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11199, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11211, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11246, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11497, Generating acc routine seq Generating NVIDIA GPU code merge: 11504, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11608, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 11623, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 11677, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11794, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11816, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 13460, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 14781, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 14798, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 14832, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 14908, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 14946, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 15016, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 15220, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 15281, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 15340, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 15427, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 15466, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 15507, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 15540, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 15565, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 15575, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 15589, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 15605, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 15632, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 15661, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 15685, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 15712, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 15732, Generating acc routine seq Generating NVIDIA GPU code 15765, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 15827, Generating acc routine seq Generating NVIDIA GPU code init: 18505, 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: 18546, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 18636, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 18739, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 18813, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_pol_trace: 18998, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 19121, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_2foc_trace: 19466, Generating acc routine seq Generating NVIDIA GPU code class_Single_crystal_trace: 19661, Generating acc routine seq Generating NVIDIA GPU code class_NCrystal_sample_trace: 20215, Generating acc routine seq Generating NVIDIA GPU code 20319, Reference argument passing prevents parallelization: xsect_abs 20321, Reference argument passing prevents parallelization: xsect_scat class_PSD_monitor_4PI_trace: 20367, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 20445, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 20516, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 21330, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 21334, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21330, Local memory used for .inl_.inl_mcneutron_0_27571,.inl_particle_27556,.inl_.X2491_27573,.inl_.inl_.X2702_15_27572 21334, Generating implicit private(_particle,seed) 21344, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 18923, #pragma acc loop seq Generating implicit reduction(+:.inl_total_27835) 18939, #pragma acc loop seq 19602, #pragma acc loop seq 21349, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21344, Local memory used for .inl_.inl_c_1945_28057,.inl_.inl_.inl_b_1919_1951_28062,.inl_.inl_.inl_.X2667_1918_1950_28061,.inl_.inl_b_1941_28056,.inl_.inl_c_1934_28046,.inl_.inl_.inl_b_1919_1940_28051,.inl_.inl_.inl_.X2667_1918_1939_28050,.inl_.inl_b_1930_28045,.inl_.inl_.X2651_1929_28040,.inl_.inl_c_1926_28039,.inl_c_28122,.inl_.inl_b_1925_28037,.inl_.inl_.X2667_1924_28036,.inl_b_28029,.inl_.X2650_28028,.inl_.X2651_28023,.inl_c_28031,.inl_.X2649_28019,.inl_a_28015,.inl_.inl_c_1945_28007,.inl_.inl_.inl_b_1919_1951_28012,.inl_.inl_.inl_.X2667_1918_1950_28011,.inl_.inl_b_1941_28006,.inl_.inl_c_1934_27996,.inl_.inl_.inl_b_1919_1940_28001,.inl_.inl_.inl_.X2667_1918_1939_28000,.inl_.inl_b_1930_27995,.inl_.inl_.X2651_1929_27990,.inl_.inl_c_1926_27989,.inl_c_28020,.inl_.inl_b_1925_27987,.inl_.inl_.X2667_1924_27986,.inl_b_27979,.inl_.X2650_27978,.inl_.X2651_27973,.inl_c_27981,.inl_.X2649_27969,.inl_a_27965,.inl_.inl_c_1945_27957,.inl_.inl_.inl_b_1919_1951_27962,.inl_.inl_.inl_.X2667_1918_1950_27961,.inl_.inl_b_1941_27956,.inl_.inl_c_1934_27946,.inl_.inl_.inl_b_1919_1940_27951,.inl_.inl_.inl_.X2667_1918_1939_27950,.inl_.inl_b_1930_27945,.inl_.inl_.X2651_1929_27940,.inl_.inl_c_1926_27939,.inl_c_27970,.inl_.inl_b_1925_27937,.inl_.inl_.X2667_1924_27936,.inl_b_27929,.inl_.X2650_27928,.inl_.X2651_27923,.inl_c_27931,.inl_.X2649_27919,.inl_a_27915,.inl_.inl_c_1945_27907,.inl_.inl_.inl_b_1919_1951_27912,.inl_.inl_.inl_.X2667_1918_1950_27911,.inl_.inl_b_1941_27906,.inl_.inl_c_1934_27896,.inl_.inl_.inl_b_1919_1940_27901,.inl_.inl_.inl_.X2667_1918_1939_27900,.inl_.inl_b_1930_27895,.inl_.inl_.X2651_1929_27890,.inl_.inl_c_1926_27889,.inl_c_27920,.inl_.inl_b_1925_27887,.inl_.inl_.X2667_1924_27886,.inl_b_27879,.inl_.X2650_27878,.inl_.X2651_27873,.inl_c_27881,.inl_.X2649_27869,.inl_a_27865,.inl_.inl_c_1945_27772,.inl_.inl_.inl_b_1919_1951_27777,.inl_.inl_.inl_.X2667_1918_1950_27776,.inl_.inl_b_1941_27771,.inl_.inl_c_1934_27761,.inl_.inl_.inl_b_1919_1940_27766,.inl_.inl_.inl_.X2667_1918_1939_27765,.inl_.inl_b_1930_27760,.inl_.inl_.X2651_1929_27755,.inl_.inl_c_1926_27754,.inl_c_27870,.inl_.inl_b_1925_27752,.inl_.inl_.X2667_1924_27751,.inl_b_27744,.inl_.X2650_27743,.inl_.X2651_27738,.inl_c_27746,.inl_.X2649_27734,.inl_a_27730,.inl_.inl_c_1945_27722,.inl_.inl_.inl_b_1919_1951_27727,.inl_.inl_.inl_.X2667_1918_1950_27726,.inl_.inl_b_1941_27721,.inl_.inl_c_1934_27711,.inl_.inl_.inl_b_1919_1940_27716,.inl_.inl_.inl_.X2667_1918_1939_27715,.inl_.inl_b_1930_27710,.inl_.inl_.X2651_1929_27705,.inl_.inl_c_1926_27704,.inl_c_27735,.inl_.inl_b_1925_27702,.inl_.inl_.X2667_1924_27701,.inl_b_27694,.inl_.X2650_27693,.inl_.X2651_27688,.inl_c_27696,.inl_.X2649_27684,.inl_a_27680,.inl_.inl_c_1945_27672,.inl_.inl_.inl_b_1919_1951_27677,.inl_.inl_.inl_.X2667_1918_1950_27676,.inl_.inl_b_1941_27671,.inl_.inl_c_1934_27661,.inl_.inl_.inl_b_1919_1940_27666,.inl_.inl_.inl_.X2667_1918_1939_27665,.inl_.inl_b_1930_27660,.inl_.inl_.X2651_1929_27655,.inl_.inl_c_1926_27654,.inl_c_27685,.inl_.inl_b_1925_27652,.inl_.inl_.X2667_1924_27651,.inl_b_27644,.inl_.X2650_27643,.inl_.X2651_27638,.inl_c_27646,.inl_.X2649_27634,.inl_a_27630,.inl_.inl_c_1945_27620,.inl_.inl_.inl_b_1919_1951_27625,.inl_.inl_.inl_.X2667_1918_1950_27624,.inl_.inl_b_1941_27619,.inl_.inl_c_1934_27609,.inl_.inl_.inl_b_1919_1940_27614,.inl_.inl_.inl_.X2667_1918_1939_27613,.inl_.inl_b_1930_27608,.inl_.inl_.X2651_1929_27603,.inl_.inl_c_1926_27602,.inl_c_27635,.inl_.inl_b_1925_27600,.inl_.inl_.X2667_1924_27599,.inl_b_27592,.inl_.X2650_27591,.inl_.X2651_27586,.inl_c_27594,.inl_.X2649_27582,.inl_a_27578,_particle_save,.inl_c_28133,.inl_.inl_c_1934_28148,.inl_.inl_.inl_b_1919_1940_28153,.inl_.inl_.inl_.X2667_1918_1939_28152,.inl_.inl_b_1930_28147,.inl_.inl_c_1926_28141,.inl_.inl_.inl_.X2667_1918_1950_28163,.inl_.inl_.X2667_1924_28138,.inl_.inl_b_1925_28139,.inl_.X2651_28125,.inl_.inl_b_1941_28158,.inl_c_27583,.inl_.inl_.inl_b_1919_1951_28164,.inl_.inl_.X2651_1929_28142,.inl_a_28117,.inl_.X2649_28121,.inl_.X2650_28130,.inl_b_28131,.inl_.inl_c_1945_28159 18909, Scalar last value needed after loop for .inl_mos_sample_27836*5.00000000000000000e+00 at line 18923 Loop carried scalar dependence for .inl_mos_sample_27836 at line 18919,18909 Scalar last value needed after loop for .inl_mos_sample_27836*5.00000000000000000e+00 at line 18934 Scalar last value needed after loop for .inl_mos_sample_27836 at line 18954,18939 18923, Loop is parallelizable 18939, 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_2459_7460_27851*2.00000000000000000e+00)-1.00000000000000000e+00 at line 18939 Scalar last value needed after loop for ((.inl_.inl_.inl_randnum_2463_7466_27857*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2463_7466_27857*2.00000000000000000e+00)-1.00000000000000000e+00)+((.inl_.inl_.inl_randnum_2459_7460_27851*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2459_7460_27851*2.00000000000000000e+00)-1.00000000000000000e+00) at line 18939 19602, 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_2459_8041_28102*2.00000000000000000e+00)-1.00000000000000000e+00 at line 19602 Scalar last value needed after loop for ((.inl_.inl_.inl_randnum_2463_8047_28108*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2463_8047_28108*2.00000000000000000e+00)-1.00000000000000000e+00)+((.inl_.inl_.inl_randnum_2459_8041_28102*2.00000000000000000e+00)-1.00000000000000000e+00*(.inl_.inl_.inl_randnum_2459_8041_28102*2.00000000000000000e+00)-1.00000000000000000e+00) at line 19602 21526, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 21529, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 21526, Local memory used for .inl_.inl_c_1945_28509,.inl_.inl_.inl_b_1919_1951_28514,.inl_.inl_.inl_.X2667_1918_1950_28513,.inl_.inl_b_1941_28508,.inl_.inl_c_1934_28498,.inl_.inl_.inl_b_1919_1940_28503,.inl_.inl_.inl_.X2667_1918_1939_28502,.inl_.inl_b_1930_28497,.inl_.inl_.X2651_1929_28492,.inl_.inl_c_1926_28491,.inl_c_28522,.inl_.inl_b_1925_28489,.inl_.inl_.X2667_1924_28488,.inl_b_28481,.inl_.X2650_28480,.inl_.X2651_28475,.inl_c_28483,.inl_.X2649_28471,.inl_a_28467,.inl_.inl_c_1945_28459,.inl_.inl_.inl_b_1919_1951_28464,.inl_.inl_.inl_.X2667_1918_1950_28463,.inl_.inl_b_1941_28458,.inl_.inl_c_1934_28448,.inl_.inl_.inl_b_1919_1940_28453,.inl_.inl_.inl_.X2667_1918_1939_28452,.inl_.inl_b_1930_28447,.inl_.inl_.X2651_1929_28442,.inl_.inl_c_1926_28441,.inl_c_28472,.inl_.inl_b_1925_28439,.inl_.inl_.X2667_1924_28438,.inl_b_28431,.inl_.X2650_28430,.inl_.X2651_28425,.inl_c_28433,.inl_.X2649_28421,.inl_a_28417,.inl_.inl_c_1945_28409,.inl_.inl_.inl_b_1919_1951_28414,.inl_.inl_.inl_.X2667_1918_1950_28413,.inl_.inl_b_1941_28408,.inl_.inl_c_1934_28398,.inl_.inl_.inl_b_1919_1940_28403,.inl_.inl_.inl_.X2667_1918_1939_28402,.inl_.inl_b_1930_28397,.inl_.inl_.X2651_1929_28392,.inl_.inl_c_1926_28391,.inl_c_28422,.inl_.inl_b_1925_28389,.inl_.inl_.X2667_1924_28388,.inl_b_28381,.inl_.X2650_28380,.inl_.X2651_28375,.inl_c_28383,.inl_.X2649_28371,.inl_a_28367,.inl_.inl_c_1945_28359,.inl_.inl_.inl_b_1919_1951_28364,.inl_.inl_.inl_.X2667_1918_1950_28363,.inl_.inl_b_1941_28358,.inl_.inl_c_1934_28348,.inl_.inl_.inl_b_1919_1940_28353,.inl_.inl_.inl_.X2667_1918_1939_28352,.inl_.inl_b_1930_28347,.inl_.inl_.X2651_1929_28342,.inl_.inl_c_1926_28341,.inl_c_28372,.inl_.inl_b_1925_28339,.inl_.inl_.X2667_1924_28338,.inl_b_28331,.inl_.X2650_28330,.inl_.X2651_28325,.inl_c_28333,.inl_.X2649_28321,.inl_a_28317,.inl_.inl_c_1945_28309,.inl_.inl_.inl_b_1919_1951_28314,.inl_.inl_.inl_.X2667_1918_1950_28313,.inl_.inl_b_1941_28308,.inl_.inl_c_1934_28298,.inl_.inl_.inl_b_1919_1940_28303,.inl_.inl_.inl_.X2667_1918_1939_28302,.inl_.inl_b_1930_28297,.inl_.inl_.X2651_1929_28292,.inl_.inl_c_1926_28291,.inl_c_28322,.inl_.inl_b_1925_28289,.inl_.inl_.X2667_1924_28288,.inl_b_28281,.inl_.X2650_28280,.inl_.X2651_28275,.inl_c_28283,.inl_.X2649_28271,.inl_a_28267,.inl_.inl_c_1945_28259,.inl_.inl_.inl_b_1919_1951_28264,.inl_.inl_.inl_.X2667_1918_1950_28263,.inl_.inl_b_1941_28258,.inl_.inl_c_1934_28248,.inl_.inl_.inl_b_1919_1940_28253,.inl_.inl_.inl_.X2667_1918_1939_28252,.inl_.inl_b_1930_28247,.inl_.inl_.X2651_1929_28242,.inl_.inl_c_1926_28241,.inl_c_28272,.inl_.inl_b_1925_28239,.inl_.inl_.X2667_1924_28238,.inl_b_28231,.inl_.X2650_28230,.inl_.X2651_28225,.inl_c_28233,.inl_.X2649_28221,.inl_a_28217,_particle_save,.inl_c_28533,.inl_.inl_c_1934_28548,.inl_.inl_.inl_b_1919_1940_28553,.inl_.inl_.inl_.X2667_1918_1939_28552,.inl_.inl_b_1930_28547,.inl_.inl_c_1926_28541,.inl_.inl_.inl_.X2667_1918_1950_28563,.inl_.inl_.X2667_1924_28538,.inl_.inl_b_1925_28539,.inl_.X2651_28525,.inl_.inl_b_1941_28558,.inl_c_28222,.inl_.inl_.inl_b_1919_1951_28564,.inl_.inl_.X2651_1929_28542,.inl_a_28517,.inl_.X2649_28521,.inl_.X2650_28530,.inl_b_28531,.inl_.inl_c_1945_28559 finally: 22412, 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: 6006, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcm9LhiKj0Kdh1f.o: in function `cif2hkl': /u/data/pkwi/TESTS/2025-05-14/ANTLR_openacc_1e7_Linux_1e7/Test_Monochromators/./Test_Monochromators.c:7894: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===