INFO: No output directory specified (--dir) INFO: Using directory: "Single_crystal_validation_20241206_163826" INFO: Regenerating c-file: Single_crystal_validation.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Single_crystal_validation.c Single_crystal_validation.instr 2024-12-06 16:38:31.953 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Single_crystal_process(0):read_table-lib :Single_crystal_process(1):interoff-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib :Single_crystal(2):opencl-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-06 16:38:31.954 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-06 16:38:31.954 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-06 16:38:31.954 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-06 16:38:56.712 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:304 - Could not convert an integer from MCSX_REFL_SLIST_SIZE due to invalid literal for int() with base 10: 'MCSX_REFL_SLIST_SIZE' No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component init -> GPU kernel from component Single_crystal_test_process -> GPU kernel from component Incoherent_process -> GPU kernel from component test_material -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component slit -> GPU kernel from component cylinder_sample_union -> GPU kernel from component Union_logger_2DQ_crystal -> GPU kernel from component Union_logger_2DQ_incoherent Component test_sample is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component test_sample -> GPU kernel from component sample -> GPU kernel from component det -> GPU kernel from component Banana_monitor -> GPU kernel from component PSDlin_transmission_scattered -> GPU kernel from component PSDlin_transmission_transmitted -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Single_crystal_validation.out DEBUG: CMD: nvc -o ./Single_crystal_validation.out ./Single_crystal_validation.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Single_crystal_validation.c", line 4491: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Single_crystal_validation.c", line 8835: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Single_crystal_validation.c", line 9359: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Single_crystal_validation.c", line 9382: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Single_crystal_validation.c", line 9870: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Single_crystal_validation.c", line 9871: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Single_crystal_validation.c", line 9872: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Single_crystal_validation.c", line 10032: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10252: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 10411: 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; ^ "./Single_crystal_validation.c", line 10412: 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; ^ "./Single_crystal_validation.c", line 10687: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Single_crystal_validation.c", line 10446: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10448: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Single_crystal_validation.c", line 10449: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Single_crystal_validation.c", line 10450: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Single_crystal_validation.c", line 10474: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Single_crystal_validation.c", line 10483: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10483: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10485: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 10534: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Single_crystal_validation.c", line 10701: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Single_crystal_validation.c", line 10702: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Single_crystal_validation.c", line 10703: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Single_crystal_validation.c", line 10732: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10790: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 10806: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10806: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Single_crystal_validation.c", line 10807: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Single_crystal_validation.c", line 10808: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 11245: warning: variable "vector2" is used before its value is set [used_before_set] if (verbal == 1) printf("vector1 = (%f,%f,%f)\n",vector1.x,vector1.y,vector2.z); ^ "./Single_crystal_validation.c", line 11234: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11311: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11518: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11616: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Single_crystal_validation.c", line 11802: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11995: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 11996: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12530: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 12531: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12930: warning: variable "square_center" is used before its value is set [used_before_set] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ "./Single_crystal_validation.c", line 12790: 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; ^ "./Single_crystal_validation.c", line 12795: 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; ^ "./Single_crystal_validation.c", line 12796: 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; ^ "./Single_crystal_validation.c", line 12797: 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; ^ "./Single_crystal_validation.c", line 12804: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 12805: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12928: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Single_crystal_validation.c", line 13194: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Single_crystal_validation.c", line 13260: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 13446: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 13449: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Single_crystal_validation.c", line 13606: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 13609: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Single_crystal_validation.c", line 14528: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Single_crystal_validation.c", line 14437: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Single_crystal_validation.c", line 14740: 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; ^ "./Single_crystal_validation.c", line 14930: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Single_crystal_validation.c", line 15079: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Single_crystal_validation.c", line 15483: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Single_crystal_validation.c", line 16662: warning: missing return statement at end of non-void function "Single_crystal_physics_my" [implicit_return_from_non_void_function] }; ^ "./Single_crystal_validation.c", line 16674: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16674: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16674: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16675: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16675: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16675: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 16677: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double adjust, r, sum; /* Temporaries */ ^ "./Single_crystal_validation.c", line 16680: warning: variable "kix" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Single_crystal_validation.c", line 16680: warning: variable "kiy" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Single_crystal_validation.c", line 16680: warning: variable "kiz" was declared but never referenced [declared_but_not_referenced] double kix = k_initial[0],kiy = k_initial[1],kiz = k_initial[2]; ^ "./Single_crystal_validation.c", line 17470: warning: return value type does not match the function type [bad_return_value_type] if(!ext || ext == infile) return infile; ^ "./Single_crystal_validation.c", line 17479: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Single_crystal_validation.c", line 17482: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Single_crystal_validation.c", line 17972: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Single_crystal_validation.c", line 17973: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 17973: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20552: 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; ^ "./Single_crystal_validation.c", line 20909: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Single_crystal_validation.c", line 24204: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 24204: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 24231: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 24231: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 24322: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24395: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24434: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24470: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24506: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24551: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 25147: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 25271: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25271: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25271: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25272: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 27316: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27316: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27316: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27317: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 28707: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Single_crystal_validation.c", line 29708: warning: variable "rho_x" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 29708: warning: variable "rho_y" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 29708: warning: variable "rho_z" was declared but never referenced [declared_but_not_referenced] double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./Single_crystal_validation.c", line 29709: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Single_crystal_validation.c", line 29710: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Single_crystal_validation.c", line 29711: warning: variable "ox" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 29711: warning: variable "oy" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 29711: warning: variable "oz" was declared but never referenced [declared_but_not_referenced] double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./Single_crystal_validation.c", line 29712: warning: variable "b1x" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29712: warning: variable "b1y" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29712: warning: variable "b1z" was declared but never referenced [declared_but_not_referenced] double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29713: warning: variable "b2x" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29713: warning: variable "b2y" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29713: warning: variable "b2z" was declared but never referenced [declared_but_not_referenced] double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./Single_crystal_validation.c", line 29714: warning: variable "n11" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 29714: warning: variable "n12" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 29714: warning: variable "n22" was declared but never referenced [declared_but_not_referenced] double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./Single_crystal_validation.c", line 29715: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Single_crystal_validation.c", line 29716: warning: variable "inv_n11" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 29716: warning: variable "inv_n12" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 29716: warning: variable "inv_n22" was declared but never referenced [declared_but_not_referenced] double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./Single_crystal_validation.c", line 29717: warning: variable "l11" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 29717: warning: variable "l12" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 29717: warning: variable "l22" was declared but never referenced [declared_but_not_referenced] double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./Single_crystal_validation.c", line 29718: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Single_crystal_validation.c", line 29719: warning: variable "Bt_D_O_x" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Single_crystal_validation.c", line 29719: warning: variable "Bt_D_O_y" was declared but never referenced [declared_but_not_referenced] double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./Single_crystal_validation.c", line 29720: warning: variable "y0x" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Single_crystal_validation.c", line 29720: warning: variable "y0y" was declared but never referenced [declared_but_not_referenced] double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./Single_crystal_validation.c", line 29721: warning: variable "alpha" was declared but never referenced [declared_but_not_referenced] double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./Single_crystal_validation.c", line 29728: warning: variable "tot_xsect" was declared but never referenced [declared_but_not_referenced] double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./Single_crystal_validation.c", line 29735: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Single_crystal_validation.c", line 29735: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double theta, phi; /* rotation angles for curved lattice option */ ^ "./Single_crystal_validation.c", line 29744: warning: variable "type" was set but never used [set_but_not_used] char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./Single_crystal_validation.c", line 33558: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Single_crystal_validation.c", line 33559: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Single_crystal_validation.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Single_crystal_validation.c", line 2903: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code distance_between: 8090, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code length_of_3vector: 8098, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8113, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code on_int_list: 8128, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8349, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 8679, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 8759, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code initialize_tagging_tree_node: 8782, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_process_node: 8808, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_volume_node: 8828, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code add_statistics_to_node: 8877, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code clear_intersection_table: 9175, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_advanced: 9858, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_simple: 10052, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_simple: 10093, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cone: 10112, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cone_intersect: 10176, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_advanced: 10960, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_sphere_intersect: 11087, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_sphere: 11109, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cylinder_intersect: 11154, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cylinder: 11215, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_function: 13336, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_function: 13368, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code within_which_volume_GPU: 13566, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code hkl_search_union: 16413, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code hkl_select_union: 16512, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code randrotate_union: 16526, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code randderotate_union: 16533, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code PGrotate_union: 16540, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code PGderotate_union: 16547, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Single_crystal_physics_my: 16578, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Single_crystal_physics_scattering: 16666, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Incoherent_physics_my: 16779, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Incoherent_physics_scattering: 16785, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 17446, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 17962, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 18074, Generating acc routine seq Generating NVIDIA GPU code randrotate: 18089, Generating acc routine seq Generating NVIDIA GPU code randderotate: 18097, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 18105, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 18113, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 18124, Generating acc routine seq Generating NVIDIA GPU code physics_my: 18164, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code physics_scattering: 18223, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 19809, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 19877, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 19956, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 20424, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 20440, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 20458, Generating acc routine seq Generating NVIDIA GPU code off_F: 20509, Generating acc routine seq Generating NVIDIA GPU code off_sign: 20514, Generating acc routine seq Generating NVIDIA GPU code off_normal: 20524, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 20550, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 20613, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 20744, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 20789, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 20906, Generating acc routine seq Generating NVIDIA GPU code off_compare: 21024, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 21036, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 21071, Generating acc routine seq Generating NVIDIA GPU code Min_int: 21322, Generating acc routine seq Generating NVIDIA GPU code merge: 21329, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 21433, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 21448, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 21502, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 21619, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 21641, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 23200, Generating acc routine seq Generating NVIDIA GPU code init: 27809, Generating update device(_det_var,_PSDlin_transmission_transmitted_var,_Banana_monitor_var,_stop_var,_Incoherent_process_var,_slit_var,_sample_var,_Union_logger_2DQ_incoherent_var,_Single_crystal_test_process_var,_Union_logger_2DQ_crystal_var,_test_sample_var,_test_material_var,_instrument_var,_cylinder_sample_union_var,_Origin_var,_PSDlin_transmission_scattered_var,_source_var,_init_var) class_Single_crystal_process_trace: 27851, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 27945, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 28035, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 28138, Generating acc routine seq Generating NVIDIA GPU code NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - abs_loggers_with_data_array (./Single_crystal_validation.c: 29381) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Single_crystal_validation.c: 29329) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Single_crystal_validation.c: 28374) class_Union_master_trace: 29336, Accelerator restriction: Indirect function/procedure calls are not supported 29388, Accelerator restriction: Indirect function/procedure calls are not supported 29434, Accelerator restriction: Indirect function/procedure calls are not supported class_Single_crystal_trace: 29650, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 30207, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 30285, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 30575, Generating acc routine seq Generating NVIDIA GPU code raytrace: 30660, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 30965, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 30979, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 30965, Local memory used for .inl_particle_38865,particleN,.inl_.inl_mcneutron_0_38880,.inl_.X3161_38882,.inl_.inl_.X3369_15_38881 30979, Generating implicit firstprivate(seed,_particle) finally: 32550, Generating update self(_det_var,_PSDlin_transmission_transmitted_var,_Banana_monitor_var,_stop_var,_Incoherent_process_var,_slit_var,_sample_var,_Union_logger_2DQ_incoherent_var,_Single_crystal_test_process_var,_Union_logger_2DQ_crystal_var,_test_sample_var,_test_material_var,_instrument_var,_cylinder_sample_union_var,_Origin_var,_PSDlin_transmission_scattered_var,_source_var,_init_var) mcenabletrace: 5892, Generating update device(mcdotrace) nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION. Error: /tmp/nvaccxE7HmfMt5pYkn.gpu (129000, 37): parse use of undefined value '@class_Union_master_trace' NVC++-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (./Single_crystal_validation.c: 30965) NVC++/x86-64 Linux 24.7-0: compilation aborted INFO: call to nvc failed with Command 'nvc -o ./Single_crystal_validation.out ./Single_crystal_validation.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' 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 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, 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 ./Single_crystal_validation.out ./Single_crystal_validation.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2.