monolish  0.14.2
MONOlithic LIner equation Solvers for Highly-parallel architecture
lu_cucolver_gpu.cpp
Go to the documentation of this file.
1 #include "../../../include/monolish_blas.hpp"
2 #include "../../../include/monolish_equation.hpp"
3 #include "../../internal/monolish_internal.hpp"
4 
5 #ifdef MONOLISH_USE_NVIDIA_GPU
6 #include "cusolverSp.h"
7 #endif
8 
9 namespace monolish {
10 
11 template <>
12 int equation::LU<matrix::CRS<double>, double>::cusolver_LU(
14  Logger &logger = Logger::get_instance();
15  logger.func_in(monolish_func);
16  // nothing to do
17  (void)(&A);
18  (void)(&x);
19  (void)(&b);
20  if (1) {
21  throw std::runtime_error("error sparse LU on GPU does not impl.");
22  }
23 
24  logger.func_out();
25  return 0;
26 }
27 
28 } // namespace monolish
monolish_func
#define monolish_func
Definition: monolish_logger.hpp:9
monolish::Logger
logger class (singleton, for developper class)
Definition: monolish_logger.hpp:19
monolish::Logger::func_out
void func_out()
Definition: logger_utils.cpp:80
monolish::equation::LU
LU solver class (Dense, CPU only now)
Definition: monolish_equation.hpp:201
monolish
Definition: monolish_matrix_blas.hpp:10
monolish::vector
vector class
Definition: monolish_coo.hpp:32
monolish::Logger::get_instance
static Logger & get_instance()
Definition: monolish_logger.hpp:42
monolish::matrix::CRS
Compressed Row Storage (CRS) format Matrix.
Definition: monolish_coo.hpp:36
monolish::Logger::func_in
void func_in(const std::string func_name)
Definition: logger_utils.cpp:69