jcuda.jcufft
Class cufftCompatibility

java.lang.Object
  extended by jcuda.jcufft.cufftCompatibility

public class cufftCompatibility
extends java.lang.Object

Compatibility flags for CUFFT. Original documentation:

Certain R2C and C2R transforms go much more slowly when FFTW memory layout and behaviour is required. The default is "best performance", which means not-compatible-with-fftw. Use the cufftSetCompatibilityMode API to enable exact FFTW-like behaviour.

These flags can be ORed together to select precise FFTW compatibility behaviour.


Field Summary
static int CUFFT_COMPATIBILITY_FFTW_ALL
          For convenience, enables all FFTW compatibility modes at once.
static int CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC
          Guarantees FFTW-compatible output for non-symmetric complex inputs for transforms with power-of-2 size.
static int CUFFT_COMPATIBILITY_FFTW_PADDING
          Inserts extra padding between packed in-place transforms for batched transforms with power-of-2 size.
static int CUFFT_COMPATIBILITY_NATIVE
          Disable any FFTW compatibility mode.
 
Method Summary
static java.lang.String stringFor(int m)
          Returns the String identifying the given cufftCompatibility
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUFFT_COMPATIBILITY_NATIVE

public static final int CUFFT_COMPATIBILITY_NATIVE
Disable any FFTW compatibility mode.

See Also:
Constant Field Values

CUFFT_COMPATIBILITY_FFTW_PADDING

public static final int CUFFT_COMPATIBILITY_FFTW_PADDING
Inserts extra padding between packed in-place transforms for batched transforms with power-of-2 size. This is the default.

See Also:
Constant Field Values

CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC

public static final int CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC
Guarantees FFTW-compatible output for non-symmetric complex inputs for transforms with power-of-2 size. This is only useful for artificial (i.e. random) datasets as actual data will always be symmetric if it has come from the real plane. If you don't understand what this means, you probably don't have to use it.

See Also:
Constant Field Values

CUFFT_COMPATIBILITY_FFTW_ALL

public static final int CUFFT_COMPATIBILITY_FFTW_ALL
For convenience, enables all FFTW compatibility modes at once.

See Also:
Constant Field Values
Method Detail

stringFor

public static java.lang.String stringFor(int m)
Returns the String identifying the given cufftCompatibility

Parameters:
m - The cufftType
Returns:
The String identifying the given cufftCompatibility