Skip to content

Commit

Permalink
making sure profiling option compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed May 17, 2024
1 parent af79b76 commit c0782ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
21 changes: 3 additions & 18 deletions examples/profile_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace fs = std::filesystem;
using namespace micm;

template<template<class> class MatrixType, template<class> class SparseMatrixType>
template<template<class> class MatrixType, class SparseMatrixType>
int Run(const char* filepath, const char* initial_conditions, const std::string& matrix_ordering_type)
{
using SolverType = RosenbrockSolver<MatrixType, SparseMatrixType>;
Expand Down Expand Up @@ -114,24 +114,9 @@ int Run(const char* filepath, const char* initial_conditions, const std::string&
return 0;
}

template<class T>
using SparseMatrixParam = micm::SparseMatrix<T>;
template<class T>
using Vector1MatrixParam = micm::VectorMatrix<T, 1>;
template<class T>
using Vector10MatrixParam = micm::VectorMatrix<T, 10>;
template<class T>
using Vector100MatrixParam = micm::VectorMatrix<T, 100>;
template<class T>
template<typename T>
using Vector1000MatrixParam = micm::VectorMatrix<T, 1000>;
template<class T>
using Vector1SparseMatrixParam = micm::SparseMatrix<T, micm::SparseMatrixVectorOrdering<1>>;
template<class T>
using Vector10SparseMatrixParam = micm::SparseMatrix<T, micm::SparseMatrixVectorOrdering<10>>;
template<class T>
using Vector100SparseMatrixParam = micm::SparseMatrix<T, micm::SparseMatrixVectorOrdering<100>>;
template<class T>
using Vector1000SparseMatrixParam = micm::SparseMatrix<T, micm::SparseMatrixVectorOrdering<1000>>;
using Vector1000SparseMatrixParam = micm::SparseMatrix<double, micm::SparseMatrixVectorOrdering<1000>>;

int main(const int argc, const char* argv[])
{
Expand Down
5 changes: 2 additions & 3 deletions test/unit/process/test_cuda_process_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void compare_pair(const index_pair& a, const index_pair& b)
EXPECT_EQ(a.second, b.second);
}

template<template<class> class CPUMatrixPolicy, template<class> class GPUMatrixPolicy>
template<class CPUMatrixPolicy, template<class> class GPUMatrixPolicy>
void testRandomSystemAddForcingTerms(std::size_t n_cells, std::size_t n_reactions, std::size_t n_species)
{
auto get_n_react = std::bind(std::uniform_int_distribution<>(0, 3), std::default_random_engine());
Expand Down Expand Up @@ -212,8 +212,7 @@ void testRandomSystemSubtractJacobianTerms(std::size_t n_cells, std::size_t n_re
}
}

template<class T>
using Group10000VectorMatrix = micm::VectorMatrix<T, 10000>;
using Group10000VectorMatrix = micm::VectorMatrix<double, 10000>;

template<class T>
using Group10000SparseVectorMatrix = micm::SparseMatrix<T, micm::SparseMatrixVectorOrdering<10000>>;
Expand Down

0 comments on commit c0782ef

Please sign in to comment.