INFO: No output directory specified (--dir) INFO: Using directory: "templateDIFF_20261121_000826" 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 geometry-mesh-lib.h Embedding library geometry-mesh-lib.c Embedding library monitor_nd-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 interoff-lib.h Embedding library interoff-lib.c 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 106: 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 108: 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 111: 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 128: 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 132: 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 162: 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 132: 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 193: 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 217: 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 228: 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 239: 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 251: 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 332: 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 340: 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 702: 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 934: 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 951: 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 953: 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 961: 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 963: 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 965: 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 967: 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 969: 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 972: 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 1052: 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 1054: 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 1056: 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 1058: 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 1060: 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 1062: 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 1064: 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 1066: 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 1068: 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 5715: warning: variable "exists" was set but never used [set_but_not_used] int exists=0; ^ "./templateDIFF.c", line 8809: 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 8811: 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 8818: 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 8838: 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 8840: 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 8842: 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 9673: warning: Routine "Table_Decreasing" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] static int Table_Decreasing(t_Table *Table) ^ "./templateDIFF.c", line 9759: warning: Routine "Table_In_Bracket" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] static int Table_In_Bracket(double direction, double X, double X1, double X2) ^ "./templateDIFF.c", line 9765: warning: Routine "Table_Value_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] static long Table_Value_Index(t_Table Table, double X, double *X1, double *X2) ^ "./templateDIFF.c", line 13074: 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 15356: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 15356: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 15508: 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 15740: 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 15750: 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 15774: 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 15783: 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 15804: 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 15812: 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 15824: 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 15843: 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 15854: 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 15911: 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 15916: 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 15924: 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 15932: 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 15960: 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 16012: 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 16057: 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 16077: 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 16264: 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 16310: 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 16335: 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 16888: 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 16905: 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 16929: 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 17050: 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 17075: 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 17087: 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 17113: 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 17131: 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 17145: 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 18870: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateDIFF.c", line 18858: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateDIFF.c", line 18915: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateDIFF.c", line 19035: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateDIFF.c", line 19084: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateDIFF.c", line 19155: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateDIFF.c", line 19353: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateDIFF.c", line 19551: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateDIFF.c", line 19648: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateDIFF.c", line 19697: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateDIFF.c", line 19768: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateDIFF.c", line 19966: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateDIFF.c", line 20031: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateDIFF.c", line 20152: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateDIFF.c", line 20233: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateDIFF.c", line 20431: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./templateDIFF.c", line 22270: warning: incompatible redefinition of macro "exit" (declared at line 679) [bad_macro_redef] #define exit(...) noprintf() ^ "./templateDIFF.c", line 22282: 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 22361: 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 22574: 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 22647: 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 22936: 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 23273: 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 23317: 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 23366: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./templateDIFF.c", line 23367: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./templateDIFF.c", line 23370: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./templateDIFF.c", line 23373: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./templateDIFF.c", line 23375: warning: variable "v_min" was declared but never referenced [declared_but_not_referenced] double v_min = line_info.v_min; ^ "./templateDIFF.c", line 23376: warning: variable "v_max" was declared but never referenced [declared_but_not_referenced] double v_max = line_info.v_max; ^ "./templateDIFF.c", line 23377: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./templateDIFF.c", line 23378: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./templateDIFF.c", line 23379: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./templateDIFF.c", line 23380: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./templateDIFF.c", line 23381: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./templateDIFF.c", line 23801: 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 23966: 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 26498: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateDIFF.c", line 26499: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateDIFF.c", line 1652: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ mcgenstate: 121, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 135, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 169, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 195, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 219, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 230, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 239, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 251, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1721, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1725, Generating acc routine seq Generating NVIDIA GPU code str_len: 1734, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 5791, Generating acc routine seq Generating NVIDIA GPU code coords_set: 6278, Generating acc routine seq Generating NVIDIA GPU code coords_get: 6289, Generating acc routine seq Generating NVIDIA GPU code coords_add: 6298, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 6310, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 6322, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 6332, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 6342, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 6350, Generating acc routine seq Generating NVIDIA GPU code coords_len: 6360, Generating acc routine seq Generating NVIDIA GPU code coords_print: 6382, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 6389, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 6435, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 6470, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 6481, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 6498, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 6509, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 6525, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 6554, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 6565, Generating acc routine seq Generating NVIDIA GPU code norm_func: 6569, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 6739, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 6770, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 6787, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 6886, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 6970, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 7036, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 7113, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 7385, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 7397, Generating acc routine seq Generating NVIDIA GPU code _hash: 7429, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 7470, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 7481, Generating acc routine seq Generating NVIDIA GPU code _rand01: 7486, Generating acc routine seq Generating NVIDIA GPU code _rand01_opague: 7493, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 7504, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 7512, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 7519, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 8243, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 8283, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 8357, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 8374, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 8489, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 8544, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9681, Generating acc routine seq Generating NVIDIA GPU code Table_Value_Index: 9766, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9827, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9881, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10368, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10384, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10402, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 10450, Generating acc routine seq Generating NVIDIA GPU code gmesh_intersect: 12676, Generating acc routine seq Generating NVIDIA GPU code gmesh_inside: 12709, Generating acc routine seq Generating NVIDIA GPU code gmesh_face_prop: 12731, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Index: 14189, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 14197, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_MeshIntersect: 15438, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 15508, Generating acc routine seq Generating NVIDIA GPU code off_F: 15911, Generating acc routine seq Generating NVIDIA GPU code off_sign: 15916, Generating acc routine seq Generating NVIDIA GPU code off_coord: 15924, Generating acc routine seq Generating NVIDIA GPU code off_normal: 15933, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 15961, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 16013, Generating acc routine seq Generating NVIDIA GPU code off_insert4: 16058, Generating acc routine seq Generating NVIDIA GPU code off_store_intersection: 16078, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 16265, Generating acc routine seq Generating NVIDIA GPU code off_straddle: 16287, Generating acc routine seq Generating NVIDIA GPU code off_line_hits_box: 16311, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 16338, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 16382, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 16890, Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 16906, Generating acc routine seq Generating NVIDIA GPU code off_intersect_all_idx: 16936, Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 17056, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 17081, Generating acc routine seq Generating NVIDIA GPU code off_intersect_idx: 17094, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect_idx: 17119, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 17136, Generating acc routine seq Generating NVIDIA GPU code off_face_prop: 17146, Generating acc routine seq Generating NVIDIA GPU code mccode_eval_ncrystal_xstable: 17806, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 18234, Generating acc routine seq Generating NVIDIA GPU code init: 22240, 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: 22283, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 22362, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 22575, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 22648, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 22937, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 23274, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 23318, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 23802, Generating acc routine seq Generating NVIDIA GPU code raytrace: 23966, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 24361, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 24378, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 24361, Local memory used for particleN 24378, Generating implicit private(_particle,cloop,loops,seed,mpi_node_rank) finally: 25422, 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: 7647, Generating update device(mcdotrace) /usr/bin//ld: /tmp/nvcWgEjqz26KpAh.o: in function `cif2hkl': /u/data/pkwi/TESTS/2026-11-21/mcstas-3.99.99_openacc_mpi_x_8_1e7_Linux_20261121_0001_24/templateDIFF/./templateDIFF.c:17398: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===