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
0
votes
1 answer

Assigning tasks to threads in Cilk and assigning threads to NUMA nodes

For example, there are three threads. Thread 1 is assigned tasks 1, 2, and 3. Thread 2 is assigned tasks 4, 5, and 6. Thread 3 is assigned tasks 7, 8, and 9. Task sizes are not uniform. The tasks assigned to a thread have very similar working…
Kadir
  • 1,345
  • 3
  • 15
  • 25
0
votes
1 answer

Statically link cilk library on Mac with gcc

I'm trying to statically link the cilk library to my program, in order to be able to run the executable on environments that don't have the cilk libraries installed (since it is not so common). Here is the best I could come up with: cilkc -Ofast…
Lake
  • 4,072
  • 26
  • 36
0
votes
1 answer

How to get Cilk working with Cygwin?

I have downloaded both programs, but I see no instructions on google for getting Cilk to work on Cygwin. Is there a Cygwin package that would work? I'm programming in C and have gcc installed.
user1956609
  • 2,132
  • 5
  • 27
  • 43
0
votes
1 answer

cilk++ on linux system

I had some problems with a cilk++ program that works well on windows system but not on linux system: on windows system, while increasing the number of threads the execution time decrease but on linux system, while increasing the number of threads…
ammouna
  • 981
  • 1
  • 6
  • 4
0
votes
1 answer

Adoption of Cilk++ over pthreads

I have had this question for a while. I saw the MIT opencourseware lectures on Cilk++. The interface for using threads looked straight forward and the tooling seemed useful. The lecturer explained the pros of using Cilk++ instead of pthread or…
Gerard Sexton
  • 3,114
  • 27
  • 36
0
votes
1 answer

cilk and glibc on linux

I want to install Cilk on my linux machine (Ubuntu 12.04 LTS), in README file they said that I need to have glibc on my machine, I downloaded the 2.16 version, and after many attempts to install it, I messed up some files by installing even though I…
hakuna matata
  • 3,243
  • 13
  • 56
  • 93
0
votes
1 answer

thrust equivalent of cilk::reducer_list_append

I have a list of n intervals or domains. I would like to subdivide in parallel each interval into k parts making a new list (unordered). However, most of the subdivision won't pass certain criteria and shouldn't be added to the new…
rych
  • 682
  • 3
  • 10
  • 22
0
votes
2 answers

error in compiling cilk plus with gcc-4.7

I get the following error main.c:107:2: internal compiler error: in extract_for_fields, at cilk-spawn.c:1857 } and the relevant lines are: cilk_for (index = 0; table_name[index]!=NULL; ++index ) { /* some work*/ } Line 107 corresponds to the…
Aman Deep Gautam
  • 8,091
  • 21
  • 74
  • 130
0
votes
1 answer

Unable to build gcc branch for cilk

I am trying to build the cilk branch from the branch downloaded form svn by this command: svn co http://gcc.gnu.org/svn/gcc/branches/cilkplus-4_7-branch/ The tutorial I am using to install is :this one In step 5 line 9 I get this error: ar:…
Aman Deep Gautam
  • 8,091
  • 21
  • 74
  • 130
0
votes
1 answer

How to calculate time for a cilk_spawn

thanks for looking at the post I am benchmarking some Cilk Plus code and was looking to calculate the time required to complete a "spawn" operation. I am interested in calculating only the time required to do a spawn and not the computational time…
boffin
  • 639
  • 2
  • 13
  • 26
-1
votes
1 answer

Internal and external parallelism

What is difference between internal and external parallelism? If one solution(visual studio) has 2 projects then how can we define parallelism by internal or external? Thanks
Bertrand
  • 43
  • 1
  • 5
-1
votes
1 answer

Why does it gives segmentation fault in cilk, I am using ICC compiler

I am new to programming in cilk. I am trying block matrix multiplication using cilk. But for some reason I am getting segmentation fault. Could you please help me on this. void cilk_vec_mmm(int m, int n, int p, float A[m][1000], float B[p][1000],…
Biparite
  • 203
  • 1
  • 2
  • 13
1 2 3 4
5