Class FFXTornado

java.lang.Object
ffx.numerics.tornado.FFXTornado

public class FFXTornado extends Object
Utility Routines to use the TornadoVM
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static uk.ac.manchester.tornado.api.common.TornadoDevice
    Get the default Tornado Device.
    static uk.ac.manchester.tornado.api.common.TornadoDevice
    getDevice(int deviceID)
    Get the specified Tornado Device.
    static uk.ac.manchester.tornado.api.common.TornadoDevice
    getDevice(int driverIndex, int deviceIndex)
    Get the Tornado Device using specified driver and device index.
    static int
    Get all TornadoDevice instances.
    static void
    logDevice(uk.ac.manchester.tornado.api.common.TornadoDevice device)
    List details about the passed TornadoDevice instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FFXTornado

      public FFXTornado()
  • Method Details

    • getDevice

      public static uk.ac.manchester.tornado.api.common.TornadoDevice getDevice()
      Get the default Tornado Device.
      Returns:
      The default TornadoDevice instance.
    • getDevice

      public static uk.ac.manchester.tornado.api.common.TornadoDevice getDevice(int driverIndex, int deviceIndex)
      Get the Tornado Device using specified driver and device index.
      Parameters:
      driverIndex - Driver index.
      deviceIndex - Device index.
      Returns:
      The TornadoDevice instance.
    • getDevice

      public static uk.ac.manchester.tornado.api.common.TornadoDevice getDevice(int deviceID)
      Get the specified Tornado Device.
      Parameters:
      deviceID - The device ID.
      Returns:
      The TornadoDevice instance.
    • getNumberOfDevices

      public static int getNumberOfDevices()
      Get all TornadoDevice instances.
      Returns:
      A List of TornadoDevice instances.
    • logDevice

      public static void logDevice(uk.ac.manchester.tornado.api.common.TornadoDevice device)
      List details about the passed TornadoDevice instance.
      Parameters:
      device - The TornadoDevice instance.