Skip to content

Commit

Permalink
added forward declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Hughes committed Oct 17, 2024
1 parent a6d8414 commit 6e485dc
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
16 changes: 1 addition & 15 deletions tests/functionality/FunctionalityTestHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,9 @@
#include <resolve/LinSolverIterativeFGMRES.hpp>
#include <resolve/workspace/LinAlgWorkspace.hpp>
#include <resolve/SystemSolver.hpp>
#if defined RESOLVE_USE_KLU
#include <resolve/LinSolverDirectKLU.hpp>
#endif
#if defined (RESOLVE_USE_CUDA)
#include <resolve/LinSolverDirectCuSolverRf.hpp>
using workspace_type = ReSolve::LinAlgWorkspaceCUDA;
std::string memory_space("cuda");
#elif defined (RESOLVE_USE_HIP)
#include <resolve/LinSolverDirectRocSolverRf.hpp>
using workspace_type = ReSolve::LinAlgWorkspaceHIP;
std::string memory_space("hip");
#else
using workspace_type = ReSolve::LinAlgWorkspaceCpu;
std::string memory_space("cpu");
#endif
#include "FunctionalityTestHelper.hpp"


namespace ReSolve {
namespace tests{

Expand Down
43 changes: 43 additions & 0 deletions tests/functionality/FunctionalityTestHelper.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
namespace ReSolve
{
namespace vector
{
class Vector;
}
namespace matrix
{
class Sparse;
class Coo;
class Csc;
class Csr;
}

class LinAlgWorkspaceCUDA;

class LinAlgWorkspaceHIP;

class LinAlgWorkspaceCpu;

class SystemSolver;

class MatrixHandler;

class VectorHandler;
}

#if defined RESOLVE_USE_KLU
#include <resolve/LinSolverDirectKLU.hpp>
#endif
#if defined (RESOLVE_USE_CUDA)
//#include <resolve/LinSolverDirectCuSolverRf.hpp>
using workspace_type = ReSolve::LinAlgWorkspaceCUDA;
std::string memory_space("cuda");
#elif defined (RESOLVE_USE_HIP)
#include <resolve/LinSolverDirectRocSolverRf.hpp>
using workspace_type = ReSolve::LinAlgWorkspaceHIP;
std::string memory_space("hip");
#else
using workspace_type = ReSolve::LinAlgWorkspaceCpu;
std::string memory_space("cpu");
#endif

namespace ReSolve
{
namespace tests
Expand Down

0 comments on commit 6e485dc

Please sign in to comment.