INFO: No output directory specified (--dir) INFO: Using directory: "templateDIFF_20261030_001055" INFO: Regenerating c-file: templateDIFF.c DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/bin/mcstas -t -o ./templateDIFF.c templateDIFF.instr --verbose mcstas version 3.99.99 Analyzing file templateDIFF.instr Embedding component Progress_bar from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/misc/Progress_bar.comp Component[1]: Origin = Progress_bar(). Embedding library read_table-lib.h Embedding library read_table-lib.c Embedding component Source_gen from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/sources/Source_gen.comp Component[2]: Source = Source_gen(). Embedding component Arm from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/optics/Arm.comp Component[3]: mono_cradle = Arm(). Embedding component Collimator_linear from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/optics/Collimator_linear.comp Component[4]: Alpha_One = Collimator_linear(). Embedding library monitor_nd-lib.h Embedding library monitor_nd-lib.c Embedding library interoff-lib.h Embedding library interoff-lib.c Embedding component Monitor_nD from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/monitors/Monitor_nD.comp Component[5]: Diff_Mono_XY = Monitor_nD(). Component[6]: Diff_Mono_Lambda = Monitor_nD(). Embedding component Monochromator_curved from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/optics/Monochromator_curved.comp Component[7]: Monok = Monochromator_curved(). Component[8]: mono_out = Arm(). Component[9]: Alpha_Two = Collimator_linear(). Component[10]: Diff_Sample_Lambda = Monitor_nD(). Embedding component Slit from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/optics/Slit.comp Component[11]: Slit_Sample = Slit(). Embedding library mccode-ncrystal-lib.h Embedding library mccode-ncrystal-lib.c Embedding component PowderN from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/samples/PowderN.comp Component[12]: Sample = PowderN(). Embedding component Collimator_radial from file /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/share/mcstas/resources/optics/Collimator_radial.comp Component[13]: collimador_radial = Collimator_radial(). Component[14]: Diff_BananaTheta = Monitor_nD(). Component[15]: Diff_BananaPSD = Monitor_nD(). Combine metadata blocks into table Processed 0 metadata blocks Creating instrument 'templateDIFF' (with 15 component instances) Starting to create C code ./templateDIFF.c Embedding file mccode-r.h (user path) Embedding file mcstas-r.h (user path) Compile './templateDIFF.c -DUSE_NEXUS -lhdf5' to enable NeXus support Embedding file mccode-r.c (user path) Embedding file mcstas-r.c (user path) Writing instrument 'templateDIFF' and components DECLARE Writing instrument 'templateDIFF' and components INITIALISE Writing components TRACE Writing instrument 'templateDIFF' and components SAVE Writing instrument 'templateDIFF' and components FINALLY Writing instrument 'templateDIFF' and components DISPLAY Embedding file metadata-r.c (user path) Embedding file mccode_main.c (user path) Warning: The build of the instrument 'templateDIFF' has 56 warnings/errors. Generated C code ./templateDIFF.c from templateDIFF.instr CFLAGS= @NCRYSTALFLAGS@ --> Added COMPONENT Monok USERVAR ncol_7 with type int --> Added COMPONENT Monok USERVAR nrow_7 with type int ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component Monok -> SPLIT N at component Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Monok -> SPLIT within buffer at component Sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/bin/mcstas finished INFO: Recompiling: ./templateDIFF.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: nvc -o ./templateDIFF.out ./templateDIFF.c -lm -I/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/include -Wl,-rpath,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -L/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -DUSE_MPI -lmpi -fast -Minfo=accel -acc=gpu -gpu=cc61,mem:managed -DOPENACC -Wl,-rpath,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -Wl,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib/libNCrystal.so -I/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/include "./templateDIFF.c", line 93: 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 " "./templateDIFF.c", line 95: 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, ^ "./templateDIFF.c", line 98: 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 mcneutron, double *x, double *y, double *z, ^ "./templateDIFF.c", line 112: 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); ^ "./templateDIFF.c", line 116: 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); ^ "./templateDIFF.c", line 146: 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); ^ "./templateDIFF.c", line 116: 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); ^ "./templateDIFF.c", line 177: 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*); ^ "./templateDIFF.c", line 201: 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); ^ "./templateDIFF.c", line 212: 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); ^ "./templateDIFF.c", line 223: 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){ ^ "./templateDIFF.c", line 235: 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){ ^ "./templateDIFF.c", line 304: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./templateDIFF.c", line 306: 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); ^ "./templateDIFF.c", line 664: 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 */ ^ "./templateDIFF.c", line 892: 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); ^ "./templateDIFF.c", line 909: 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); ^ "./templateDIFF.c", line 911: 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]); ^ "./templateDIFF.c", line 919: 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); ^ "./templateDIFF.c", line 921: 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); ^ "./templateDIFF.c", line 923: 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); ^ "./templateDIFF.c", line 925: 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); ^ "./templateDIFF.c", line 927: 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); ^ "./templateDIFF.c", line 930: warning: Routine "_rand01_opague" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01_opague(void* state); ^ "./templateDIFF.c", line 1010: 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); ^ "./templateDIFF.c", line 1012: 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); ^ "./templateDIFF.c", line 1014: 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); ^ "./templateDIFF.c", line 1016: 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); ^ "./templateDIFF.c", line 1018: 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); ^ "./templateDIFF.c", line 1020: 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); ^ "./templateDIFF.c", line 1022: 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); ^ "./templateDIFF.c", line 1024: 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); ^ "./templateDIFF.c", line 1026: 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); ^ "./templateDIFF.c", line 5568: warning: variable "exists" was set but never used [set_but_not_used] int exists=0; ^ "./templateDIFF.c", line 8645: 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 */ ^ "./templateDIFF.c", line 8647: 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 */ ^ "./templateDIFF.c", line 8654: 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 */ ^ "./templateDIFF.c", line 8674: 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); ^ "./templateDIFF.c", line 8676: 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); ^ "./templateDIFF.c", line 8678: 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, ^ "./templateDIFF.c", line 10451: 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); ^ "./templateDIFF.c", line 12588: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 12588: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 12868: 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, ^ "./templateDIFF.c", line 12878: warning: Routine "off_intersect_all_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all_idx(double* t0, double* t3, ^ "./templateDIFF.c", line 12902: 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, ^ "./templateDIFF.c", line 12911: warning: Routine "off_intersect_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_idx(double* t0, double* t3, ^ "./templateDIFF.c", line 12932: 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, ^ "./templateDIFF.c", line 12940: warning: Routine "off_x_intersect_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect_idx(double *l0,double *l3, ^ "./templateDIFF.c", line 12952: warning: Routine "off_face_prop" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_face_prop(off_struct *data, unsigned long face, int k, double def); ^ "./templateDIFF.c", line 12971: warning: Routine "p_to_quadratic" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void p_to_quadratic(Coords norm, MCNUM d, Coords acc, Coords pos, Coords vel, ^ "./templateDIFF.c", line 12982: warning: Routine "quadraticSolve" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int quadraticSolve(double* eq, double* x1, double* x2); ^ "./templateDIFF.c", line 13039: 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) { ^ "./templateDIFF.c", line 13044: 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) { ^ "./templateDIFF.c", line 13052: warning: Routine "off_coord" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_coord(Coords c, int k) { ^ "./templateDIFF.c", line 13060: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_normal(Coords* n, polygon p) ^ "./templateDIFF.c", line 13088: 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) ^ "./templateDIFF.c", line 13140: 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) ^ "./templateDIFF.c", line 13185: warning: Routine "off_insert4" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_insert4(intersection *t, int *t_size, intersection x) ^ "./templateDIFF.c", line 13205: warning: Routine "off_store_intersection" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_store_intersection(intersection *t, int *t_size, intersection x) ^ "./templateDIFF.c", line 13392: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_init_planes(Coords a, Coords b, Coords *n1, MCNUM* D1, Coords *n2, MCNUM* D2) ^ "./templateDIFF.c", line 13438: warning: Routine "off_line_hits_box" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_line_hits_box(Coords a, Coords dir, Coords lo, Coords hi) ^ "./templateDIFF.c", line 13463: 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, ^ "./templateDIFF.c", line 14006: warning: Routine "p_to_quadratic" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void p_to_quadratic(Coords norm, MCNUM d, Coords acc, Coords pos, Coords vel, ^ "./templateDIFF.c", line 14023: warning: Routine "quadraticSolve" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int quadraticSolve(double* eq, double* x1, double* x2) ^ "./templateDIFF.c", line 14047: warning: Routine "off_intersect_all_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all_idx(double* t0, double* t3, ^ "./templateDIFF.c", line 14168: 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, ^ "./templateDIFF.c", line 14193: 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, ^ "./templateDIFF.c", line 14205: warning: Routine "off_intersect_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_idx(double* t0, double* t3, ^ "./templateDIFF.c", line 14231: warning: Routine "off_x_intersect_idx" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect_idx(double *l0,double *l3, ^ "./templateDIFF.c", line 14249: 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, ^ "./templateDIFF.c", line 14263: warning: Routine "off_face_prop" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_face_prop(off_struct *data, unsigned long face, int k, double def) ^ "./templateDIFF.c", line 14393: warning: Routine "GAUSS_monocurved" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] GAUSS_monocurved (double x, double mean, double rms) { ^ "./templateDIFF.c", line 15941: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateDIFF.c", line 15929: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateDIFF.c", line 15986: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateDIFF.c", line 16106: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateDIFF.c", line 16155: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateDIFF.c", line 16226: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateDIFF.c", line 16424: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateDIFF.c", line 16622: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateDIFF.c", line 16719: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateDIFF.c", line 16768: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateDIFF.c", line 16839: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateDIFF.c", line 17037: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateDIFF.c", line 17102: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateDIFF.c", line 17223: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateDIFF.c", line 17304: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateDIFF.c", line 17502: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./templateDIFF.c", line 19278: warning: incompatible redefinition of macro "exit" (declared at line 641) [bad_macro_redef] #define exit(...) noprintf() ^ "./templateDIFF.c", line 19290: 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] void class_Progress_bar_trace(_class_Progress_bar *_comp ^ "./templateDIFF.c", line 19369: warning: Routine "class_Source_gen_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Source_gen_trace(_class_Source_gen *_comp ^ "./templateDIFF.c", line 19578: warning: Routine "class_Collimator_linear_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Collimator_linear_trace(_class_Collimator_linear *_comp ^ "./templateDIFF.c", line 19651: 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] void class_Monitor_nD_trace(_class_Monitor_nD *_comp ^ "./templateDIFF.c", line 19935: 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] void class_Monochromator_curved_trace(_class_Monochromator_curved *_comp ^ "./templateDIFF.c", line 20272: warning: Routine "class_Slit_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Slit_trace(_class_Slit *_comp ^ "./templateDIFF.c", line 20316: warning: Routine "class_PowderN_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_PowderN_trace(_class_PowderN *_comp ^ "./templateDIFF.c", line 20365: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./templateDIFF.c", line 20366: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./templateDIFF.c", line 20369: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./templateDIFF.c", line 20372: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./templateDIFF.c", line 20376: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./templateDIFF.c", line 20377: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./templateDIFF.c", line 20378: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./templateDIFF.c", line 20379: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./templateDIFF.c", line 20380: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./templateDIFF.c", line 20796: warning: Routine "class_Collimator_radial_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Collimator_radial_trace(_class_Collimator_radial *_comp ^ "./templateDIFF.c", line 20961: 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 templateDIFF:TRACE */ ^ "./templateDIFF.c", line 23420: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateDIFF.c", line 23421: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateDIFF.c", line 1604: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ mcgenstate: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 119, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 179, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 203, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 214, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 223, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 235, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1664, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1668, Generating acc routine seq Generating NVIDIA GPU code str_len: 1677, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 5644, Generating acc routine seq Generating NVIDIA GPU code coords_set: 6131, Generating acc routine seq Generating NVIDIA GPU code coords_get: 6142, Generating acc routine seq Generating NVIDIA GPU code coords_add: 6151, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 6163, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 6175, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 6185, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 6195, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 6203, Generating acc routine seq Generating NVIDIA GPU code coords_len: 6213, Generating acc routine seq Generating NVIDIA GPU code coords_print: 6235, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 6242, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 6288, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 6323, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 6334, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 6351, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 6362, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 6378, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 6407, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 6418, Generating acc routine seq Generating NVIDIA GPU code norm_func: 6422, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 6592, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 6623, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 6640, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 6739, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 6823, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 6889, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 6966, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 7238, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 7250, Generating acc routine seq Generating NVIDIA GPU code _hash: 7282, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 7323, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 7334, Generating acc routine seq Generating NVIDIA GPU code _rand01: 7339, Generating acc routine seq Generating NVIDIA GPU code _rand01_opague: 7346, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 7357, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 7365, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 7372, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 8089, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 8129, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 8203, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 8220, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 8335, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 8390, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9508, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9576, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9655, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10146, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10162, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10180, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 10228, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11529, Generating acc routine seq Generating NVIDIA GPU code off_F: 13039, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13044, Generating acc routine seq Generating NVIDIA GPU code off_coord: 13052, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13061, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13089, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13141, Generating acc routine seq Generating NVIDIA GPU code off_insert4: 13186, Generating acc routine seq Generating NVIDIA GPU code off_store_intersection: 13206, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13393, Generating acc routine seq Generating NVIDIA GPU code off_straddle: 13415, Generating acc routine seq Generating NVIDIA GPU code off_line_hits_box: 13439, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13466, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13510, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 14008, Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 14024, Generating acc routine seq Generating NVIDIA GPU code off_intersect_all_idx: 14054, Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14174, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14199, Generating acc routine seq Generating NVIDIA GPU code off_intersect_idx: 14212, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect_idx: 14237, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14254, Generating acc routine seq Generating NVIDIA GPU code off_face_prop: 14264, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 14393, Generating acc routine seq Generating NVIDIA GPU code mccode_eval_ncrystal_xstable: 14951, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 15379, Generating acc routine seq Generating NVIDIA GPU code init: 19248, Generating update device(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_out_var,_mono_cradle_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) class_Progress_bar_trace: 19291, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 19370, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 19579, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 19652, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 19936, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 20273, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 20317, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 20797, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20961, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 21353, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 21367, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 21353, Local memory used for particleN 21367, Generating implicit private(_particle,cloop,loops,seed,mpi_node_rank) finally: 22360, Generating update self(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_cradle_var,_mono_out_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) mcenabletrace: 7493, Generating update device(mcdotrace) /usr/bin//ld: /tmp/nvckTFkgEsW6nHTw.o: in function `cif2hkl': /u/data/pkwi/TESTS/2026-10-30/mcstas-3.99.99_openacc_mpi_x_8_1e7_Linux_20261030_0001_09/templateDIFF/./templateDIFF.c:14543: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===