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