1
1

Disable vector optimization for ICC v12.1.0 release 2011.6.233.

This commit was SVN r25461.
Этот коммит содержится в:
George Bosilca 2011-11-08 21:23:30 +00:00
родитель d603f31976
Коммит bd55a19db4

Просмотреть файл

@ -5,9 +5,6 @@
* Additional copyrights may follow.
*/
/* OMPI change: With Intel Compiler v12.1 on linux, any launch fails even before main() */
#pragma optimize("", off)
#define OPAL_DISABLE_ENABLE_MEM_DEBUG 1
#include "opal_config.h"
@ -3937,6 +3934,23 @@ public_mALLOPt(int p, int v)
------------------------------ malloc ------------------------------
*/
/* With Intel Composer XE V12.1.0, release 2011.6.233, any launch */
/* fails, even before main(), due to a bug in the vectorizer (see */
/* https://svn.open-mpi.org/trac/ompi/changeset/25290). The fix is */
/* to disable vectorization by reducing the optimization level to */
/* -O1 for _int_malloc(). The only reliable method to identify */
/* release 2011.6.233 is the predefined __INTEL_COMPILER_BUILD_DATE */
/* macro, which will have the value 20110811 (Linux, Windows, and */
/* Mac OS X). (The predefined __INTEL_COMPILER macro is nonsense, */
/* 9999, and both the 2011.6.233 and 2011.7.256 releases identify */
/* themselves as V12.1.0 from the -v command line option.) */
#ifdef __INTEL_COMPILER_BUILD_DATE
# if __INTEL_COMPILER_BUILD_DATE == 20110811
# pragma GCC optimization_level 1
# endif
#endif
Void_t*
_int_malloc(mstate av, size_t bytes)
{