cannam@167: /* cannam@167: * Copyright (c) 2003, 2007-14 Matteo Frigo cannam@167: * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology cannam@167: * cannam@167: * This program is free software; you can redistribute it and/or modify cannam@167: * it under the terms of the GNU General Public License as published by cannam@167: * the Free Software Foundation; either version 2 of the License, or cannam@167: * (at your option) any later version. cannam@167: * cannam@167: * This program is distributed in the hope that it will be useful, cannam@167: * but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@167: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@167: * GNU General Public License for more details. cannam@167: * cannam@167: * You should have received a copy of the GNU General Public License cannam@167: * along with this program; if not, write to the Free Software cannam@167: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA cannam@167: * cannam@167: */ cannam@167: cannam@167: cannam@167: #include "api/api.h" cannam@167: cannam@167: const char X(cc)[] = FFTW_CC; cannam@167: cannam@167: /* fftw <= 3.2.2 had special compiler flags for codelets, which are cannam@167: not used anymore. We keep this variable around because it is part cannam@167: of the ABI */ cannam@167: const char X(codelet_optim)[] = ""; cannam@167: cannam@167: const char X(version)[] = PACKAGE "-" PACKAGE_VERSION cannam@167: cannam@167: #if HAVE_FMA cannam@167: "-fma" cannam@167: #endif cannam@167: cannam@167: #if HAVE_SSE2 cannam@167: "-sse2" cannam@167: #endif cannam@167: cannam@167: /* Earlier versions of FFTW only provided 256-bit AVX, which meant cannam@167: * it was important to also enable sse2 for best performance for cannam@167: * short transforms. Since some programs check for this and warn cannam@167: * the user, we explicitly add avx_128 to the suffix to emphasize cannam@167: * that this version is more capable. cannam@167: */ cannam@167: cannam@167: #if HAVE_AVX cannam@167: "-avx" cannam@167: #endif cannam@167: cannam@167: #if HAVE_AVX_128_FMA cannam@167: "-avx_128_fma" cannam@167: #endif cannam@167: cannam@167: #if HAVE_AVX2 cannam@167: "-avx2-avx2_128" cannam@167: #endif cannam@167: cannam@167: #if HAVE_AVX512 cannam@167: "-avx512" cannam@167: #endif cannam@167: cannam@167: #if HAVE_KCVI cannam@167: "-kcvi" cannam@167: #endif cannam@167: cannam@167: #if HAVE_ALTIVEC cannam@167: "-altivec" cannam@167: #endif cannam@167: cannam@167: #if HAVE_VSX cannam@167: "-vsx" cannam@167: #endif cannam@167: cannam@167: #if HAVE_NEON cannam@167: "-neon" cannam@167: #endif cannam@167: cannam@167: #if defined(HAVE_GENERIC_SIMD128) cannam@167: "-generic_simd128" cannam@167: #endif cannam@167: cannam@167: #if defined(HAVE_GENERIC_SIMD256) cannam@167: "-generic_simd256" cannam@167: #endif cannam@167: cannam@167: ;