first commit

This commit is contained in:
2026-01-18 20:37:50 +08:00
commit fff9f18287
123 changed files with 1385491 additions and 0 deletions

38
src/TestSymmetry.hpp Normal file
View File

@@ -0,0 +1,38 @@
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra (dongarra@eecs.utk.edu)
// Piotr Luszczek (luszczek@eecs.utk.edu)
//
// ***************************************************
//@HEADER
/*!
@file TestSymmetry.hpp
HPCG data structures for symmetry testing
*/
#ifndef TESTSYMMETRY_HPP
#define TESTSYMMETRY_HPP
#include "CGData.hpp"
#include "SparseMatrix.hpp"
#include "hpcg.hpp"
struct TestSymmetryData_STRUCT
{
double depsym_spmv; //!< departure from symmetry for the SPMV kernel
double depsym_mg; //!< departure from symmetry for the MG kernel
int count_fail; //!< number of failures in the symmetry tests
};
typedef struct TestSymmetryData_STRUCT TestSymmetryData;
extern int TestSymmetry(SparseMatrix& A, Vector& b, Vector& xexact, TestSymmetryData& testsymmetry_data);
#endif // TESTSYMMETRY_HPP