public abstract class BaseCPUTask<V> extends RecursiveTask<V> implements Task<V>
Modifier and Type | Field and Description |
---|---|
protected boolean |
doTensorFirst |
protected boolean |
executed |
protected Future<V> |
future |
protected int |
incrX |
protected int |
incrY |
protected int |
incrZ |
protected int |
n |
protected int |
offsetX |
protected int |
offsetY |
protected int |
offsetZ |
protected int |
tensorDim |
protected int |
tensorIdx |
protected int |
threshold |
Constructor and Description |
---|
BaseCPUTask(int threshold,
int n,
int offsetX,
int offsetY,
int offsetZ,
int incrX,
int incrY,
int incrZ) |
BaseCPUTask(Op op,
int threshold) |
BaseCPUTask(Op op,
int threshold,
int tadIdx,
int tadDim)
Constructor for doing a 1d tensor along dimension first
|
Modifier and Type | Method and Description |
---|---|
protected void |
doTensorFirst(Op op) |
void |
invokeAsync()
Schedule for asyncronous execution; returns immediately
|
V |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockUntilComplete, call
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 BaseCPUTask(int threshold, int n, int offsetX, int offsetY, int offsetZ, int incrX, int incrY, int incrZ)
public BaseCPUTask(Op op, int threshold)
public BaseCPUTask(Op op, int threshold, int tadIdx, int tadDim)
protected void doTensorFirst(Op op)
public void invokeAsync()
Task
invokeAsync
in interface Task<V>
public V invokeBlocking()
Task
invokeBlocking
in interface Task<V>
Copyright © 2015. All Rights Reserved.