-
Notifications
You must be signed in to change notification settings - Fork 96
Add optional for LAPACK/vendor library bindings for dense linear algebra #1814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
nbeams
wants to merge
15
commits into
develop
Choose a base branch
from
lapack-eig-bindings
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bcdd15d
Add option for LAPACK/cuSOLVER bindings for [he,sy]gvd
nbeams c881ac1
cuda/hip sygvd: check for int overflow and provide devInfo value to u…
nbeams 30b1dac
Address some review comments: style changes, add definition for Cusol…
nbeams b048190
Use int32 instead of int
nbeams 1433f71
Add new eigensolver subdirectory in preparation for an eigensolver na…
nbeams 56db294
Require CMake 3.18 if building with LAPACK
nbeams 83953e6
cusolver symm generalized eigensolver: check devInfo value regardless…
nbeams f860ae4
Remove workspace_mode from lobpcg kernels
nbeams 94db682
lobpcg kernels test improvements from review comments
nbeams 755eace
minor: spacing
nbeams 204710f
Expand LAPACK/cuSOLVER bindings to [he,sy]evd
nbeams afd6e00
Add B-orthonormalization kernel using LAPACK/cuSOLVER Cholesky
nbeams 22ebb3b
Change dense eigenvalue kernels to expect row-major data
nbeams dc89057
Add complex types for hipBLAS GEAM
nbeams 5e6dc8e
Add hipsolver bindings and enable lobpcg kernel tests for HIP
nbeams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-FileCopyrightText: 2025 The Ginkgo authors | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#ifndef GKO_COMMON_CUDA_HIP_BASE_DEV_LAPACK_BINDINGS_HPP_ | ||
#define GKO_COMMON_CUDA_HIP_BASE_DEV_LAPACK_BINDINGS_HPP_ | ||
|
||
|
||
#if defined(GKO_COMPILING_CUDA) | ||
#include "cuda/base/cusolver_bindings.hpp" | ||
#define GKO_DEV_LAPACK_ERROR GKO_CUSOLVER_ERROR | ||
#define DEV_LAPACK_INTERNAL_ERROR CUSOLVER_STATUS_INTERNAL_ERROR | ||
#elif defined(GKO_COMPILING_HIP) | ||
#include "hip/base/hipsolver_bindings.hip.hpp" | ||
#define GKO_DEV_LAPACK_ERROR GKO_HIPSOLVER_ERROR | ||
#define DEV_LAPACK_INTERNAL_ERROR HIPSOLVER_STATUS_INTERNAL_ERROR | ||
#else | ||
#error "Executor definition missing" | ||
#endif | ||
|
||
|
||
#endif // GKO_COMMON_CUDA_HIP_BASE_DEV_LAPACK_BINDINGS_HPP_ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems to handle cuda only, will you also add the hipsolver here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the plan was to add hipSOLVER bindings here once the interface is finalized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added hipSOLVER in 5e6dc8e.