Failing to compile code that uses boost::signals2
The following code fails to compile (Boost 1.55, latest Intel C++ compiler): class Order {};class Foo { signal<void(Order*)> beforeOrder; void test(Order* o) { beforeOrder(o); } };int...
View ArticleCompilation error on Mac OS X and Composer XE beta 2015
Hi,I m trying to compile a very simple threaded app using the Intel Composer XE beta 2015. The program compiles just fine on a Linux platform but fails on latest Mac OS X:Sample program:...
View ArticleVectorization in C++
Hi,The following code vectorizes nicely in Fortran, but I can't make it vectorize in C++.program main implicit none integer, parameter :: dp = 8 integer, parameter :: n = 2 * 10**9 real(dp) :: somme...
View Articleloop is not vectorised when it contains call to fmod() (Windows)
Greetings,I wonder why fmod() is not vectorised (using it as intrinsic function) when I use mutithreaded debug DLL as CRT. In assembler output there is call to CRT's...
View ArticlePossible bug in icc
I am pretty sure the following program complies to C++ 0x standard. icc however cannot compile it: #include <functional> struct Node { size_t length; }; template<typename N> class C {...
View ArticleInclude dead code elimination in optimization report
As of Intel C/C++ compiler version 14.0.2.144, is it possible to make optimization report print out information on dead code elimination decisions? I have a case where I suspect that dead code...
View Article移植及调优运行于Intel® Xeon Phi™处理器的应用程序
本文是帮助用户移植应用程序到Intel® Xeon Phi™处理器的最佳化方法的汇总,用户在移植现有应用程序时,利用下面的代码改动建议及Intel® 编译器的开关使用建议将有助于得到更好的程序运行性能。 1.有效地利用编译器的开关使用编译器选项 -mmic 来编译运行于协处理器上的本地程序。选择编译器多个开关来最大化性能,尤其是当程序对最低浮点精度有要求时。 浮点计算...
View ArticleGetting "incomplete type is not allowed" error
Hi, while trying to compile following code using "icc compiler 15.0.0", I am getting the follow error (this code compiles fine with gcc 4.7.2)>cat foo.cpp #include "boost/mpl/pop_back.hpp" #include...
View ArticleUsing Intel® C++ Composer XE for Multiple Simple Random Sampling without...
IntroductionRandom sampling is often used when pre- or post-processing of all records of the entire data set is expensive, as in the following examples. When the file of records or database is too...
View ArticleIntel C++ compiler, libc++, std::tuple issue
Hi all,I'm using Intel C++ Compiler 14.0.3 and libc++ on Mac OS X 10.9.3. The following code compiles cleanly in clang and gcc but not on icpc. Maybe a compiler bug?Many thanks,-mc. #include...
View Article64-bit registers not recognized by the compiler?
I have made a simple test program to try out inline assembly, as follows:#include <stdio.h> int main() { int a=0; __asm { mov eax, 1 mov [a], eax } printf("%d", a); return 0; }It builds and...
View ArticleCode style vs performance?
Hi,Recently a colleague of mine presented me with a surprising find, one which I do not fully understand. Maybe someone can shed some light on this.The background behind the following example is that I...
View ArticleStack Overflow Error in Eigenvalue Solver: dfeast_scsrgv
Hi,I'm trying to solve eigenvalue problem for large sparse matrices using dfeast_scsrgv function. The function works fine for small problems (ex: 8*8 sparse matrix) but it gives...
View ArticleDisable kmp_affinity warnings
Hi,I'm doing a graphic application that also uses OpenMP. This application has que linker flag /SUBSYSTEM:WINDOWS in order to not create an additional command line window. The problem is that in...
View ArticleWhy does "warning #1292: unknown attribute" depend on location of include file?
I can suppress this warning easy enough, but I'm perplexed why I get it. Below I show a simple recipe to generate this warning and the only thing I'm changing is the location of an include file. Is...
View ArticleLEA and MOV behaving differently in Windows and Linux
Hi,I am converting a big Windows dll to work on both Windows and Linux. The dll has a lot of assembly (and SS2 instructions) for video manipulation.The code now compiles fine on both Windows and Linux...
View ArticleIs there a usable intrinsics guide?
Is there a usable intrinsics guide?Note, I have the Intel(R) Intrinsics Guide V3.01. However, it is not very productive in finding what you want (need) nor is it comprehensive.For example, you cannot...
View Articleloop is not vectorised when it contains call to fmod() (Windows)
Greetings,I wonder why fmod() is not vectorised (using it as intrinsic function) when I use mutithreaded debug DLL as CRT. In assembler output there is call to CRT's...
View ArticleChoosing the best compiler to c++
There are many compilers to c++, what is the most suitable for the c++ and also the fastest.
View ArticleR Orphaned Processes
I've noticed strange behaviour with launching parallel processes in R that only appears when R is built with icc. The spawned parallel processes are not killed when the main process ends.Example code...
View Article