Class NativeND4JCUDATensorBackend
java.lang.Object
org.episteme.nativ.mathematics.linearalgebra.tensors.backends.ND4JBaseTensorBackend
org.episteme.nativ.mathematics.linearalgebra.tensors.backends.NativeND4JCUDATensorBackend
- All Implemented Interfaces:
TensorBackend, TensorProvider, AlgorithmProvider, Backend, ComputeBackend
@AutoService({TensorBackend.class,AlgorithmProvider.class})
public class NativeND4JCUDATensorBackend
extends ND4JBaseTensorBackend
NativeND4J CUDA (GPU) Tensor backend.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from class ND4JBaseTensorBackend
isAvailable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected ExecutionContextReturns the type of hardware accelerator used by this backend.Returns a description of the backend.getId()Returns the unique identifier for this backend (e.g., "javafx", "jmol", "cuda").getName()Returns the name of this provider.intReturns the priority of this provider (higher = preferred).booleanReturns true if this provider supports GPU acceleration.Methods inherited from class ND4JBaseTensorBackend
checkCommonClasses, convertShape, create, createContext, fromINDArray, isAvailable, ones, supportsParallelOps, toINDArray, zerosMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AlgorithmProvider
description, getMetadata, scoreMethods inherited from interface Backend
getAlgorithmProviders, getStatusMessage, isExplicitlyDisabledMethods inherited from interface ComputeBackend
createBackend, getType, supportsComplexNumbers, supportsFloatingPointMethods inherited from interface TensorBackend
shutdownMethods inherited from interface TensorProvider
getAlgorithmType
-
Constructor Details
-
NativeND4JCUDATensorBackend
public NativeND4JCUDATensorBackend()
-
-
Method Details
-
doGetContext
- Specified by:
doGetContextin classND4JBaseTensorBackend
-
getAcceleratorType
Description copied from interface:ComputeBackendReturns the type of hardware accelerator used by this backend.- Returns:
- the accelerator type
-
checkAvailability
protected boolean checkAvailability()- Specified by:
checkAvailabilityin classND4JBaseTensorBackend
-
getId
-
getName
Description copied from interface:TensorBackendReturns the name of this provider.- Returns:
- provider name (e.g., "Native", "ND4J", "DJL")
-
getDescription
-
getPriority
public int getPriority()Description copied from interface:TensorBackendReturns the priority of this provider (higher = preferred).Used for automatic selection when multiple providers are available.
- Returns:
- priority (0-100, default native = 50)
-
supportsGPU
public boolean supportsGPU()Description copied from interface:TensorBackendReturns true if this provider supports GPU acceleration.- Specified by:
supportsGPUin interfaceTensorBackend- Specified by:
supportsGPUin classND4JBaseTensorBackend- Returns:
- true if GPU is available
-