INFO: No output directory specified (--dir) INFO: Using directory: "Single_crystal_validation_20241222_121250" INFO: Regenerating c-file: Single_crystal_validation.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Single_crystal_validation.c Single_crystal_validation.instr 2024-12-22 12:13:33.465 | 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-22 12:13:33.466 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-22 12:13:33.466 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib opencl-lib 2024-12-22 12:13:33.466 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib 2024-12-22 12:13:47.744 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - 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 -I$MCSTAS finished INFO: Recompiling: ./Single_crystal_validation.out DEBUG: CMD: nvc -o ./Single_crystal_validation.out ./Single_crystal_validation.c -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=managed -DOPENACC "./Single_crystal_validation.c", line 4492: 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 8837: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Single_crystal_validation.c", line 9361: 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 9384: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Single_crystal_validation.c", line 9872: 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 9873: 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 9874: 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 10034: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10254: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 10413: 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 10414: 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 10689: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Single_crystal_validation.c", line 10448: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10450: 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 10451: 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 10452: 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 10476: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Single_crystal_validation.c", line 10485: 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 10485: 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 10487: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 10536: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Single_crystal_validation.c", line 10703: 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 10704: 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 10705: 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 10734: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Single_crystal_validation.c", line 10792: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Single_crystal_validation.c", line 10808: 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 10808: 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 10809: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Single_crystal_validation.c", line 10810: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Single_crystal_validation.c", line 11247: 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 11236: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11313: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11520: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11618: 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 11804: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 11997: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 11998: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12532: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 12533: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Single_crystal_validation.c", line 12932: 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 12792: 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 12797: 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 12798: 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 12799: 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 12806: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Single_crystal_validation.c", line 12807: 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_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Single_crystal_validation.c", line 13196: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Single_crystal_validation.c", line 13262: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Single_crystal_validation.c", line 13448: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 13451: 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 13608: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Single_crystal_validation.c", line 13611: 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 14530: 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 14439: 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 14742: 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 14932: 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 15081: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Single_crystal_validation.c", line 15485: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Single_crystal_validation.c", line 16664: 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 16676: 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 16676: 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 16676: 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 16677: 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 16677: 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 16677: 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 16679: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double adjust, r, sum; /* Temporaries */ ^ "./Single_crystal_validation.c", line 16682: 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 16682: 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 16682: 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 17472: 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 17481: warning: return value type does not match the function type [bad_return_value_type] && strcasecmp(ext, "res")) return infile; ^ "./Single_crystal_validation.c", line 17484: warning: return value type does not match the function type [bad_return_value_type] if (!OUTFILE) return infile; ^ "./Single_crystal_validation.c", line 17974: warning: variable "jglobal" was declared but never referenced [declared_but_not_referenced] int jglobal=-1; ^ "./Single_crystal_validation.c", line 17975: warning: variable "coherent_refl" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 17975: warning: variable "coherent_xsect" was set but never used [set_but_not_used] double coherent_refl,coherent_xsect; ^ "./Single_crystal_validation.c", line 20555: 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 20555: 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 20555: 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 20555: 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 20555: 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 20555: 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 20912: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Single_crystal_validation.c", line 24222: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 24222: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Single_crystal_validation.c", line 24249: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 24249: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Single_crystal_validation.c", line 24340: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24413: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24452: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24488: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24524: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 24569: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 25166: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Single_crystal_validation.c", line 25290: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25290: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25290: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 25291: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 27337: warning: variable "as" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27337: warning: variable "bs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27337: warning: variable "cs" was declared but never referenced [declared_but_not_referenced] double as, bs, cs; ^ "./Single_crystal_validation.c", line 27338: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i=0; ^ "./Single_crystal_validation.c", line 28743: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Single_crystal_validation.c", line 28370: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Single_crystal_validation.c", line 29745: 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 29745: 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 29745: 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 29746: warning: variable "rho" was declared but never referenced [declared_but_not_referenced] double rho; ^ "./Single_crystal_validation.c", line 29747: warning: variable "diff" was declared but never referenced [declared_but_not_referenced] double diff; /* Deviation from Bragg condition */ ^ "./Single_crystal_validation.c", line 29748: 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 29748: 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 29748: 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 29749: 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 29749: 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 29749: 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 29750: 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 29750: 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 29750: 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 29751: 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 29751: 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 29751: 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 29752: warning: variable "det_N" was declared but never referenced [declared_but_not_referenced] double det_N; /* Determinant of N */ ^ "./Single_crystal_validation.c", line 29753: 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 29753: 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 29753: 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 29754: 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 29754: 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 29754: 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 29755: warning: variable "det_L" was declared but never referenced [declared_but_not_referenced] double det_L; /* Determinant of L */ ^ "./Single_crystal_validation.c", line 29756: 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 29756: 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 29757: 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 29757: 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 29758: 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 29765: 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 29772: 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 29772: 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 29781: 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 33599: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Single_crystal_validation.c", line 33600: 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: 4113, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4544, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4555, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4576, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4588, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4598, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4655, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4701, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4747, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4775, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4791, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4820, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4831, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4835, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5012, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5043, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5060, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5159, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5243, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5309, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5386, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5658, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5668, Generating acc routine seq Generating NVIDIA GPU code _hash: 5694, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5735, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5746, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5751, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5759, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5767, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5774, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6431, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6527, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6544, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6659, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6714, Generating acc routine seq Generating NVIDIA GPU code distance_between: 8092, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code length_of_3vector: 8100, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8115, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code on_int_list: 8130, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8351, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 8681, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 8761, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code initialize_tagging_tree_node: 8784, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_process_node: 8810, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_volume_node: 8830, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code add_statistics_to_node: 8879, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code clear_intersection_table: 9177, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_advanced: 9860, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_simple: 10054, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_simple: 10095, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cone: 10114, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cone_intersect: 10178, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_advanced: 10962, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_sphere_intersect: 11089, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_sphere: 11111, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cylinder_intersect: 11156, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cylinder: 11217, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_function: 13338, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_function: 13370, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code within_which_volume_GPU: 13568, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code hkl_search_union: 16415, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code hkl_select_union: 16514, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code randrotate_union: 16528, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code randderotate_union: 16535, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code PGrotate_union: 16542, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code PGderotate_union: 16549, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Single_crystal_physics_my: 16580, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Single_crystal_physics_scattering: 16668, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Incoherent_physics_my: 16781, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Incoherent_physics_scattering: 16787, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code SX_list_compare: 17448, Generating acc routine seq Generating NVIDIA GPU code hkl_search: 17964, Generating acc routine seq Generating NVIDIA GPU code hkl_select: 18076, Generating acc routine seq Generating NVIDIA GPU code randrotate: 18091, Generating acc routine seq Generating NVIDIA GPU code randderotate: 18099, Generating acc routine seq Generating NVIDIA GPU code PGrotate: 18107, Generating acc routine seq Generating NVIDIA GPU code PGderotate: 18115, Generating acc routine seq Generating NVIDIA GPU code vec_rotate_2d: 18126, Generating acc routine seq Generating NVIDIA GPU code physics_my: 18166, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code physics_scattering: 18225, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 19812, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 19880, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 19959, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 20427, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 20443, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 20461, Generating acc routine seq Generating NVIDIA GPU code off_F: 20512, Generating acc routine seq Generating NVIDIA GPU code off_sign: 20517, Generating acc routine seq Generating NVIDIA GPU code off_normal: 20527, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 20553, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 20616, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 20747, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 20792, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 20909, Generating acc routine seq Generating NVIDIA GPU code off_compare: 21027, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 21039, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 21074, Generating acc routine seq Generating NVIDIA GPU code Min_int: 21325, Generating acc routine seq Generating NVIDIA GPU code merge: 21332, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 21436, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 21451, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 21505, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 21622, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 21644, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 23203, Generating acc routine seq Generating NVIDIA GPU code init: 27830, 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: 27872, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 27966, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 28056, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 28159, 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: 29417) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Single_crystal_validation.c: 29365) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Single_crystal_validation.c: 28402) class_Union_master_trace: 29372, Accelerator restriction: Indirect function/procedure calls are not supported 29424, Accelerator restriction: Indirect function/procedure calls are not supported 29470, Accelerator restriction: Indirect function/procedure calls are not supported class_Single_crystal_trace: 29687, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 30244, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 30322, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 30612, Generating acc routine seq Generating NVIDIA GPU code raytrace: 30697, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 31002, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 31016, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 31002, Local memory used for .inl_particle_38865,particleN,.inl_.inl_mcneutron_0_38880,.inl_.X3164_38882,.inl_.inl_.X3372_15_38881 31016, Generating implicit firstprivate(seed,_particle) finally: 32589, 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: 5893, Generating update device(mcdotrace) nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION. Error: /tmp/nvaccvZpZh-wJY9eAh.gpu (128990, 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: 31002) 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 -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=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 -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=managed -DOPENACC' returned non-zero exit status 2.