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
-
The hardware classes are envisioned as an entire hierarchy. At the bottom we have the
HardwareComponent
class:We at the moment distinguish two pieces of
Hardware
: things that can compute and things that store data. The former are modeled bythe
Processor
class and the latter by theStorage
class:The
Processor
class 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). TheStorage
class 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
Storage
class provide an allocator for the memory space.From
Processor
andStorage
we 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
Disk
instance.Beta Was this translation helpful? Give feedback.
All reactions