Defined in File comp_node.h
This struct is a nested type of Class CompNode.
an identifier to specify a computing node
Note: logical locator is directly parsed from a string identifier given by user; it should be translated to physical locator by calling to_physical() before actual use.
Unless explicitly specified otherwise, all locators are physical locators.
get corresponding physical Locator
DeviceType::UNSPEC would be resolved, and device map would be applied on device number
get string description of this locator that can be parsed again
corresponding to a physical computing device; memories between different devices are not shared.
device == -1 means logical default device (maps to 0 by default, and can be changed by set_device_map)
multiple streams can execute on one computing device and share memory, when compnode type is multithread the field also stand for nr_threads
Public Static Functions
parse a string identifier
currently supported ID format: (gpu|cpu)<n>[:m] where n is the device number, possibly with m as the stream id.
set mapping between device numbers of a device type
set the actual device type to be used for DeviceType::UNSPEC
Public Static Attributes
special device number for the “cpu default” comp node, which dispatches all tasks in the caller thread
special device number for the “multithread_default” comp node, which dispatches all tasks to thread pool and the caller thread is the main thread of thread pool