Represents the host. More...
#include <Host.hpp>
Public Member Functions | |
| int | getId () const |
Get the device ID representing the host (cudaCpuDeviceId) More... | |
| operator int () const | |
| Implicitly convert to the device ID. More... | |
Static Public Member Functions | |
| static Host & | get () |
| Get the instance representing the host. More... | |
Represents the host.
Usable like Device in cases where doing so makes sense (such as memory copies)
This essentially provides a degenerate version of the device API, and access to the special host allocation functions for getting pinned or write-combining memory.
|
static |
Get the instance representing the host.
| int sp::Host::getId | ( | ) | const |
Get the device ID representing the host (cudaCpuDeviceId)
| sp::Host::operator int | ( | ) | const |
Implicitly convert to the device ID.