Package com.upmem.dpu
Class DpuSetAsync
- java.lang.Object
-
- com.upmem.dpu.DpuSetAsync
-
public final class DpuSetAsync extends java.lang.ObjectAsynchronous version of the methods provided by a DPU set.- See Also:
DpuSet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(DpuCallback callback)Asynchronously call the provided callback on the DPU set.voidcall(DpuCallback callback, boolean blocking, boolean singleCall)Asynchronously call the provided callback on the DPU set.voidcopy(byte[][] dstBuffers, DpuSymbol srcSymbol)voidcopy(byte[][] dstBuffers, java.lang.String srcSymbol)voidcopy(DpuSymbol dstSymbol, byte[] srcBuffer)voidcopy(DpuSymbol dstSymbol, byte[][] srcBuffers)voidcopy(java.lang.String dstSymbol, byte[] srcBuffer)voidcopy(java.lang.String dstSymbol, byte[][] srcBuffers)voidexec()voidexec(java.io.PrintStream logStream)voidsync()Wait for the end of all enqueued asynchronous operations.
-
-
-
Method Detail
-
copy
public void copy(java.lang.String dstSymbol, byte[] srcBuffer) throws DpuException- Throws:
DpuException
-
copy
public void copy(DpuSymbol dstSymbol, byte[] srcBuffer) throws DpuException
- Throws:
DpuException
-
copy
public void copy(java.lang.String dstSymbol, byte[][] srcBuffers) throws DpuException- Throws:
DpuException
-
copy
public void copy(DpuSymbol dstSymbol, byte[][] srcBuffers) throws DpuException
- Throws:
DpuException
-
copy
public void copy(byte[][] dstBuffers, java.lang.String srcSymbol) throws DpuException- Throws:
DpuException
-
copy
public void copy(byte[][] dstBuffers, DpuSymbol srcSymbol) throws DpuException- Throws:
DpuException
-
exec
public void exec() throws DpuException- Throws:
DpuException
-
exec
public void exec(java.io.PrintStream logStream) throws DpuException- Throws:
DpuException
-
call
public void call(DpuCallback callback, boolean blocking, boolean singleCall) throws DpuException
Asynchronously call the provided callback on the DPU set.- Parameters:
callback- The function to be called on the DPU set.blocking- Whether other asynchronous operations must wait the end of the callback before starting.singleCall- Whether the callback is done once for the whole DPU set or once per DPU rank.- Throws:
DpuException- When the callback cannot be registered.- See Also:
DpuCallback
-
call
public void call(DpuCallback callback) throws DpuException
Asynchronously call the provided callback on the DPU set.The callback is called once per DPU rank and blocks the other asynchronous operations.
- Parameters:
callback- The function to be called on each DpuRank of the DPU set.- Throws:
DpuException- When the callback cannot be registered.- See Also:
DpuCallback
-
sync
public void sync() throws DpuExceptionWait for the end of all enqueued asynchronous operations.- Throws:
DpuException- When any of the asynchronous methods throws an Exception.- See Also:
DpuException
-
-