PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
LinearSolver.cuh File Reference

Linear solver abstractions over cuSolver. More...

#include "Blas.cuh"
#include "Matrix.cuh"
#include "pbat/gpu/impl/common/Buffer.cuh"
#include "pbat/gpu/impl/common/Cuda.cuh"
#include <algorithm>
#include <cstdio>
#include <cuda/api/device.hpp>
#include <cuda/api/stream.hpp>
#include <cusolverDn.h>
#include <memory>
#include <type_traits>

Go to the source code of this file.

Classes

class  pbat::gpu::impl::math::LinearSolver
 

Namespaces

namespace  pbat
 The main namespace of the library.
 
namespace  pbat::gpu
 GPU related public functionality.
 
namespace  pbat::gpu::impl
 GPU algorithm implementations.
 
namespace  pbat::gpu::impl::math
 GPU implementations of math functions.
 

Macros

#define PBAT_GPU_IMPL_MATH_LINEARSOLVER_CUH
 
#define CUSOLVER_CHECK(err)
 

Detailed Description

Linear solver abstractions over cuSolver.

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-04-24

Macro Definition Documentation

◆ CUSOLVER_CHECK

#define CUSOLVER_CHECK ( err)
Value:
{ \
cusolverStatus_t err_ = (err); \
if (err_ != cusolverStatus_t::CUSOLVER_STATUS_SUCCESS) \
{ \
std::printf("cusolver error %d at %s:%d\n", err_, __FILE__, __LINE__); \
throw std::runtime_error("cusolver error"); \
} \
}