INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_OSIRIS_20251212_103533" INFO: Regenerating c-file: ISIS_OSIRIS.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 ./ISIS_OSIRIS.c ISIS_OSIRIS.instr 2025-12-12 10:36:12.820 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Guide_curved(0):ref-lib :Incoherent(0):read_table-lib :Incoherent(1):interoff-lib :Monochromator_pol(0):pol-lib 2025-12-12 10:36:12.821 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib interoff-lib 2025-12-12 10:36:12.821 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib pol-lib 2025-12-12 10:36:12.821 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib interoff-lib 2025-12-12 10:36:12.821 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib interoff-lib 2025-12-12 10:36:23.775 | INFO | mccode_antlr.translators.c:include_source:341 - pol-lib.c requested interpolation-lib but is has not been included yet! The instrument has 3 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component armStart -> GPU kernel from component isis_mod -> GPU kernel from component tofSource -> GPU kernel from component armStraight1 -> GPU kernel from component lamStart -> GPU kernel from component psdStart -> GPU kernel from component guide_straight_1 -> GPU kernel from component armChopper1 -> GPU kernel from component chopper1 -> GPU kernel from component armCurved1 -> GPU kernel from component guide_curved1 -> GPU kernel from component armChopper2 -> GPU kernel from component chopper2 -> GPU kernel from component armCurved2 -> GPU kernel from component guide_curved2 -> GPU kernel from component armStraight2 -> GPU kernel from component guide_straight_2 -> GPU kernel from component armSuper -> GPU kernel from component guide_super -> GPU kernel from component armTarget -> GPU kernel from component lamTarget -> GPU kernel from component psdTarget -> GPU kernel from component vsample1 -> GPU kernel from component vsample2 -> GPU kernel from component vsample3 -> GPU kernel from component beamStop -> GPU kernel from component armAnalyzer -> GPU kernel from component graphite_analyser0 -> GPU kernel from component graphite_analyser1 -> GPU kernel from component graphite_analyser2 -> GPU kernel from component graphite_analyser3 -> GPU kernel from component graphite_analyser4 -> GPU kernel from component graphite_analyser5 -> GPU kernel from component graphite_analyser6 -> GPU kernel from component graphite_analyser7 -> GPU kernel from component graphite_analyser8 -> GPU kernel from component graphite_analyser9 -> GPU kernel from component graphite_analyser10 -> GPU kernel from component graphite_analyser11 -> GPU kernel from component graphite_analyser12 -> GPU kernel from component graphite_analyser13 -> GPU kernel from component graphite_analyser14 -> GPU kernel from component graphite_analyser15 -> GPU kernel from component graphite_analyser16 -> GPU kernel from component graphite_analyser17 -> GPU kernel from component graphite_analyser18 -> GPU kernel from component graphite_analyser19 -> GPU kernel from component graphite_analyser20 -> GPU kernel from component graphite_analyser21 -> GPU kernel from component graphite_analyser22 -> GPU kernel from component graphite_analyser23 -> GPU kernel from component graphite_analyser24 -> GPU kernel from component graphite_analyser25 -> GPU kernel from component graphite_analyser26 -> GPU kernel from component graphite_analyser27 -> GPU kernel from component graphite_analyser28 -> GPU kernel from component graphite_analyser29 -> GPU kernel from component graphite_analyser30 -> GPU kernel from component graphite_analyser31 -> GPU kernel from component graphite_analyser32 -> GPU kernel from component graphite_analyser33 -> GPU kernel from component graphite_analyser34 -> GPU kernel from component graphite_analyser35 -> GPU kernel from component graphite_analyser36 -> GPU kernel from component graphite_analyser37 -> GPU kernel from component graphite_analyser38 -> GPU kernel from component graphite_analyser39 -> GPU kernel from component armHelp -> GPU kernel from component armDetector -> GPU kernel from component lamDetector -> GPU kernel from component psdDetector -> GPU kernel from component tofDetector ----------------------------------------------------------- DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ISIS_OSIRIS.out DEBUG: CMD: nvc -o ./ISIS_OSIRIS.out ./ISIS_OSIRIS.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 "./ISIS_OSIRIS.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 " "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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*); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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){ ^ "./ISIS_OSIRIS.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){ ^ "./ISIS_OSIRIS.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(); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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 */ ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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]); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.c", line 4651: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./ISIS_OSIRIS.c", line 6352: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./ISIS_OSIRIS.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 */ ^ "./ISIS_OSIRIS.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 */ ^ "./ISIS_OSIRIS.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 */ ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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); ^ "./ISIS_OSIRIS.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, ^ "./ISIS_OSIRIS.c", line 7402: 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, ^ "./ISIS_OSIRIS.c", line 7425: 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, ^ "./ISIS_OSIRIS.c", line 7446: 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, ^ "./ISIS_OSIRIS.c", line 7863: warning: variable "Efrac" was declared but never referenced [declared_but_not_referenced] double Efrac; // Fraction of an Energy Bin ^ "./ISIS_OSIRIS.c", line 7873: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_OSIRIS.c", line 8021: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_OSIRIS.c", line 8024: warning: variable "Rend" was set but never used [set_but_not_used] double R0,R1,R,Rend; ^ "./ISIS_OSIRIS.c", line 8029: warning: variable "Estart" was set but never used [set_but_not_used] double Espread,Estart; ^ "./ISIS_OSIRIS.c", line 8030: warning: variable "EX" was declared but never referenced [declared_but_not_referenced] double *EX; ^ "/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. ^ "./ISIS_OSIRIS.c", line 10770: 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, ^ "./ISIS_OSIRIS.c", line 10781: 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, ^ "./ISIS_OSIRIS.c", line 10871: 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) ^ "./ISIS_OSIRIS.c", line 10887: 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, ^ "./ISIS_OSIRIS.c", line 10922: 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) ^ "./ISIS_OSIRIS.c", line 11001: 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, ^ "./ISIS_OSIRIS.c", line 11041: 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) { ^ "./ISIS_OSIRIS.c", line 11115: 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) { ^ "./ISIS_OSIRIS.c", line 11346: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./ISIS_OSIRIS.c", line 11448: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./ISIS_OSIRIS.c", line 12014: 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) { ^ "./ISIS_OSIRIS.c", line 12019: 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) { ^ "./ISIS_OSIRIS.c", line 12028: 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) ^ "./ISIS_OSIRIS.c", line 12054: 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) ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12057: 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; ^ "./ISIS_OSIRIS.c", line 12117: 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) ^ "./ISIS_OSIRIS.c", line 12247: 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, ^ "./ISIS_OSIRIS.c", line 12291: 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, ^ "./ISIS_OSIRIS.c", line 12412: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ISIS_OSIRIS.c", line 12524: 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) ^ "./ISIS_OSIRIS.c", line 12536: 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) ^ "./ISIS_OSIRIS.c", line 12571: 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) ^ "./ISIS_OSIRIS.c", line 12827: 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) { ^ "./ISIS_OSIRIS.c", line 12833: 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) ^ "./ISIS_OSIRIS.c", line 13404: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_OSIRIS.c", line 19040: warning: incompatible redefinition of macro "exit" (declared at line 651) [bad_macro_redef] #define exit(...) noprintf() ^ "./ISIS_OSIRIS.c", line 19041: warning: incompatible redefinition of macro "strcmp" (declared at line 11398) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./ISIS_OSIRIS.c", line 19052: warning: Routine "class_Arm_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Arm *class_Arm_trace(_class_Arm *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19096: warning: Routine "class_ISIS_moderator_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_ISIS_moderator *class_ISIS_moderator_trace(_class_ISIS_moderator *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19127: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double v,r,E; ^ "./ISIS_OSIRIS.c", line 19228: warning: Routine "class_TOF_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_TOF_monitor *class_TOF_monitor_trace(_class_TOF_monitor *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19309: 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) { ^ "./ISIS_OSIRIS.c", line 19382: 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) { ^ "./ISIS_OSIRIS.c", line 19453: warning: Routine "class_Guide_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Guide *class_Guide_trace(_class_Guide *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19606: warning: Routine "class_DiskChopper_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_DiskChopper *class_DiskChopper_trace(_class_DiskChopper *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19696: warning: Routine "class_Guide_curved_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Guide_curved *class_Guide_curved_trace(_class_Guide_curved *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19711: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./ISIS_OSIRIS.c", line 19798: warning: Routine "class_Incoherent_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Incoherent *class_Incoherent_trace(_class_Incoherent *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 19835: warning: variable "l_i" was set but never used [set_but_not_used] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ISIS_OSIRIS.c", line 19835: warning: variable "l_o" was declared but never referenced [declared_but_not_referenced] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ISIS_OSIRIS.c", line 20116: warning: Routine "class_Beamstop_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Beamstop *class_Beamstop_trace(_class_Beamstop *_comp, _class_particle *_particle) { ^ "./ISIS_OSIRIS.c", line 20164: 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) { ^ "./ISIS_OSIRIS.c", line 20183: warning: variable "y1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./ISIS_OSIRIS.c", line 20183: warning: variable "z1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./ISIS_OSIRIS.c", line 20183: warning: variable "t1" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./ISIS_OSIRIS.c", line 20183: warning: variable "dt" was declared but never referenced [declared_but_not_referenced] double y1, z1, t1, dt, vel; ^ "./ISIS_OSIRIS.c", line 20186: warning: variable "sx_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./ISIS_OSIRIS.c", line 20186: warning: variable "sy_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./ISIS_OSIRIS.c", line 20186: warning: variable "sz_in" was declared but never referenced [declared_but_not_referenced] double sx_in, sy_in, sz_in; ^ "./ISIS_OSIRIS.c", line 20187: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./ISIS_OSIRIS.c", line 20498: warning: Routine "raytrace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int raytrace(_class_particle* _particle) { /* single event propagation, called by mccode_main for ISIS_OSIRIS:TRACE */ ^ "./ISIS_OSIRIS.c", line 24932: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ISIS_OSIRIS.c", line 24933: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ISIS_OSIRIS.c", line 1528: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ISIS_OSIRIS.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 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 polInterp: 7599, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for C,D binSearch: 7662, Generating acc routine seq Generating NVIDIA GPU code getPoint: 8020, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9727, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9795, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9874, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10342, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10358, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10376, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10443, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10502, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 10872, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 10889, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 10923, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 11003, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 11041, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 11115, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 11330, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 11395, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for indices interpolator_interpolate3_3: 11460, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 11547, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 11586, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 11627, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for mcMagnet mcmagnet_pop: 11672, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 11697, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 11707, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 11721, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 11737, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 11764, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 11793, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 11817, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 11844, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 11864, Generating acc routine seq Generating NVIDIA GPU code 11897, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 11959, Generating acc routine seq Generating NVIDIA GPU code off_F: 12014, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12019, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12029, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12055, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12118, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12249, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12294, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12409, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12525, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12537, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12572, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12827, Generating acc routine seq Generating NVIDIA GPU code merge: 12834, Generating acc routine seq Generating NVIDIA GPU code CUDA global memory used for L,R p_to_quadratic: 12942, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 12957, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 13011, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13128, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13150, Generating acc routine seq Generating NVIDIA GPU code init: 19011, Generating update device(_armHelp_var,_instrument_var,_tofDetector_var,_armStart_var,_lamDetector_var,_psdDetector_var,_guide_curved2_var,_armAnalyzer_var,_beamStop_var,_armChopper2_var,_graphite_analyser9_var,_armChopper1_var,_chopper1_var,_armCurved1_var,_guide_curved1_var,_armStraight1_var,_guide_straight_1_var,_armStraight2_var,_guide_straight_2_var,_armSuper_var,_lamStart_var,_psdStart_var,_tofSource_var,_vsample1_var,_vsample3_var,_vsample2_var,_armTarget_var,_chopper2_var,_graphite_analyser19_var,_graphite_analyser29_var,_graphite_analyser39_var,_graphite_analyser3_var,_graphite_analyser4_var,_graphite_analyser5_var,_graphite_analyser6_var,_graphite_analyser7_var,_graphite_analyser8_var,_graphite_analyser0_var,_graphite_analyser10_var,_graphite_analyser11_var,_graphite_analyser12_var,_graphite_analyser13_var,_graphite_analyser14_var,_graphite_analyser15_var,_graphite_analyser16_var,_graphite_analyser17_var,_graphite_analyser18_var,_graphite_analyser1_var,_graphite_analyser20_var,_graphite_analyser21_var,_graphite_analyser22_var,_graphite_analyser23_var,_graphite_analyser24_var,_graphite_analyser25_var,_graphite_analyser26_var,_graphite_analyser27_var,_graphite_analyser28_var,_graphite_analyser2_var,_graphite_analyser30_var,_graphite_analyser31_var,_graphite_analyser32_var,_graphite_analyser33_var,_graphite_analyser34_var,_graphite_analyser35_var,_graphite_analyser36_var,_graphite_analyser37_var,_graphite_analyser38_var,_armDetector_var,_armCurved2_var,_isis_mod_var,_lamTarget_var,_psdTarget_var,_guide_super_var) class_Arm_trace: 19052, Generating acc routine seq Generating NVIDIA GPU code class_ISIS_moderator_trace: 19096, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 19228, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 19309, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 19382, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 19453, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 19606, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 19696, Generating acc routine seq Generating NVIDIA GPU code class_Incoherent_trace: 19798, Generating acc routine seq Generating NVIDIA GPU code 19993, Reference argument passing prevents parallelization: solid_angle 19996, Reference argument passing prevents parallelization: solid_angle class_Beamstop_trace: 20116, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_pol_trace: 20164, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20498, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 22130, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 22144, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 22130, Local memory used for particleN 22144, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) finally: 23804, Generating update self(_armHelp_var,_instrument_var,_tofDetector_var,_armStart_var,_lamDetector_var,_psdDetector_var,_guide_curved2_var,_armAnalyzer_var,_beamStop_var,_armChopper2_var,_graphite_analyser9_var,_armChopper1_var,_chopper1_var,_armCurved1_var,_guide_curved1_var,_armStraight1_var,_guide_straight_1_var,_armStraight2_var,_guide_straight_2_var,_armSuper_var,_lamStart_var,_psdStart_var,_tofSource_var,_vsample1_var,_vsample3_var,_vsample2_var,_armTarget_var,_chopper2_var,_graphite_analyser19_var,_graphite_analyser29_var,_graphite_analyser39_var,_graphite_analyser3_var,_graphite_analyser4_var,_graphite_analyser5_var,_graphite_analyser6_var,_graphite_analyser7_var,_graphite_analyser8_var,_graphite_analyser0_var,_graphite_analyser10_var,_graphite_analyser11_var,_graphite_analyser12_var,_graphite_analyser13_var,_graphite_analyser14_var,_graphite_analyser15_var,_graphite_analyser16_var,_graphite_analyser17_var,_graphite_analyser18_var,_graphite_analyser1_var,_graphite_analyser20_var,_graphite_analyser21_var,_graphite_analyser22_var,_graphite_analyser23_var,_graphite_analyser24_var,_graphite_analyser25_var,_graphite_analyser26_var,_graphite_analyser27_var,_graphite_analyser28_var,_graphite_analyser2_var,_graphite_analyser30_var,_graphite_analyser31_var,_graphite_analyser32_var,_graphite_analyser33_var,_graphite_analyser34_var,_graphite_analyser35_var,_graphite_analyser36_var,_graphite_analyser37_var,_graphite_analyser38_var,_armDetector_var,_armCurved2_var,_isis_mod_var,_lamTarget_var,_psdTarget_var,_guide_super_var) mcenabletrace: 6061, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===