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
9f311bbc
Commit
9f311bbc
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Check for SIMD intruction sets only if vectorization is enabled.
parent
54c41342
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+11
-10
11 additions, 10 deletions
configure.ac
with
11 additions
and
10 deletions
configure.ac
+
11
−
10
View file @
9f311bbc
...
@@ -178,16 +178,6 @@ if test "$enable_opt" = "yes" ; then
...
@@ -178,16 +178,6 @@ if test "$enable_opt" = "yes" ; then
AX_CC_MAXOPT
AX_CC_MAXOPT
ac_test_CFLAGS="yes"
ac_test_CFLAGS="yes"
CFLAGS="$old_CFLAGS $CFLAGS"
CFLAGS="$old_CFLAGS $CFLAGS"
# Check SSE & AVX support (some overlap with AX_CC_MAXOPT).
# Don't use the SIMD_FLAGS result with Intel compilers. The -x<code>
# value from AX_CC_MAXOPT should be sufficient.
AX_EXT
if test "$SIMD_FLAGS" != ""; then
if test "$ax_cv_c_compiler_vendor" != "intel"; then
CFLAGS="$CFLAGS $SIMD_FLAGS"
fi
fi
fi
fi
# Add address sanitizer options to flags, if requested. Only useful for GCC
# Add address sanitizer options to flags, if requested. Only useful for GCC
...
@@ -242,6 +232,17 @@ if test "$enable_vec" = "no"; then
...
@@ -242,6 +232,17 @@ if test "$enable_vec" = "no"; then
fi
fi
HAVEVECTORIZATION=0
HAVEVECTORIZATION=0
else
else
# Check SSE & AVX support (some overlap with AX_CC_MAXOPT).
# Don't use the SIMD_FLAGS result with Intel compilers. The -x<code>
# value from AX_CC_MAXOPT should be sufficient.
AX_EXT
if test "$SIMD_FLAGS" != ""; then
if test "$ax_cv_c_compiler_vendor" != "intel"; then
CFLAGS="$CFLAGS $SIMD_FLAGS"
fi
fi
AC_DEFINE([WITH_VECTORIZATION],1,[Enable vectorization])
AC_DEFINE([WITH_VECTORIZATION],1,[Enable vectorization])
HAVEVECTORIZATION=1
HAVEVECTORIZATION=1
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Matthieu Schaller
@matthieu
mentioned in commit
86f47320
·
8 years ago
mentioned in commit
86f47320
mentioned in commit 86f473207bd8f7d3dd66e4ed7ee1078f1f4e620d
Toggle commit list
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