Skip to content

Commit 6e485dc

Browse files
author
Harry Hughes
committed
added forward declarations
1 parent a6d8414 commit 6e485dc

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed

tests/functionality/FunctionalityTestHelper.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,9 @@
1414
#include <resolve/LinSolverIterativeFGMRES.hpp>
1515
#include <resolve/workspace/LinAlgWorkspace.hpp>
1616
#include <resolve/SystemSolver.hpp>
17-
#if defined RESOLVE_USE_KLU
18-
#include <resolve/LinSolverDirectKLU.hpp>
19-
#endif
20-
#if defined (RESOLVE_USE_CUDA)
21-
#include <resolve/LinSolverDirectCuSolverRf.hpp>
22-
using workspace_type = ReSolve::LinAlgWorkspaceCUDA;
23-
std::string memory_space("cuda");
24-
#elif defined (RESOLVE_USE_HIP)
25-
#include <resolve/LinSolverDirectRocSolverRf.hpp>
26-
using workspace_type = ReSolve::LinAlgWorkspaceHIP;
27-
std::string memory_space("hip");
28-
#else
29-
using workspace_type = ReSolve::LinAlgWorkspaceCpu;
30-
std::string memory_space("cpu");
31-
#endif
3217
#include "FunctionalityTestHelper.hpp"
3318

19+
3420
namespace ReSolve {
3521
namespace tests{
3622

tests/functionality/FunctionalityTestHelper.hpp

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
namespace ReSolve
2+
{
3+
namespace vector
4+
{
5+
class Vector;
6+
}
7+
namespace matrix
8+
{
9+
class Sparse;
10+
class Coo;
11+
class Csc;
12+
class Csr;
13+
}
14+
15+
class LinAlgWorkspaceCUDA;
16+
17+
class LinAlgWorkspaceHIP;
18+
19+
class LinAlgWorkspaceCpu;
20+
21+
class SystemSolver;
22+
23+
class MatrixHandler;
24+
25+
class VectorHandler;
26+
}
27+
28+
#if defined RESOLVE_USE_KLU
29+
#include <resolve/LinSolverDirectKLU.hpp>
30+
#endif
31+
#if defined (RESOLVE_USE_CUDA)
32+
//#include <resolve/LinSolverDirectCuSolverRf.hpp>
33+
using workspace_type = ReSolve::LinAlgWorkspaceCUDA;
34+
std::string memory_space("cuda");
35+
#elif defined (RESOLVE_USE_HIP)
36+
#include <resolve/LinSolverDirectRocSolverRf.hpp>
37+
using workspace_type = ReSolve::LinAlgWorkspaceHIP;
38+
std::string memory_space("hip");
39+
#else
40+
using workspace_type = ReSolve::LinAlgWorkspaceCpu;
41+
std::string memory_space("cpu");
42+
#endif
43+
144
namespace ReSolve
245
{
346
namespace tests

0 commit comments

Comments
 (0)