Questions tagged [cilk-plus]

Intel® Cilk™ Plus is an extension to C and C++ that improves the performance of programs on multicore processors.

Intel® Cilk™ Plus is an extension to C and C++ that improves the performance of programs on multicore processors. The three Intel Cilk Plus keywords provide a simple model for parallel programming, while runtime and template libraries offer an environment for building parallel applications.

Source: Intel Developer Zone

79 questions
1
vote
1 answer

Using cilk++ work stealing

I am new to cilk++ and I want to use cilk's work stealing scheduler. I couldn't find much information on this. Can anybody help me regarding this? Thanks.
Ajn
  • 573
  • 3
  • 8
  • 18
1
vote
1 answer

Cilk++ with Boost Library

I am facing an issue while compiling the Cilk++ code with Boost Library. The Boost Library has been installed outside /usr/include. I used a -I option to specify the boost directory while compiling with cilk++. I am getting the following error. …
0
votes
1 answer

Compile C file with Cilk Plus array notation

In my available code, there is a line of Cilk Plus array notation: C[0:n*n]=0.0; When I compile it by running command on Linux: gcc matrix.cc -o matrix I encounter this error Which command I would use to fix this? Thank in advance
Duy Duy
  • 521
  • 1
  • 4
  • 9
0
votes
1 answer

error while installing Cilk Plus compiler on macOS Catalina and Xcode 11

I'm trying to instal Cilk Plus compiler, on a iMac with macOS Catalina and Xcode 11 with this guidelines, I used the command cmake -G "Unix Makefiles" -DINTEL_SPECIFIC_CILKPLUS=1 -DCMAKE_INSTALL_PREFIX=/install/prefix -DCMAKE_BUILD_TYPE=Release…
GaF
  • 101
  • 2
  • 5
0
votes
1 answer

Error during cmake build : CXX compiler must support Cilk

I am trying to install cilk++ according to this website and am at the steps in section "Cilk Plus Runtime". When I go to build, I get the following output: $ cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++…
anthony_m
  • 61
  • 1
  • 5
0
votes
1 answer

Redundant computations in attempt to parallelize recursive function with OpenMP

I have a recursive function that calls itself twice. My attempt to parallelize the function works eventually, but does a lot of redundant computations in the interim, thus wiping all gains from parallelism. The main program is trying to compute an…
0
votes
0 answers

How would I apply Cilk Plus Extensions to this simple C++ code?

So I've been tasked with finding a way to parallelize this simple C++ problem below. I've already had OpenMP explained to me (on a separate question) as one possible method and it was very solid. That being said, Clik Plus extensions appear to be…
Caladin00
  • 356
  • 1
  • 3
  • 11
0
votes
1 answer

Does C have templates?

I've previously worked with C but I'm still a major newby in general. Currently I'm working on a little project that involves Parallel Computing and for this we are using the language Cilk+. My objective is to implement a parallel scan pattern using…
Asfourhundred
  • 3,003
  • 2
  • 13
  • 18
0
votes
1 answer

Trouble Compiling Cilk Plus Program

I am running into trouble while trying to complie my Cilk Plus program. Basically when I run: g++ -o reducer reducer.cpp , I get the following error: -fcilkplus must be enabled to use '_Cilk_for' I've included cilk/cilk.h & cilk/reducer.h, but I am…
Stefan Radonjic
  • 1,449
  • 4
  • 19
  • 38
0
votes
1 answer

C++ (cilk plus code): Segmentation fault 11

I downloaded Intel Parallel Studio and then went to the command and entered: source /opt/intel/bin/compilervars.sh intel64 followed by: icpc file.cpp to run a Cilk plus file. The file.cpp is a simplified version of an original example used in…
L..
  • 75
  • 6
0
votes
1 answer

Internal compile error c++ cilk plus

[Fixed]- Explanation given in comments [Updated with error screenshot] I am getting a compilation error when compiled using gcc/5.4.0. Following is the error reported: internal compiler error: in lower_stmt, at gimple-low.c:397 …
letsBeePolite
  • 2,183
  • 1
  • 22
  • 37
0
votes
1 answer

Any matrix library order-neutral?

Sorry if this is too long, but I feel the question needs to be clarified: I'm working on a xll library for Excel, i.e., a C library containing functions which can be registered and called directly form a cell. Ideally these functions should be…
0
votes
2 answers

Is there a blas implementation using cilkplus array notation?

To my surprise, I'm not able to track on the web any implementation of BLAS based on cilkplus' array notation. It is strange, because cilkplus should ensure a (more than) decent performance on today's multicore workstation CPUs, coupled to a very…
0
votes
1 answer

cilk plus array notation not vectorized with gcc 4.9.0

I'm trying to figure out why gcc 4.9.0 won't vectorize a simple array addition when using gcc 4.9.0, using -O -ftree-vectorize: int a[256], b[256], c[256]; foo () { int i; a[:] = b[:] + c[:]; } From looking at the assembler produced this loop…
0
votes
1 answer

g++ and cilkscreen for detecting race condition

I'm trying to use cilkscreen to detect some race conditions in a code. I'm compiling my code using g++-5 -g foo.cpp -fcilkplus -std=c++14 -lcilkrts -ldl -O2 However, when I launch cilkscreen I get the following error message: cilkview…
hivert
  • 10,579
  • 3
  • 31
  • 56