Package jdistlib.accelerator
Interface ComputeBackend
- All Superinterfaces:
AutoCloseable,LinearAlgebraBackend,SinglePrecisionLinearAlgebraBackend
- All Known Implementing Classes:
CpuComputeBackend
public interface ComputeBackend
extends LinearAlgebraBackend, SinglePrecisionLinearAlgebraBackend, AutoCloseable
Optional backend for vector, dense-linear-algebra, and batched likelihood work.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether individual operations may route between CPU and the selected provider.booleandefault double[]axpy(double alpha, double[] x, double[] y) voidclose()default ComputeDeviceInfoReturns stable backend, runtime, driver, and device provenance where available.default doubledot(double[] x, double[] y) id()default LogisticRegressionBatchResultlogisticRegression(double[][] design, double[] outcomes, double[][] states, double priorPrecision) default double[][]matrixMultiply(double[][] left, double[][] right) default ExecutionPlanplan(LinearAlgebraOperation operation, NumericPrecision precision, int... dimensions) Predicts execution for the supplied operation and dimensions without running it.default PreparedCholeskyprepareDpotrf(double[] matrix, int dimension) Prepares a reusable FP64 Cholesky factor and solve handle.default PreparedLogisticRegressionprepareLogisticRegression(double[][] design, double[] outcomes) Keeps reusable data in backend-optimal storage when the backend supports it.default PreparedFloatCholeskyprepareSpotrf(float[] matrix, int dimension) Prepares a reusable FP32 Cholesky factor and solve handle.default PreparedTransposeProductprepareTransposeProduct(double[][] matrix) Keeps a reusable row-by-feature matrix ready for repeatedX'vbatches.default StringConcrete provider used for accelerated work; differs fromid()for AUTO routing.default double[]unary(UnaryOperation operation, double[] input) Methods inherited from interface jdistlib.accelerator.LinearAlgebraBackend
dasum, daxpy, dcopy, dcsrgemm, dcsrmm, dcsrmv, dcsrpotrf, dcsrpotrf, dcsrsv, ddot, dgemm, dgemm, dgemmBatched, dgemv, dgemv, dgeqp3, dger, dgesvd, dgetrf, dgetrfBatched, dnrm2, dpotrf, dpotrfBatched, dscal, dswap, dsyev, dsygvd, dsymm, dsyr, dsyr2, dsyr2k, dsyrk, dsyrk, dsytrf, dtrsm, dtrsm, dtrsv, idamax, prepareDcsr, prepareDcsrpotrf, prepareDcsrpotrf, prepareDgeMethods inherited from interface jdistlib.accelerator.SinglePrecisionLinearAlgebraBackend
isamax, prepareScsr, prepareScsrpotrf, prepareScsrpotrf, prepareSge, sasum, saxpy, scopy, scsrgemm, scsrmm, scsrmv, scsrpotrf, scsrpotrf, scsrsv, sdot, sgemm, sgemm, sgemmBatched, sgemv, sgemv, sgeqp3, sger, sgesvd, sgetrf, sgetrfBatched, snrm2, spotrf, spotrfBatched, sscal, sswap, ssyev, ssygvd, ssymm, ssyr, ssyr2, ssyr2k, ssyrk, ssyrk, ssytrf, strsm, strsm, strsv
-
Method Details
-
id
String id() -
selectedBackend
Concrete provider used for accelerated work; differs fromid()for AUTO routing. -
automaticRouting
default boolean automaticRouting()Whether individual operations may route between CPU and the selected provider. -
available
boolean available() -
capabilities
ComputeCapabilities capabilities() -
deviceInfo
Returns stable backend, runtime, driver, and device provenance where available. -
plan
default ExecutionPlan plan(LinearAlgebraOperation operation, NumericPrecision precision, int... dimensions) Predicts execution for the supplied operation and dimensions without running it. -
prepareDpotrf
Prepares a reusable FP64 Cholesky factor and solve handle. -
prepareSpotrf
Prepares a reusable FP32 Cholesky factor and solve handle. -
unary
-
axpy
default double[] axpy(double alpha, double[] x, double[] y) -
dot
default double dot(double[] x, double[] y) -
matrixMultiply
default double[][] matrixMultiply(double[][] left, double[][] right) -
prepareTransposeProduct
Keeps a reusable row-by-feature matrix ready for repeatedX'vbatches. -
logisticRegression
default LogisticRegressionBatchResult logisticRegression(double[][] design, double[] outcomes, double[][] states, double priorPrecision) -
prepareLogisticRegression
Keeps reusable data in backend-optimal storage when the backend supports it. -
close
void close()- Specified by:
closein interfaceAutoCloseable
-