Host¶
- class orchespy.devicetype.Host[source]¶
Device type class for Host.
Specify as the target of the orchespy’s decorator or function.
Examples
Specify Host as the target of decorator. The function exec_on_host() will be execute on Host.
>>> from orchespy.devicetype import Host >>> from orchespy import device >>> import nlcpy >>> >>> @device(Host) ... def exec_on_host(x, y): ... return x * y >>> >>> x = nlcpy.ones((2,2)) >>> y = nlcpy.ones((2,2)) >>> z = exec_on_host(x, y)