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
d40118fd
Commit
d40118fd
authored
Sep 17, 2015
by
Matthieu Schaller
Browse files
Do not include GCC vector intrinsics when compiling on a BlueGene
Former-commit-id: 04df2bb693e4641f6e3fbbfe140cf424e6cca9e7
parent
0740898d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vector.h
View file @
d40118fd
/*******************************************************************************
* This file is part of SWIFT.
* Coypright (c) 2012 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
* 2015 Matthieu Schaller (matthieu.schaller@durham.ac.uk)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
...
...
@@ -22,8 +23,14 @@
/* Have I already read this file? */
#ifndef VEC_MACRO
/* Include the header file with the intrinsics. */
/* 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 */
#ifndef __xlc__
/* Include the header file with the intrinsics (GCC, ICC, Clang). */
#include
<immintrin.h>
#endif
/* Define the vector macro. */
#define VEC_MACRO(elcount, type) \
...
...
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