Skip to content
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

Add HIP/ROCm version of matvec function to MatrixHandler class #27

Closed
pelesh opened this issue Oct 26, 2023 · 0 comments · Fixed by #30
Closed

Add HIP/ROCm version of matvec function to MatrixHandler class #27

pelesh opened this issue Oct 26, 2023 · 0 comments · Fixed by #30
Assignees
Labels
enhancement New feature or request hip testing
Milestone

Comments

@pelesh
Copy link
Collaborator

pelesh commented Oct 26, 2023

As an initial step to porting ReSolve to HIP we might want to start with HIP/ROCm implementation of matvec function. For starters, it would be sufficient to have it running within unit test framework. This work would also require implementing HIP-based linear algebra workspace.

Such development should branch off hip-first-take-dev branch. To build this branch on Frontier one needs to load modules PrgEnv-amd, amd/5.6.0, and cmake. We need our own build of SuiteSparse:

module use -a /lustre/orion/csc359/proj-shared/nkouk/spack-install/modules/linux-sles15-zen3
module load suite-sparse/5.13.0-clang-14.0.0-rocm5.2.0-mixed-ebugiv3

To build use:

git clone git@github.com:ORNL/ReSolve.git
mkdir build && cd build
CC=amdclang CXX=amdclang++ cmake -DRESOLVE_USE_HIP=On ../ReSolve
make

This assumes your build dir is a sibling of the ReSolve source dir.

Note that the hip-first-take-dev branch is under heavy development.

@pelesh pelesh added enhancement New feature or request testing labels Oct 26, 2023
@pelesh pelesh added this to the Hackathon milestone Oct 27, 2023
@pelesh pelesh mentioned this issue Oct 28, 2023
@pelesh pelesh added the hip label Oct 30, 2023
@pelesh pelesh closed this as completed in #30 Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hip testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants