Commit Graph

40 Commits

Author SHA1 Message Date
Martin Kroeker 616cc28d82
Override icx's default fast math mode to ensure correct NaN handling 2024-05-26 12:59:11 +02:00
Ian McInerney 8f4e325ea8 Fix Clang sapphire rapids march flag 2024-01-15 23:42:03 +00:00
Ian McInerney 8a8a8479be Fix cooperlake and sapphire rapids march flags on clang
The march=cooperlake and march=sapphirerapids flags were never getting
added when building with Clang targetting those architectures. Instead
it was falling back to the skylake AVX512 implementation.

Clang added support for these two architectures in Clang 9 and Clang 12,
so introduce new checks for those versions to enable the appropriate
march flag, and fallback to skylake otherwise.
2023-08-14 16:12:35 +01:00
Martin Kroeker 8e8651f0a5
Supply necessary gcc option for AVX512-capable Ryzens 2023-02-02 18:13:29 +01:00
Martin Kroeker e15f810a02
Avoid spurious version queries and associated expr errors in the NOFORTRAN case 2022-08-29 17:31:57 +02:00
Wangyang Guo 1eca91f315 Fix build error in legacy gcc 2021-10-12 02:01:20 -07:00
Wangyang Guo 3dc6052c7e initial support for Sapphire Rapids platform 2021-10-12 01:30:40 -07:00
Martin Kroeker 0e73d20629
Handle inadvertent use of DYNAMIC_ARCH=0 2021-05-22 14:23:49 +02:00
Martin Kroeker 1ae607beca
Update Makefile.x86_64 2021-04-04 12:31:22 +02:00
Martin Kroeker d393f1923f
Fix spillover of host-specific build flags into the shared part of DYNAMIC_ARCH builds with gmake
for #3139
2021-04-03 22:18:15 +02:00
Martin Kroeker 3c356b1a1f
Support compilation with the NAG Fortran compiler 2021-03-11 11:51:09 +01:00
Martin Kroeker abef2ea770
Move -fma option setting to kernel/Makefile.L1 2020-12-17 11:32:27 +01:00
Martin Kroeker 22574b474e
Suppress -mfma as well for gcc 4.6 2020-11-30 21:41:51 +01:00
Martin Kroeker 2e99e2699b
Add workaround for gcc 4.6 miscompiling assembly kernels with -mavx 2020-11-29 15:32:17 +01:00
Martin Kroeker ccb9731c7b
Fix propagation of cpu properties to compiler options 2020-11-07 20:30:15 +01:00
Guillaume Horel 1917a4e7b8 reuse variables defined in Makefile.system 2020-10-22 22:04:25 -04:00
Martin Kroeker b23cb05231
Fix twisted spelling that broke the gfortran version test again 2020-10-23 00:18:29 +02:00
Guillaume Horel 47696b43e9 actually check that version is greater than 4.7 2020-10-21 16:42:37 -04:00
Martin Kroeker 00813363be
Enable -mavx2 for flang as well 2020-10-20 23:56:30 +02:00
Martin Kroeker f1bb85d378
Add AVX flags for clang/aocc as well 2020-10-16 20:52:15 +02:00
Martin Kroeker ca160bb440
Add -msse4.1 when SSE4.1 is supported 2020-10-14 19:18:07 +02:00
Martin Kroeker 137ae618db
Fix typo 2020-10-13 15:02:17 +02:00
Martin Kroeker 9e3cff5cf2
Expressly enable -mavx2 on Zen, SkylakeX and Cooperlake as well 2020-10-13 14:41:25 +02:00
Martin Kroeker 5f60a32cac
Add -mssse3 if supported by the hardware 2020-10-13 11:57:04 +02:00
Martin Kroeker 0c773b8205
Do not rely on HAVE_SSE3 in DYNAMIC_ARCH builds 2020-10-11 01:04:57 +02:00
Qiyu8 f32d34a015 add sse3 compiler flag 2020-10-10 10:36:15 +08:00
Martin Kroeker bb9cf766f5
make march=cooperlake option conditional on gcc >= 10.1 2020-08-19 15:06:30 +02:00
Chen, Guobing e740c4873d Enable COOPERLAKE build target
Enable new build target platform -- COOPERLAKE. This target platform
supports all the SKYLAKEX supported ISAs + avx512bf16. So all the
SKYLAKEX specific kernels/drivers and related code are now extended
to be also active on COOPERLAKE. Besides, new BF16 related kernels
are active under this target.
2020-08-13 06:18:00 +08:00
Martin Kroeker 4ab3651591
Option -mavx2 requires at least gcc 4.7 2020-07-02 17:00:15 +02:00
Martin Kroeker a66f4d80c8
Apply MinGW AVX512 compilation fix to fortran options as well
original issue was #1708, I see now that the same problem affects gfortran compilation. The underlying issue is said to be fixed (but not yet released) on all branches of gcc as of a few days ago but it will certainly take time to reach mingw/msys.
2020-02-27 23:09:40 +01:00
Martin Kroeker 6d3efb2b58
Update Makefile.x86_64 2019-06-14 08:08:11 +02:00
Martin Kroeker d9ff2cd90d
Do not force gcc options on non-gcc compilers
fixes compile failure with pgi 18.10 as reported on OpenBLAS-users
2019-06-13 23:01:35 +02:00
Martin Kroeker 43c2b0eb55
Add -mavx2 to TARGET=HASWELL builds
to leverage improvements from PR#1921
2018-12-23 17:16:43 +01:00
Martin Kroeker 38cc638591
Avoid adding blanket march=skylake-avx512 to dynamic_arch builds 2018-12-11 21:09:26 +01:00
Martin Kroeker 6234a32656
Use cygwin compilation workaround for avx512 on msys2/mingw64 as well 2018-10-09 10:31:59 +02:00
Martin Kroeker 73478664d4
Add workaround for avx512 compilations on Cygwin
fixes #1708
2018-08-06 16:40:32 +02:00
Martin Kroeker 0c5b7b400b
Add -march=skylake-avx512 to flags if target is skylake x 2018-06-20 15:16:19 +02:00
Timothy Gu 6c2ead30f0 Remove all trailing whitespace except lapack-netlib
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-06-27 12:05:18 -07:00
Sebastien Fabbro 9f0fb6e662 Respect user's LDFLAGS 2013-07-25 14:08:37 -07:00
Xianyi Zhang 342bbc3871 Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00