getrf Class — pytorch Architecture
Architecture documentation for the getrf class in CUDASolver.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cuda/linalg/CUDASolver.cpp lines 10–20
template <>
void getrf<double>(
cusolverDnHandle_t handle, int m, int n, double* dA, int ldda, int* ipiv, int* info) {
int lwork;
TORCH_CUSOLVER_CHECK(
cusolverDnDgetrf_bufferSize(handle, m, n, dA, ldda, &lwork));
auto& allocator = *::c10::cuda::CUDACachingAllocator::get();
auto dataPtr = allocator.allocate(sizeof(double)*lwork);
TORCH_CUSOLVER_CHECK(cusolverDnDgetrf(
handle, m, n, dA, ldda, static_cast<double*>(dataPtr.get()), ipiv, info));
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free