public abstract class BaseCPUAction extends RecursiveAction implements Task<Void>
Modifier and Type | Field and Description |
---|---|
protected boolean |
doTensorFirst |
protected boolean |
executed |
protected Future<Void> |
future |
protected int |
incrX |
protected int |
incrY |
protected int |
incrZ |
protected int |
n |
protected int |
offsetX |
protected int |
offsetY |
protected int |
offsetZ |
protected List<Task<Void>> |
subTasks |
protected int |
tensorDim |
protected int |
tensorIdx |
protected int |
threshold |
Constructor and Description |
---|
BaseCPUAction(int threshold,
int n,
int offsetX,
int offsetY,
int offsetZ,
int incrX,
int incrY,
int incrZ) |
BaseCPUAction(Op op,
int threshold) |
BaseCPUAction(Op op,
int threshold,
int tadIdx,
int tadDim)
Constructor for doing a 1d tensor along dimension first
|
Modifier and Type | Method and Description |
---|---|
Void |
blockUntilComplete()
Assuming invokeAsync() has been called, block until the execution completes
|
protected void |
doTensorFirst(Op op) |
void |
invokeAsync()
Schedule for asyncronous execution; returns immediately
|
Void |
invokeBlocking()
Schedule for execution, and block until completion
|
compute, exec, getRawResult, setRawResult
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
protected final int threshold
protected int n
protected int offsetX
protected int offsetY
protected int offsetZ
protected int incrX
protected int incrY
protected int incrZ
protected boolean doTensorFirst
protected int tensorIdx
protected int tensorDim
protected boolean executed
public BaseCPUAction(int threshold, int n, int offsetX, int offsetY, int offsetZ, int incrX, int incrY, int incrZ)
public BaseCPUAction(Op op, int threshold)
public BaseCPUAction(Op op, int threshold, int tadIdx, int tadDim)
protected void doTensorFirst(Op op)
public void invokeAsync()
Task
invokeAsync
in interface Task<Void>
public Void blockUntilComplete()
Task
blockUntilComplete
in interface Task<Void>
public Void invokeBlocking()
Task
invokeBlocking
in interface Task<Void>
Copyright © 2015. All Rights Reserved.