Hardware Class #2
ryanmrichard
started this conversation in
Ideas
Replies: 1 comment
-
|
Information from Anthony Danalis about PAPI routines: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The hardware classes are envisioned as an entire hierarchy. At the bottom we have the
HardwareComponentclass:We at the moment distinguish two pieces of
Hardware: things that can compute and things that store data. The former are modeled bythe
Processorclass and the latter by theStorageclass:The
Processorclass in theory could be home to a common thread-level tasking API, but for right now it mainly tells you the number of threads you have and can be used to determine what "instruction set" the processor uses (I'm thinking CUDA vs HIP vs SyCL, which aren't really instruction sets so other names are welcome). TheStorageclass is a bit more substantial and keeps track of how much memory isin use and also allows you to select storage locations based on access speed. In theory we could also have the
Storageclass provide an allocator for the memory space.From
ProcessorandStoragewe derive a series of classes which are more-or-less just strong types.At the moment the only real functionality added by these derived classes is the ability to open a file on a
Diskinstance.Beta Was this translation helpful? Give feedback.
All reactions