#[cfg(feature = "rocm")]
use rocm_rs::*;
#[cfg(feature = "rocm")]
pub struct RocFft {
}
#[cfg(feature = "rocm")]
impl RocFft {
pub fn new() -> Result<Self, String> {
Err("ROCm FFT is only supported on AMD GPUs. Your GTX 1070 is an NVIDIA GPU and requires CUDA/cuFFT.".to_string())
}
pub fn is_available() -> bool {
false }
}
#[cfg(not(feature = "rocm"))]
pub struct RocFft {
}
#[cfg(not(feature = "rocm"))]
impl RocFft {
pub fn new() -> Result<Self, String> {
Err("ROCm support not compiled. Use --features rocm to enable (AMD GPUs only)".to_string())
}
pub fn is_available() -> bool {
false
}
}