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

Use enums instead of strings to denote memory space #42

Merged
merged 6 commits into from
Nov 1, 2023

Conversation

pelesh
Copy link
Collaborator

@pelesh pelesh commented Oct 30, 2023

Replace strings that are currently used to identify different memory spaces with enums.

enums are now used to select memory space for vector and matrix classes. The options are HOST and DEVICE.

This PR does not deal with matrix and vector handlers.

@pelesh pelesh requested a review from kswirydo October 30, 2023 23:54
@pelesh pelesh self-assigned this Oct 30, 2023
@pelesh pelesh marked this pull request as draft October 30, 2023 23:55
@pelesh pelesh requested a review from rothpc October 31, 2023 02:12
@pelesh pelesh marked this pull request as ready for review October 31, 2023 18:29
@pelesh
Copy link
Collaborator Author

pelesh commented Oct 31, 2023

After these changes unit tests will need some refactoring. They are patched up and functional now, but not quite straightforward to maintan.

@pelesh
Copy link
Collaborator Author

pelesh commented Oct 31, 2023

Related issue is #12

Copy link
Collaborator

@kswirydo kswirydo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Compiles and runs on ascent
  2. Minor comments added

resolve/matrix/Coo.cpp Outdated Show resolved Hide resolved
resolve/matrix/Coo.cpp Outdated Show resolved Hide resolved
resolve/matrix/Coo.cpp Outdated Show resolved Hide resolved
resolve/matrix/Csc.cpp Show resolved Hide resolved
resolve/matrix/Csc.cpp Show resolved Hide resolved
resolve/matrix/Csc.cpp Show resolved Hide resolved
resolve/matrix/Csr.cpp Show resolved Hide resolved
resolve/matrix/Csr.cpp Show resolved Hide resolved
@pelesh pelesh changed the title Use enums instead of strings doe denote memory space Use enums instead of strings to denote memory space Nov 1, 2023
@pelesh pelesh merged commit 949680f into hip-first-take-dev Nov 1, 2023
5 checks passed
@pelesh pelesh added this to the Hackathon milestone Nov 2, 2023
@pelesh pelesh added the enhancement New feature or request label Nov 2, 2023
@pelesh pelesh deleted the hip-enums-dev branch December 1, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants