Package ffx.numerics.fft
Class TornadoDFT
java.lang.Object
ffx.numerics.fft.TornadoDFT
Proof-of-concept use of the TornadoVM for parallelization of Java code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcomputeDft(float[] inreal, float[] inimag, float[] outreal, float[] outimag) Compute the Discrete Fourier Transform.voidexecute()Execute the Discrete Fourier Transform on the default TornadoDevice.voidexecute(uk.ac.manchester.tornado.api.common.TornadoDevice device) Execute the Discrete Fourier Transform on a TornadoDevice.voidvalidate(int deviceID) Validate the Discrete Fourier Transform on the default TornadoDevice.voidvalidate(uk.ac.manchester.tornado.api.common.TornadoDevice device) Validate the Discrete Fourier Transform on a TornadoDevice.
-
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.
-