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 array for CPU and GPU #108

Merged
merged 3 commits into from Aug 4, 2021
Merged

Add array for CPU and GPU #108

merged 3 commits into from Aug 4, 2021

Conversation

Rombur
Copy link
Member

@Rombur Rombur commented Aug 3, 2021

This PR adds new data structures: Array2D, Array3D, Array4D, and Array5D The memory space where the data is stored is determined by the last template parameters MemorySpaceType. The dimensions of the Array can be set at compile time using a template parameter or at run-time. In that last case, the template parameter should be set to -1. Note that I didn't implement all the combinations of compile/run-time parameters. I've implemented the one that I use in other parts of the code.

Copy link
Collaborator

@stvdwtt stvdwtt left a comment

Choose a reason for hiding this comment

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

Looks great to me other than a minor typo in a comment.

}

/**
* Five-dimensional array with akk dimension set at compile-time.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Five-dimensional array with akk dimension set at compile-time.
* Five-dimensional array with all dimensions set at compile-time.

@stvdwtt stvdwtt self-assigned this Aug 4, 2021
@stvdwtt
Copy link
Collaborator

stvdwtt commented Aug 4, 2021

@Rombur, was that comment the only thing you changed in the push an hour ago? I can't figure out how to see a diff from the original commit from yesterday.

@Rombur
Copy link
Member Author

Rombur commented Aug 4, 2021

Yes, sorry I just amended the last commit since it was a small change.

@stvdwtt
Copy link
Collaborator

stvdwtt commented Aug 4, 2021

Sounds good -- just wanted to double-check.

@stvdwtt stvdwtt merged commit 32bc2b7 into adamantine-sim:master Aug 4, 2021
@Rombur Rombur deleted the misc branch August 4, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants