Class TornadoDFT

java.lang.Object
ffx.numerics.fft.TornadoDFT

public class TornadoDFT extends Object
Proof-of-concept use of the TornadoVM for parallelization of Java code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TornadoDFT(int size)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    computeDft(float[] inreal, float[] inimag, float[] outreal, float[] outimag)
    Compute the Discrete Fourier Transform.
    void
    Execute the Discrete Fourier Transform on the default TornadoDevice.
    void
    execute(uk.ac.manchester.tornado.api.common.TornadoDevice device)
    Execute the Discrete Fourier Transform on a TornadoDevice.
    void
    validate(int deviceID)
    Validate the Discrete Fourier Transform on the default TornadoDevice.
    void
    validate(uk.ac.manchester.tornado.api.common.TornadoDevice device)
    Validate the Discrete Fourier Transform on a TornadoDevice.

    Methods inherited from class java.lang.Object

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

    • TornadoDFT

      public TornadoDFT(int size)
      Constructor.
      Parameters:
      size - The size of the DFT.
  • Method Details

    • computeDft

      public static void computeDft(float[] inreal, float[] inimag, float[] outreal, float[] outimag)
      Compute the Discrete Fourier Transform.
      Parameters:
      inreal - Input real values.
      inimag - Input imaginary values.
      outreal - Output real values.
      outimag - Output imaginary values.
    • execute

      public void execute(uk.ac.manchester.tornado.api.common.TornadoDevice device)
      Execute the Discrete Fourier Transform on a TornadoDevice.
      Parameters:
      device - The TornadoDevice to use.
    • execute

      public void execute()
      Execute the Discrete Fourier Transform on the default TornadoDevice.
    • validate

      public void validate(int deviceID)
      Validate the Discrete Fourier Transform on the default TornadoDevice.
      Parameters:
      deviceID - The device ID to use.
    • validate

      public void validate(uk.ac.manchester.tornado.api.common.TornadoDevice device)
      Validate the Discrete Fourier Transform on a TornadoDevice.
      Parameters:
      device - The TornadoDevice to use.