Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
add option DISABLE_WARNING_AVX2_WITHOUT_FMA
  • Loading branch information
AgnerF authored Apr 1, 2020
1 parent d8bb659 commit 5befebd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions instrset.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**************************** instrset.h **********************************
* Author: Agner Fog
* Date created: 2012-05-30
* Last modified: 2020-02-23
* Version: 2.01.01
* Last modified: 2020-04-01
* Version: 2.01.02
* Project: vector class library
* Description:
* Header file for various compiler-specific tasks as well as common
Expand Down Expand Up @@ -109,7 +109,9 @@
// Assume that all processors that have AVX2 also have FMA3
#if defined (__GNUC__) && ! defined (__INTEL_COMPILER)
// Prevent error message in g++ and Clang when using FMA intrinsics with avx2:
#if !defined(DISABLE_WARNING_AVX2_WITHOUT_FMA)
#pragma message "It is recommended to specify also option -mfma when using -mavx2 or higher"
#endif
#elif ! defined (__clang__)
#define __FMA__ 1
#endif
Expand Down

0 comments on commit 5befebd

Please sign in to comment.