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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
computeDft
(float[] inreal, float[] inimag, float[] outreal, float[] outimag) Compute the Discrete Fourier Transform.void
execute()
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.
-
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.
-