Package smile.deep

Interface CUDA


public interface CUDA
NVIDIA CUDA helper functions.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Device
    Returns the default CUDA device.
    static Device
    device(byte index)
    Returns the CUDA device of given index.
    static long
    Returns the number of CUDA devices.
    static boolean
    Returns true if CUDA is available.
  • 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

      static Device device()
      Returns the default CUDA device.
      Returns:
      the default CUDA device.
    • device

      static Device device(byte index)
      Returns the CUDA device of given index.
      Parameters:
      index - the CUDA device index.
      Returns:
      the CUDA device.