Commit d40118fd authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not include GCC vector intrinsics when compiling on a BlueGene


Former-commit-id: 04df2bb693e4641f6e3fbbfe140cf424e6cca9e7
parent 0740898d
/******************************************************************************* /*******************************************************************************
* This file is part of SWIFT. * This file is part of SWIFT.
* Coypright (c) 2012 Pedro Gonnet (pedro.gonnet@durham.ac.uk) * 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 * 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 * it under the terms of the GNU Lesser General Public License as published
...@@ -22,8 +23,14 @@ ...@@ -22,8 +23,14 @@
/* Have I already read this file? */ /* Have I already read this file? */
#ifndef VEC_MACRO #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> #include <immintrin.h>
#endif
/* Define the vector macro. */ /* Define the vector macro. */
#define VEC_MACRO(elcount, type) \ #define VEC_MACRO(elcount, type) \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment