Package smile.deep
Interface CUDA
public interface CUDA
NVIDIA CUDA helper functions.
-
Method Details
-
isAvailable
static boolean isAvailable()Returns true if CUDA is available.- Returns:
- true if CUDA is available.
-
deviceCount
static long deviceCount()Returns the number of CUDA devices.- Returns:
- the number of CUDA devices.
-
device
Returns the default CUDA device.- Returns:
- the default CUDA device.
-
device
Returns the CUDA device of given index.- Parameters:
index
- the CUDA device index.- Returns:
- the CUDA device.
-