Questions tagged [cilk]

Cilk is a general-purpose programming language designed for multithreaded parallel computing.

Cilk is a general-purpose programming language designed for multithreaded parallel computing. It is based on ANSI C, with the addition of just a few Cilk-specific keywords. Its run-time system uses a provably good algorithm for scheduling.

Originally Cilk was developed at the MIT Laboratory for Computer Science. A commercial instantiation of the technology is Intel Cilk Plus which has been deprecated and the opencilk is the live branch of the cilk nowadays opencilk.

72 questions
1
vote
1 answer

How to link CUDA library with Cilk++

I am trying to develop some Hybrid program using Intel's Cilk++ and Nvidia's CUDA. I created a Shared library from Cuda code(libtest.so). And I want to link it with Cilk++ program, so that I can offload some work to GPU. But when I compile cilk++…
Ameya
  • 25
  • 3
1
vote
2 answers

Trying to run cilkscreen/cilkview on gcc with cilkplus

I am currently trying to use cilkscreen to find a race condition in cilk; however, I have the following problem. cilkscreen ./executable -bash: /home/ubuntu/cilkutil/bin/cilkscreen: No such file or directory What am I doing wrong? I have downloaded…
jab
  • 5,673
  • 9
  • 53
  • 84
1
vote
0 answers

Syntax error when using structs in cilk

I've been getting an odd syntax error when trying to compile my cilk program. Maybe I'm missing something basic that is a quirk of cilk. Whenever I use structs (as in the code below) the program produces a syntax error. This error doesn't occur when…
dbish
  • 53
  • 8
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. …
1
vote
1 answer

error accessing file pointer in a multi-threaded program

What I want to ask is part of some big code but I will try to make it as short as possible. I will first explain the relevant code snippets from my code first and then the error I am getting. From main.c inside main function: cilk_for ( line_count =…
Aman Deep Gautam
  • 8,091
  • 21
  • 74
  • 130
1
vote
1 answer

Cilk installation error on Ubuntu

I want to install cilk on my linux machine, and in their directory they tell me to write: ./configure then make then make install to install the compiler on my machine, but when i type the make it gives a lot of messages, then at the end it gives me…
hakuna matata
  • 3,243
  • 13
  • 56
  • 93
0
votes
1 answer

technical problem using intel parallel studio with cilk_spawn

I work with intel parallel studio 2011 and I included: #include which seemed to be included just fine. Then I tried using the command: cilk_spawn (and also _Cilk_spawn) and got the following error: Error: identifier "_Cilk_spawn" is…
N.M
  • 685
  • 1
  • 9
  • 22
0
votes
1 answer

Sleeping a PThread other than the one doing the calling

So I have a bunch of pthreads, where one is the "main" thread and determines if a worker thread should be running or sleeping. But the POSIX definition for sleep says that The sleep() function shall cause the calling thread to be suspended from…
Andy Shulman
  • 1,895
  • 3
  • 23
  • 32
0
votes
1 answer

Greedy Scheduling in Multi-threading programming in cilk

I am having problem understanding the complete step and incomplete step in greedy scheduling in Multi-threaded programing in cilk. Here is the power-point presentation for reference. Cilk ++ Multi-threaded Programming The problem I have…
Niaz Mohammad
  • 41
  • 1
  • 8
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
0 answers

How do I compile a cilk program?

I installed Cilk using the instructions from their website. sudo apt-add-repository ppa:wsmoses/tapir-toolchain sudo apt-get update sudo apt-get install tapirclang-5.0 libcilkrts5 I copied the following program from the Cilk documentation. #include…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
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

Cilk and CUDA combination and compilation

I have a program that consists of 3 files, one .c file and two .cu files, nn.cu and parallel.cu. The main function is located in the one .cu file, the nn.cu and the .c file (utils.c) I have it as extern "C" in the parallel.cu . I want to further…
BabisI
  • 25
  • 1
  • 7
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