SIRIUS
7.5.0
Electronic structure library and applications
src
core
acc
cusolver.cpp
1
#ifdef SIRIUS_CUDA
2
#include "
cusolver.hpp
"
3
4
namespace
sirius
{
5
namespace
acc {
6
namespace
cusolver {
7
8
cusolverDnHandle_t&
9
cusolver_handle()
10
{
11
static
cusolverDnHandle_t handle;
12
return
handle;
13
}
14
15
void
16
create_handle()
17
{
18
CALL_CUSOLVER(cusolverDnCreate, (&cusolver_handle()));
19
}
20
21
void
22
destroy_handle()
23
{
24
CALL_CUSOLVER(cusolverDnDestroy, (cusolver_handle()));
25
}
26
27
}
// namespace cusolver
28
}
// namespace acc
29
}
// namespace sirius
30
31
#endif
cusolver.hpp
Interface to CUDA eigen-solver library.
sirius
Namespace of the SIRIUS library.
Definition:
sirius.f90:5
Generated on Wed Nov 22 2023 17:00:15 for SIRIUS by
1.9.3