Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
1af545aa
Commit
1af545aa
authored
9 years ago
by
Angus Lepper
Browse files
Options
Downloads
Patches
Plain Diff
configure script detects immintrin.h availability
parent
fb21976f
No related branches found
No related tags found
2 merge requests
!136
Master
,
!84
libnuma, immintrin.h detection in configure script
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
src/vector.h
+3
-2
3 additions, 2 deletions
src/vector.h
with
6 additions
and
2 deletions
configure.ac
+
3
−
0
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])
...
...
This diff is collapsed.
Click to expand it.
src/vector.h
+
3
−
2
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment