I have a large, dynamically-resizable hash table whose access is controlled with a tbb::spin_rw_mutex. Multiple Cilk threads request access to this table, and occasionally one thread's desire to add a new item triggers a resize operation. The thread requesting the resize operation already holds a writer lock, thus the other threads will quickly be blocked from proceding with their read or write requests, and become idle.
Intel® Cilk™ Plus
Compile cilkrts20.dll with vs2010?
Would you please add cilkrts VS project files in the furture? thanks
Support for array in icpc 12.1.5
Hello,
I am trying to compile a simple C++ 0x program using the icpc 12.1.5 Intel compiler as:
icpc -std=c++0x tt.cc
where, tt.cc :
// array::at
#include
#include
int main ()
{
unsigned int i;
std::array myarray;
// assign some values:
for (i=0; i<10; i++) myarray.at(i) = i+1;
// print content
std::cout << "myarray contains:";
for (i=0; i<10; i++)
std::cout << " " << myarray.at(i);
std::cout << std::endl;
return 0;
}
but Iam getting:Envioronment vaiables for cilk plus
Hi,
I installed cilk plus successfully on my system ( Ubuntu 12.04 ). It works fine. Now I need to install it in redhat 6 and most of the steps as it seems are OS independent but I am stuck in teh environment variables part of installation.
The tutorails I reffered is http://software.intel.com/en-us/articles/how-to-build-gcc-cilkplus-branc...
multiple cilk-for in a c function
it is clear how to use cilkview in a c function. One just places cilkview.h in the include file secton, put __cilk_data_t start in the file defintion section of the c function. Finallly, puting __cilkview_query(strat); in the line above the cilk_for loop and at the end put __cilkview_report(&start,NULL,"title",CV_REPORT_WRITE_TO_RESULTS); at the bottom ogf the file.
NowI attempting to speed up only with cilk_for's, andI have set up each function as I have shown above.
icc bug fixed yet?
Has the bug identified as :
DPD200181389
been fixed yet?
Any help appreciated. Thanks in advance.
Newport_j
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 = 0; line_count != no_of_lines ; ++line_count )
{
//some stuff here
for ( j=line_count+1; j {
//some stuff here
final_result[line_count][j] = bf_dup_eleminate ( table_bloom[line_count], file_names[j], j );
//some stuff here
}
//some stuff here
}
Cannot assign to reducer_opor<bool>
I'd like to use a reducer to OR the bool results from a set of 4 Cilk threads, but icpc 12.1.0 will have none of that.
cilkview questions
Can one use cilkview on just part of a program to see if the parallelization on that sectionwas worth it in terms of speedup?
I assume that one can use cikview on the whole program to see if there is any speedup (or predicted speed up) from changing the program from c to cilk?
Thanks in advance.
Newport_j
cilkview and cilkscreen
Is there some revised document availab;le that show how to use cilkview and cilkscreen. I know there are old ones, but a new one reflecting the new commands would be better.
Thanks in advance.
Newport_j
