INFO: No output directory specified (--dir) INFO: Using directory: "Test_single_magnetic_crystal_20250514_112436" INFO: Regenerating c-file: Test_single_magnetic_crystal.c WARNING: Full-path code-generator "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS" not found!! WARNING: Attempting replacement by "mcstas-antlr -I$MCSTAS" DEBUG: CMD: mcstas-antlr -I$MCSTAS -t -o ./Test_single_magnetic_crystal.c Test_single_magnetic_crystal.instr 2025-05-14 11:25:02.452 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Single_magnetic_crystal(0):read_table-lib :Single_magnetic_crystal(1):interoff-lib 2025-05-14 11:25:02.452 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component polariser -> GPU kernel from component Lmon -> GPU kernel from component Divmon -> GPU kernel from component PSDmon -> GPU kernel from component A3 -> GPU kernel from component A4 -> GPU kernel from component A4180 Component Sample is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component PSD4PImon_spin ----------------------------------------------------------- CFLAGS= -DFUNNEL DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_single_magnetic_crystal.out DEBUG: CMD: nvc -o ./Test_single_magnetic_crystal.out ./Test_single_magnetic_crystal.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL "./Test_single_magnetic_crystal.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 " "./Test_single_magnetic_crystal.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, double t, double sx, double sy, double sz, double p, int mcgravitation, void * mcMagnet, int allow_backprop); ^ "./Test_single_magnetic_crystal.c", line 97: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcparticle, double * x, double * y, double * z, double * vx, double * vy, double * vz, double * t, double * sx, double * sy, double * sz, double * p); ^ "./Test_single_magnetic_crystal.c", line 111: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./Test_single_magnetic_crystal.c", line 115: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_single_magnetic_crystal.c", line 143: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./Test_single_magnetic_crystal.c", line 115: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_single_magnetic_crystal.c", line 175: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./Test_single_magnetic_crystal.c", line 200: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./Test_single_magnetic_crystal.c", line 213: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./Test_single_magnetic_crystal.c", line 230: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./Test_single_magnetic_crystal.c", line 241: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./Test_single_magnetic_crystal.c", line 313: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Test_single_magnetic_crystal.c", line 315: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./Test_single_magnetic_crystal.c", line 665: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./Test_single_magnetic_crystal.c", line 886: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 903: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./Test_single_magnetic_crystal.c", line 905: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./Test_single_magnetic_crystal.c", line 913: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 915: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 917: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 919: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 921: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./Test_single_magnetic_crystal.c", line 1017: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./Test_single_magnetic_crystal.c", line 1019: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./Test_single_magnetic_crystal.c", line 1021: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./Test_single_magnetic_crystal.c", line 1023: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./Test_single_magnetic_crystal.c", line 1025: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./Test_single_magnetic_crystal.c", line 1027: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./Test_single_magnetic_crystal.c", line 1029: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./Test_single_magnetic_crystal.c", line 1031: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./Test_single_magnetic_crystal.c", line 1033: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./Test_single_magnetic_crystal.c", line 4585: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_single_magnetic_crystal.c", line 5040: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Test_single_magnetic_crystal.c", line 4959: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_single_magnetic_crystal.c", line 6286: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_single_magnetic_crystal.c", line 7004: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./Test_single_magnetic_crystal.c", line 7006: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./Test_single_magnetic_crystal.c", line 7013: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./Test_single_magnetic_crystal.c", line 7033: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./Test_single_magnetic_crystal.c", line 7035: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./Test_single_magnetic_crystal.c", line 7037: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./Test_single_magnetic_crystal.c", line 7162: warning: Routine "off_intersect_all" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all(double* t0, double* t3, ^ "./Test_single_magnetic_crystal.c", line 7185: warning: Routine "off_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect(double* t0, double* t3, ^ "./Test_single_magnetic_crystal.c", line 7206: warning: Routine "off_x_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect(double *l0,double *l3, ^ "./Test_single_magnetic_crystal.c", line 7533: warning: variable "mm3sq" was declared but never referenced [declared_but_not_referenced] double mm2x=1,mm2y=0,mm2z=0,mm2sq=1,mm3x=0,mm3y=0,mm3z=1,mm3sq=1; ^ "./Test_single_magnetic_crystal.c", line 7504: warning: variable "L_x" was set but never used [set_but_not_used] double S_x,S_y,S_z,L_x,L_y,L_z; ^ "./Test_single_magnetic_crystal.c", line 7504: warning: variable "L_y" was set but never used [set_but_not_used] double S_x,S_y,S_z,L_x,L_y,L_z; ^ "./Test_single_magnetic_crystal.c", line 7504: warning: variable "L_z" was set but never used [set_but_not_used] double S_x,S_y,S_z,L_x,L_y,L_z; ^ "./Test_single_magnetic_crystal.c", line 7570: warning: function "hypot" declared implicitly [implicit_func_decl] if (cabs(f_[0])>FLT_EPSILON || cabs(f_[1])>FLT_EPSILON || cabs(f_[2])>FLT_EPSILON || cabs(f_[3])>FLT_EPSILON ){ ^ "./Test_single_magnetic_crystal.c", line 7397: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_single_magnetic_crystal.c", line 7471: warning: variable "f" was set but never used [set_but_not_used] complex double f=0; ^ "./Test_single_magnetic_crystal.c", line 7383: warning: variable "sTable" was declared but never referenced [declared_but_not_referenced] t_Table sTable; /* sample data table structure from atoms_file */ ^ "./Test_single_magnetic_crystal.c", line 7386: warning: variable "parsing" was declared but never referenced [declared_but_not_referenced] char **parsing; ^ "./Test_single_magnetic_crystal.c", line 7389: warning: variable "nb_atoms" was declared but never referenced [declared_but_not_referenced] double nb_atoms=1; ^ "./Test_single_magnetic_crystal.c", line 9513: warning: Routine "off_F" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_F(double x, double y,double z,double A,double B,double C,double D) { ^ "./Test_single_magnetic_crystal.c", line 9518: warning: Routine "off_sign" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] char off_sign(double a) { ^ "./Test_single_magnetic_crystal.c", line 9527: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_normal(Coords* n, polygon p) ^ "./Test_single_magnetic_crystal.c", line 9553: warning: Routine "off_pnpoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_pnpoly(polygon p, Coords v) ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9556: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_single_magnetic_crystal.c", line 9616: warning: Routine "off_intersectPoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersectPoly(intersection *inter, Coords a, Coords b, polygon p) ^ "./Test_single_magnetic_crystal.c", line 9746: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_init_planes(Coords a, Coords b, ^ "./Test_single_magnetic_crystal.c", line 9790: warning: Routine "off_clip_3D_mod" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_clip_3D_mod(intersection* t, Coords a, Coords b, ^ "./Test_single_magnetic_crystal.c", line 9913: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_single_magnetic_crystal.c", line 10027: warning: Routine "off_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_compare (void const *a, void const *b) ^ "./Test_single_magnetic_crystal.c", line 10039: warning: Routine "off_cleanDouble" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanDouble(intersection* t, int* t_size) ^ "./Test_single_magnetic_crystal.c", line 10074: warning: Routine "off_cleanInOut" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanInOut(intersection* t, int* t_size) ^ "./Test_single_magnetic_crystal.c", line 10326: warning: Routine "Min_int" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Min_int(int x, int y) { ^ "./Test_single_magnetic_crystal.c", line 10332: warning: Routine "merge" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void merge(intersection *arr, int l, int m, int r) ^ "./Test_single_magnetic_crystal.c", line 10823: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_single_magnetic_crystal.c", line 11930: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_single_magnetic_crystal.c", line 11930: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_single_magnetic_crystal.c", line 11930: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Test_single_magnetic_crystal.c", line 12182: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Progress_bar *class_Progress_bar_trace(_class_Progress_bar *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12272: warning: Routine "class_Source_simple_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Source_simple *class_Source_simple_trace(_class_Source_simple *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12375: warning: Routine "class_Set_pol_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Set_pol *class_Set_pol_trace(_class_Set_pol *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12436: warning: Routine "class_L_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_L_monitor *class_L_monitor_trace(_class_L_monitor *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12509: warning: Routine "class_Divergence_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Divergence_monitor *class_Divergence_monitor_trace(_class_Divergence_monitor *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12534: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./Test_single_magnetic_crystal.c", line 12599: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor *class_PSD_monitor_trace(_class_PSD_monitor *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12671: warning: Routine "class_Single_magnetic_crystal_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Single_magnetic_crystal *class_Single_magnetic_crystal_trace(_class_Single_magnetic_crystal *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 12897: warning: function "hypot" declared implicitly [implicit_func_decl] F2=spin_up*(cabs(L[i].f[0])*cabs(L[i].f[0])+cabs(L[i].f[2])*cabs(L[i].f[2])) + spin_down*(cabs(L[i].f[1])*cabs(L[i].f[1])+cabs(L[i].f[3])*cabs(L[i].f[3])); ^ "./Test_single_magnetic_crystal.c", line 12892: warning: variable "F" was declared but never referenced [declared_but_not_referenced] complex double F; ^ "./Test_single_magnetic_crystal.c", line 13007: warning: function "hypot" declared implicitly [implicit_func_decl] sigma_tot=spin_up*(cabs(L[i].f[0])*cabs(L[i].f[0]) + cabs(L[i].f[2])*cabs(L[i].f[2])) + spin_down*(cabs(L[i].f[1])*cabs(L[i].f[1]) + cabs(L[i].f[3])*cabs(L[i].f[3])); ^ "./Test_single_magnetic_crystal.c", line 12999: warning: variable "P_f" was declared but never referenced [declared_but_not_referenced] double spin_up,spin_down,P_i,P_f; ^ "./Test_single_magnetic_crystal.c", line 12738: warning: variable "abs_xlen" was set but never used [set_but_not_used] double abs_xsect, abs_xlen; /* sigma_abs cross section and length */ ^ "./Test_single_magnetic_crystal.c", line 13088: warning: Routine "class_PSD_monitor_4PI_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor_4PI *class_PSD_monitor_4PI_trace(_class_PSD_monitor_4PI *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 13166: warning: Routine "class_PSD_monitor_4PI_spin_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor_4PI_spin *class_PSD_monitor_4PI_spin_trace(_class_PSD_monitor_4PI_spin *_comp, _class_particle *_particle) { ^ "./Test_single_magnetic_crystal.c", line 15161: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_single_magnetic_crystal.c", line 15162: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_single_magnetic_crystal.c", line 1522: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_single_magnetic_crystal.c", line 2942: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 118, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 150, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 177, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 202, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 214, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 230, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 241, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1570, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1574, Generating acc routine seq Generating NVIDIA GPU code str_len: 1583, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4206, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4657, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4669, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4681, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4691, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4701, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4709, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4719, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4741, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4829, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4840, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4857, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4868, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4884, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4913, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4924, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4928, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4963, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4970, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4979, #pragma acc loop seq 4963, Generating implicit copy(lens[:]) [if not already present] 4970, Generating implicit firstprivate(ll,l) 4981, Accelerator restriction: induction variable live-out from loop: i 4982, Accelerator restriction: induction variable live-out from loop: i 4983, Accelerator restriction: induction variable live-out from loop: i 4984, Accelerator restriction: induction variable live-out from loop: i 4986, Accelerator restriction: induction variable live-out from loop: j 4987, Accelerator restriction: induction variable live-out from loop: j 4988, Accelerator restriction: induction variable live-out from loop: j 4989, Accelerator restriction: induction variable live-out from loop: j 5011, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5015, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5018, #pragma acc loop seq 5011, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5018, Generating implicit firstprivate(l) 5035, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5039, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5046, #pragma acc loop seq 5035, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5105, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5136, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5153, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5252, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5336, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5402, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5479, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5751, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5763, Generating acc routine seq Generating NVIDIA GPU code _hash: 5795, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5836, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5847, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5852, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5860, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5868, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5875, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6553, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6590, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6650, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6667, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6782, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6837, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8809, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8877, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8956, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9424, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9440, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9458, Generating acc routine seq Generating NVIDIA GPU code off_F: 9513, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9518, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9528, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9554, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 9617, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 9748, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9793, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9910, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10028, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10040, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10075, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10326, Generating acc routine seq Generating NVIDIA GPU code merge: 10333, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10437, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code quadraticSolve: 10452, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code off_intersect_all: 10506, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 10623, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 10645, Generating acc routine seq Generating NVIDIA GPU code init: 12141, Generating update device(_Lmon_var,_Sample_var,_polariser_var,_instrument_var,_Divmon_var,_A4_var,_PSD4PImon_var,_A4180_var,_A3_var,_PSDmon_var,_PSD4PImon_spin_var,_Origin_var,_Source_var) class_Progress_bar_trace: 12182, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 12272, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 12375, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 12436, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 12509, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 12599, Generating acc routine seq Generating NVIDIA GPU code class_Single_magnetic_crystal_trace: 12671, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 13088, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_spin_trace: 13166, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 13611, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 13615, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 13611, Local memory used for .inl_.inl_mcneutron_0_15115,.inl_particle_15100,.inl_.X2134_15117,.inl_.inl_.X2339_15_15116 13615, Generating implicit firstprivate(seed,_particle) 13625, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 13630, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 13625, Local memory used for .inl_.inl_c_1933_15390,.inl_.inl_.inl_b_1907_1939_15395,.inl_.inl_.inl_.X2304_1906_1938_15394,.inl_.inl_b_1929_15389,.inl_.inl_c_1922_15379,.inl_.inl_.inl_b_1907_1928_15384,.inl_.inl_.inl_.X2304_1906_1927_15383,.inl_.inl_b_1918_15378,.inl_.inl_.X2288_1917_15373,.inl_.inl_c_1914_15372,.inl_c_15403,.inl_.inl_b_1913_15370,.inl_.inl_.X2304_1912_15369,.inl_b_15362,.inl_.X2287_15361,.inl_.X2288_15356,.inl_c_15364,.inl_.X2286_15352,.inl_a_15348,.inl_.inl_c_1933_15340,.inl_.inl_.inl_b_1907_1939_15345,.inl_.inl_.inl_.X2304_1906_1938_15344,.inl_.inl_b_1929_15339,.inl_.inl_c_1922_15329,.inl_.inl_.inl_b_1907_1928_15334,.inl_.inl_.inl_.X2304_1906_1927_15333,.inl_.inl_b_1918_15328,.inl_.inl_.X2288_1917_15323,.inl_.inl_c_1914_15322,.inl_c_15353,.inl_.inl_b_1913_15320,.inl_.inl_.X2304_1912_15319,.inl_b_15312,.inl_.X2287_15311,.inl_.X2288_15306,.inl_c_15314,.inl_.X2286_15302,.inl_a_15298,.inl_.inl_c_1933_15266,.inl_.inl_.inl_b_1907_1939_15271,.inl_.inl_.inl_.X2304_1906_1938_15270,.inl_.inl_b_1929_15265,.inl_.inl_c_1922_15255,.inl_.inl_.inl_b_1907_1928_15260,.inl_.inl_.inl_.X2304_1906_1927_15259,.inl_.inl_b_1918_15254,.inl_.inl_.X2288_1917_15249,.inl_.inl_c_1914_15248,.inl_c_15303,.inl_.inl_b_1913_15246,.inl_.inl_.X2304_1912_15245,.inl_b_15238,.inl_.X2287_15237,.inl_.X2288_15232,.inl_c_15240,.inl_.X2286_15228,.inl_a_15224,.inl_.inl_c_1933_15216,.inl_.inl_.inl_b_1907_1939_15221,.inl_.inl_.inl_.X2304_1906_1938_15220,.inl_.inl_b_1929_15215,.inl_.inl_c_1922_15205,.inl_.inl_.inl_b_1907_1928_15210,.inl_.inl_.inl_.X2304_1906_1927_15209,.inl_.inl_b_1918_15204,.inl_.inl_.X2288_1917_15199,.inl_.inl_c_1914_15198,.inl_c_15229,.inl_.inl_b_1913_15196,.inl_.inl_.X2304_1912_15195,.inl_b_15188,.inl_.X2287_15187,.inl_.X2288_15182,.inl_c_15190,.inl_.X2286_15178,.inl_a_15174,.inl_.inl_c_1933_15164,.inl_.inl_.inl_b_1907_1939_15169,.inl_.inl_.inl_.X2304_1906_1938_15168,.inl_.inl_b_1929_15163,.inl_.inl_c_1922_15153,.inl_.inl_.inl_b_1907_1928_15158,.inl_.inl_.inl_.X2304_1906_1927_15157,.inl_.inl_b_1918_15152,.inl_.inl_.X2288_1917_15147,.inl_.inl_c_1914_15146,.inl_c_15179,.inl_.inl_b_1913_15144,.inl_.inl_.X2304_1912_15143,.inl_b_15136,.inl_.X2287_15135,.inl_.X2288_15130,.inl_c_15138,.inl_.X2286_15126,.inl_a_15122,_particle_save,.inl_c_15414,.inl_.inl_c_1922_15429,.inl_.inl_.inl_b_1907_1928_15434,.inl_.inl_.inl_.X2304_1906_1927_15433,.inl_.inl_b_1918_15428,.inl_.inl_c_1914_15422,.inl_.inl_.inl_.X2304_1906_1938_15444,.inl_.inl_.X2304_1912_15419,.inl_.inl_b_1913_15420,.inl_.X2288_15406,.inl_.inl_b_1929_15439,.inl_c_15127,.inl_.inl_.inl_b_1907_1939_15445,.inl_.inl_.X2288_1917_15423,.inl_a_15398,.inl_.X2286_15402,.inl_.X2287_15411,.inl_b_15412,.inl_.inl_c_1933_15440 13759, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 13762, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 13759, Local memory used for .inl_.inl_.X2286_6675_15645,.inl_c_15588,.inl_.inl_b_1929_15613,.inl_.inl_.X2304_1912_15593,.inl_.X2288_15580,.inl_.inl_.inl_b_1907_1939_15619,.inl_.inl_c_1933_15540,.inl_.inl_.inl_b_1907_1939_15545,.inl_.inl_.inl_.X2304_1906_1938_15544,.inl_.inl_b_1929_15539,.inl_.inl_c_1922_15529,.inl_.inl_.inl_b_1907_1928_15534,.inl_.inl_.inl_.X2304_1906_1927_15533,.inl_.inl_b_1918_15528,.inl_.inl_.X2288_1917_15523,.inl_.inl_c_1914_15522,.inl_c_15577,.inl_.inl_b_1913_15520,.inl_.inl_.X2304_1912_15519,.inl_b_15512,.inl_.X2287_15511,.inl_.X2288_15506,.inl_c_15514,.inl_.X2286_15502,.inl_a_15498,_particle_save,.inl_mcLocG_15639,.inl_.inl_c_1922_15603,.inl_.inl_.inl_b_1907_1928_15608,.inl_.inl_.inl_.X2304_1906_1927_15607,.inl_.inl_b_1918_15602,.inl_.inl_c_1914_15596,.inl_.inl_.inl_.X2304_1906_1938_15618,.inl_.inl_.X2304_6680_15649,.inl_.inl_b_1913_15594,.inl_.inl_.X2287_6686_15658,.inl_.inl_b_6681_15650,.inl_c_15503,.inl_.inl_a_6671_15644,.inl_.inl_.X2288_1917_15597,.inl_a_15572,.inl_.X2286_15576,.inl_.X2287_15585,.inl_b_15586,.inl_.inl_c_1933_15614 finally: 14457, Generating update self(_Lmon_var,_Sample_var,_instrument_var,_polariser_var,_Divmon_var,_A4_var,_PSD4PImon_var,_A4180_var,_A3_var,_PSDmon_var,_PSD4PImon_spin_var,_Origin_var,_Source_var) mcenabletrace: 5995, Generating update device(mcdotrace) nvvmCompileProgram: failed with error 9: NVVM_ERROR_COMPILATION nvnvvmd: error: /tmp/nvaccwYRxicJ_3gPBy.gpu (86492, 21): parse invalid cast opcode for cast from 'double' to 'i32' NVC++-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (./Test_single_magnetic_crystal.c: 13759) NVC++/x86-64 Linux 25.3-0: compilation aborted INFO: call to nvc failed with Command 'nvc -o ./Test_single_magnetic_crystal.out ./Test_single_magnetic_crystal.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 616, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 524, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 311, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Test_single_magnetic_crystal.out ./Test_single_magnetic_crystal.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL' returned non-zero exit status 2.