Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
1af545aa
Commit
1af545aa
authored
Sep 25, 2015
by
Angus Lepper
Browse files
configure script detects immintrin.h availability
parent
fb21976f
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
1af545aa
...
...
@@ -273,6 +273,9 @@ AM_CONDITIONAL(HAVESETAFFINITY,
# Check for libnuma.
AC_CHECK_LIB([numa], [numa_available])
# Check for Intel intrinsics header optionally used by vector.h.
AC_CHECK_HEADERS([immintrin.h])
# Check for timing functions needed by cycle.h.
AC_HEADER_TIME
AC_CHECK_HEADERS([sys/time.h c_asm.h intrinsics.h mach/mach_time.h])
...
...
src/vector.h
View file @
1af545aa
...
...
@@ -23,11 +23,12 @@
/* Have I already read this file? */
#ifndef VEC_MACRO
#include
"../config.h"
/* Need to check whether compiler supports this (IBM does not)
This will prevent the macros to be defined and switch off
explicit vectorization if the compiled does not support it */
#if defined(__GNUC__) && defined(__i386__)
#ifdef HAVE_IMMINTRIN_H
/* Include the header file with the intrinsics for Intel architecture. */
#include
<immintrin.h>
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment