INFO: No output directory specified (--dir) INFO: Using directory: "Bispectral_20251212_143259" INFO: Regenerating c-file: Bispectral.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 ./Bispectral.c Bispectral.instr 2025-12-12 14:33:45.760 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :ESS_butterfly(0):ESS_butterfly-lib :Mirror_surface(0):read_table-lib :Mirror_surface(1):ref-lib :ref-lib(0):read_table-lib 2025-12-12 14:33:45.761 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib 2025-12-12 14:33:45.761 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ESS_butterfly-lib ref-lib line 7988:6 no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:33:56.942 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:33:56.943 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:33:56.943 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:33:56.944 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:33:56.944 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:33:56.944 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:33:56.944 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:33:56.944 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:33:56.944 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7988:6 mismatched input ')' expecting '}' 2025-12-12 14:33:56.960 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:33:56.961 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ mismatched input ')' expecting '}' 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:33:56.961 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7990:0 mismatched input '}' expecting 2025-12-12 14:33:56.962 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7990,0 2025-12-12 14:33:56.962 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:33:56.962 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:33:56.963 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:33:56.963 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-12-12 14:33:56.963 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - }; 2025-12-12 14:33:56.963 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ^ mismatched input '}' expecting 2025-12-12 14:33:56.963 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 14:33:56.963 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - void generate_parents_lists(struct pointer_to_1d_int_list **parents_lists, struct Volume_struct **Volumes, int number_of_volumes, int verbal, int mask_mode) { 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 Start_of_bi -> GPU kernel from component focus_center -> GPU kernel from component init -> GPU kernel from component Cu_total -> GPU kernel from component Cu -> GPU kernel from component Si_total -> GPU kernel from component Si -> GPU kernel from component m2_mirror -> GPU kernel from component m4_mirror -> GPU kernel from component Cu_box -> GPU kernel from component Vacuum_box -> GPU kernel from component si_blade_0 -> GPU kernel from component si_blade_1 -> GPU kernel from component si_blade_2 -> GPU kernel from component si_blade_3 -> GPU kernel from component si_blade_4 -> GPU kernel from component si_blade_5 -> GPU kernel from component si_blade_6 -> GPU kernel from component si_blade_7 -> GPU kernel from component si_blade_8 -> GPU kernel from component si_blade_9 -> GPU kernel from component si_blade_10 -> GPU kernel from component si_blade_11 -> GPU kernel from component si_blade_12 Component master is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component monitor_Div_L -> GPU kernel from component monitor_L -> GPU kernel from component monitor_PSD ----------------------------------------------------------- CFLAGS= -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DFUNNEL DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Bispectral.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: nvc -o ./Bispectral.out ./Bispectral.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DFUNNEL "./Bispectral.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 " "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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*); ^ "./Bispectral.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); ^ "./Bispectral.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); ^ "./Bispectral.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){ ^ "./Bispectral.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){ ^ "./Bispectral.c", line 308: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Bispectral.c", line 310: 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); ^ "./Bispectral.c", line 661: 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 */ ^ "./Bispectral.c", line 882: 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); ^ "./Bispectral.c", line 899: 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); ^ "./Bispectral.c", line 901: 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]); ^ "./Bispectral.c", line 909: 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); ^ "./Bispectral.c", line 911: 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); ^ "./Bispectral.c", line 913: 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); ^ "./Bispectral.c", line 915: 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); ^ "./Bispectral.c", line 917: 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); ^ "./Bispectral.c", line 1013: 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); ^ "./Bispectral.c", line 1015: 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); ^ "./Bispectral.c", line 1017: 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); ^ "./Bispectral.c", line 1019: 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); ^ "./Bispectral.c", line 1021: 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); ^ "./Bispectral.c", line 1023: 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); ^ "./Bispectral.c", line 1025: 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); ^ "./Bispectral.c", line 1027: 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); ^ "./Bispectral.c", line 1029: 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); ^ "./Bispectral.c", line 4640: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Bispectral.c", line 5095: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Bispectral.c", line 5014: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Bispectral.c", line 6341: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Bispectral.c", line 7062: 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 */ ^ "./Bispectral.c", line 7064: 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 */ ^ "./Bispectral.c", line 7071: 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 */ ^ "./Bispectral.c", line 7091: 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); ^ "./Bispectral.c", line 7093: 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); ^ "./Bispectral.c", line 7095: 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, ^ "./Bispectral.c", line 9253: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Bispectral.c", line 9809: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Bispectral.c", line 9836: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Bispectral.c", line 10361: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Bispectral.c", line 10362: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Bispectral.c", line 10363: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Bispectral.c", line 10585: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Bispectral.c", line 10647: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 10647: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 10647: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Bispectral.c", line 10868: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Bispectral.c", line 11173: warning: variable "radius_top" was declared but never referenced [declared_but_not_referenced] double radius_top = geometry->geometry_parameters.p_cone_storage->cone_radius_top; ^ "./Bispectral.c", line 11174: warning: variable "radius_bottom" was declared but never referenced [declared_but_not_referenced] double radius_bottom = geometry->geometry_parameters.p_cone_storage->cone_radius_bottom; ^ "./Bispectral.c", line 11419: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Bispectral.c", line 11210: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Bispectral.c", line 11212: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Bispectral.c", line 11213: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Bispectral.c", line 11214: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Bispectral.c", line 11238: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Bispectral.c", line 11247: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11247: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11249: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Bispectral.c", line 11291: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Bispectral.c", line 11460: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Bispectral.c", line 11490: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Bispectral.c", line 11509: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11509: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Bispectral.c", line 11510: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Bispectral.c", line 11511: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Bispectral.c", line 11748: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./Bispectral.c", line 11914: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./Bispectral.c", line 11969: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12046: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12258: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12356: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Bispectral.c", line 12547: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 12745: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 12746: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13331: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 13332: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13591: warning: variable "is_rectangle" was declared but never referenced [declared_but_not_referenced] int is_rectangle = geometry_box->geometry_parameters.p_box_storage->is_rectangle; ^ "./Bispectral.c", line 13596: warning: variable "y_height2" was declared but never referenced [declared_but_not_referenced] double y_height2 = geometry_box->geometry_parameters.p_box_storage->y_height2; ^ "./Bispectral.c", line 13597: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry_box->geometry_parameters.p_box_storage->x_vector; ^ "./Bispectral.c", line 13598: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry_box->geometry_parameters.p_box_storage->y_vector; ^ "./Bispectral.c", line 13605: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Bispectral.c", line 13606: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Bispectral.c", line 13729: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Bispectral.c", line 14023: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Bispectral.c", line 14089: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Bispectral.c", line 14276: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Bispectral.c", line 14279: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Bispectral.c", line 14436: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Bispectral.c", line 14439: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Bispectral.c", line 15437: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Bispectral.c", line 15340: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Bispectral.c", line 15659: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,parent,mask_index,masked_volume_index,ANY_logic,true_parent_volume_number; ^ "./Bispectral.c", line 15869: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Bispectral.c", line 16030: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Bispectral.c", line 16434: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Bispectral.c", line 20032: warning: incompatible redefinition of macro "exit" (declared at line 640) [bad_macro_redef] #define exit(...) noprintf() ^ "./Bispectral.c", line 20316: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./Bispectral.c", line 20395: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20609: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20653: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20705: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20757: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20809: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20864: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 20918: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 22575: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 22627: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Bispectral.c", line 22994: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./Bispectral.c", line 23003: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./Bispectral.c", line 25508: 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) { ^ "./Bispectral.c", line 25598: warning: Routine "class_ESS_butterfly_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_ESS_butterfly *class_ESS_butterfly_trace(_class_ESS_butterfly *_comp, _class_particle *_particle) { ^ "./Bispectral.c", line 25680: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./Bispectral.c", line 25681: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./Bispectral.c", line 25887: warning: Routine "class_NCrystal_process_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_NCrystal_process *class_NCrystal_process_trace(_class_NCrystal_process *_comp, _class_particle *_particle) { ^ "./Bispectral.c", line 25932: warning: Routine "class_Mirror_surface_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Mirror_surface *class_Mirror_surface_trace(_class_Mirror_surface *_comp, _class_particle *_particle) { ^ "./Bispectral.c", line 25977: warning: Routine "class_Union_master_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Union_master *class_Union_master_trace(_class_Union_master *_comp, _class_particle *_particle) { ^ "./Bispectral.c", line 26647: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Bispectral.c", line 27507: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./Bispectral.c", line 27540: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./Bispectral.c", line 26150: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Bispectral.c", line 28060: warning: Routine "class_DivLambda_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_DivLambda_monitor *class_DivLambda_monitor_trace(_class_DivLambda_monitor *_comp, _class_particle *_particle) { ^ "./Bispectral.c", line 28087: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./Bispectral.c", line 28158: 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) { ^ "./Bispectral.c", line 28231: 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) { ^ "./Bispectral.c", line 31152: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Bispectral.c", line 31153: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Bispectral.c", line 1517: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Bispectral.c", line 2986: 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: 1565, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1569, Generating acc routine seq Generating NVIDIA GPU code str_len: 1578, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4258, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4692, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4703, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4712, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4724, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4736, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4746, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4756, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4764, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4774, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4796, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4803, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4849, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4884, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4895, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4912, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4923, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4939, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4968, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4979, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4983, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5018, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5025, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5034, #pragma acc loop seq 5018, Generating implicit copy(lens[:]) [if not already present] 5025, Generating implicit firstprivate(ll,l) 5036, Accelerator restriction: induction variable live-out from loop: i 5037, Accelerator restriction: induction variable live-out from loop: i 5038, Accelerator restriction: induction variable live-out from loop: i 5039, Accelerator restriction: induction variable live-out from loop: i 5041, Accelerator restriction: induction variable live-out from loop: j 5042, Accelerator restriction: induction variable live-out from loop: j 5043, Accelerator restriction: induction variable live-out from loop: j 5044, Accelerator restriction: induction variable live-out from loop: j 5066, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5070, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5073, #pragma acc loop seq 5066, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5073, Generating implicit firstprivate(l) 5090, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5094, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5101, #pragma acc loop seq 5090, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5160, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5191, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5208, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5391, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5457, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5534, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5806, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5818, Generating acc routine seq Generating NVIDIA GPU code _hash: 5850, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5891, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5902, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5907, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5915, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5923, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5930, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6608, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6648, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6708, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6725, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6840, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6895, Generating acc routine seq Generating NVIDIA GPU code distance_between: 8222, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_3vector: 8230, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_position_vector: 8234, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8245, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code on_int_list: 8260, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8599, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 9097, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 9177, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code NVC++-S-1058-Call to variadic function not supported - fprintf (./Bispectral.c: 9204) NVC++/x86-64 Linux 25.9-0: compilation completed with severe errors INFO: call to nvc failed with Command 'nvc -o ./Bispectral.out ./Bispectral.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DFUNNEL' returned non-zero exit status 2. ERROR: Compilation failed for ./Bispectral.c using compiler nvc