I am a former GPUprogrammer and sometimes we worry about resource contention. That scenariois when two threads access the same memory at the same time. The operatng system then serializes theprocess so all advantages to parallelizingcode are lost and who programs in parallel if not for speed up? So at that point you are back to serial processing and its slowness.
Intel® Cilk++ Software Development Kit
Is it possible to spawn a pointer to a function?
Is it possible to spawn a pointer to a function, i.e. spawn a function that is embedded in a data structure?
Global variables and data races
Being somewhat new to data races and Cilk,I am confused as to how global variables are more susceptible than local variaables to a data race. Inan examplein the Programmer's Guide the data race problem was solved with changing a global variable to a local variable.
That is all you got to do?
Newport_j
Getting Cilk worker thread ID in MY function
Hi,
Is it possible to get the ID of the worker thread that runs my spawned function?
Data races by code inspection
I can see (most of the time) when the examples in the Programmer's Guides show a program's source code and claim that a certain variable has a race condition. Those are obvious.
However, is it generally easy to find data races by code inspection? Some of the ones that I find using the Cilk tool are not at all obvious. They are in fact quite dificult to see in the code.
So the question is are data races easy or had to detect by code inspection. I am sorry if the question is so general.
Newport_j
Hyperobject defined
I know this may be elementary for someone who knows c++ (I have a limited understanding of C++),but I am unsure exactly what a hyperobject is.
Please define.
Newport_j
What is this error,how do I get rid of it
I got no reply to this question when I posted it last yesterday, so I must post it again. Any help appreciated.
Ichanged my main to cilk_main and got the following error:
error: ISO C++ forbids declaration of 'cilk_main' with no type
This complaint was made only after I added cilk to main to get cilk_main in my program code asI was instructed to doina previous forum post. That change in my code did get rid of a lotof errors, but created this one
I am just unsure whatis causing this and how do I get rid of it.
Newport_j
Potential bug in cilk_for
Hi,
I am reporting a potential bug in "cilk_for":
I have a following program:
{
Pochoir_Iterator iter0(b);
Pochoir_Iterator iter1(b);
const int l_stride_b_1 = b.stride(1), l_stride_b_0 = a.stride(0);
const int gap_b_1 = l_stride_b_1 + (1-(N_SIZE-1)) * l_stride_b_0;
Programmng notation
The following text isat the end ofthe paper:
Safe Open-Nested Transactions Through Ownership by Agrawal, Leiserson, and Sukha.
I am not sure to read this.
I have a Ph.D. in Operations Research so I am familiar with the notationused in mathematical proofs, but I am unsure what this is. Could some please name a text that expands on this. It does look like a math proof, butsometimes does not. i have shown this to my colleagues and allI got was blank stares.
Very new to Cilk
Ichanged my main to cilk_main and got the following error:
error: ISO C++ forbids declaration of 'cilk_main' with no type
This complaint was made only after I added cilk to main to get cilk_main in my program code asI was instructed to doina previous forum post. That change in my code did get rid of a lotof errors, but created this one
I am just unsure whatis causing this and how do I get rid of it.
Newport_j
