Intel® Cilk™ Plus

How to cause cilk_for to use all cores ?

Hello,

I ran a (very) simple cilk_for loop on a CoreI5-2400 CPU under windows XP-32bit.

The code is attached. It was compiled and built with the latest intel compiler using MSDEV 2010 

It seems that this loop runs a little bit faster than this loop implemented with intrinsic C.

But my CPU has 4 cores.

I expect the cilk code to run 4 times faster.  

How can I cause all cores to participate in the calculation ?

Thanks,

Zvika

vectorlengthfor types

Hi.

What are the types allowed in the vectorlengthfor clause?  

The 1.1 spec just says "type-name" with no restrictions whatsoever.  However, the icc 12.1 manual says "data type must be one of built-in integer types (8, 16, 32, or 64bit), pointer types (treated as pointer-sized integer), floating point types (32 or 64bit), or complex types (64bit or 128bit).".  Which is correct?

Assuming the icc manual is correct and the spec is lacking, are typedef substitutions allowed?  Say, "typedef int typint".  Is vectorlength(typint) allowed?

is the vectorlength clause merely a hint to the compiler?

Hi.

There is a small discussion going on in the GCC mailing list wrt the vectorlength clause (http://gcc.gnu.org/ml/gcc-patches/2013-04/msg01333.html). This is in regards to the vectorlength attribute as it relates to the Cilk Plus #pragma simd construct.

The heap memory

Hello, I'm programming with Intel Cilk+ and encountered a obstacle. 

I developped two patterns. The second one shows its advantages when the problem size is bigger than 40000(float) which is very inadequate. I wanna see its development. However 50000 gives me a std::bad_alloc. 50000 * 50000 * 4 =10GB while I have 27GB MemFree (refers to my meminfo). Is there any possiblity to set a bigger heap memory?

I'm using icc version 13.1.0.

Thanks for your comments.

_Cilk_for syntax questions

Hi folks.

I am working with Balaji in the GCC implementation of CilkPlus, and I have a few syntax questions.  I am looking at version 1.1 of the language extension specification.  BTW, if this is not the right forum to ask about standards/syntax questions, please let me know where I may direct such questions.

For _Cilk_for (and similarly for the for loop associated with a #pragma simd), I see:

Pages

S’abonner à Intel® Cilk™ Plus