blob: 4c8caaf29c56564f1863c41faeaf249d38e0fbda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 8b701e2b6989f7e071126989dd9453d7728d9a61 Mon Sep 17 00:00:00 2001
From: Naveen Saini <naveen.kumar.saini@intel.com>
Date: Wed, 7 Jul 2021 11:40:15 +0800
Subject: [PATCH] half.hpp: Fixed missing include for F16C intrinsics
Upstream-Status: Backport [https://sourceforge.net/p/half/code/415/]
Ref:
https://github.com/openvkl/openvkl/issues/12
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
---
testing/external/half.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/testing/external/half.hpp b/testing/external/half.hpp
index 69f2ffd..005043f 100644
--- a/testing/external/half.hpp
+++ b/testing/external/half.hpp
@@ -266,10 +266,6 @@
#if HALF_ENABLE_CPP11_HASH
#include <functional>
#endif
-#if HALF_ENABLE_F16C_INTRINSICS
- #include <immintrin.h>
-#endif
-
#ifndef HALF_ENABLE_F16C_INTRINSICS
/// Enable F16C intruction set intrinsics.
@@ -281,6 +277,10 @@
#define HALF_ENABLE_F16C_INTRINSICS __F16C__
#endif
+#if HALF_ENABLE_F16C_INTRINSICS
+ #include <immintrin.h>
+#endif
+
#ifdef HALF_DOXYGEN_ONLY
/// Type for internal floating-point computations.
/// This can be predefined to a built-in floating-point type (`float`, `double` or `long double`) to override the internal
--
2.17.1
|