Intel® Cilk™ Plus

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.

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
}

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

Cannot vectorize array notations

Hi all, I have vectorization problems and I really need your help. Here are the vectorization reports for each array notation in the code bellow: -Array Notation(1) : Vectorized -Array Notation(2) : Subscript too complex -Array Notation(3) : Existence of vector dependence -Array Notation(4) : Subscript too complex -Array Notatino(5) : Subscript too complex -Array Notation(6) : Existence of vector dependence I tried using "restrict" on the pointers(i.e. int* restric p_p_data_), but didn't work. Is there any problem I'm missing? Thanks in advance! [CPU Info] -Core2 Quad Q9400

Problem with installation

Hello all Im having some troubles with the installation of cilk or i might missing something. I have installed gcc-4.7 and downloaded the tar.gz file. I installed the tar.gz file under /usr/local/ and now there is a new directory cilk. I set the PATH enviroment variable but i still cant compile anything.I tried with the examples but always gives a bunch of errors. The thing is that when i change the PATH to point to /cilk i cant use g++ either. Im typing g++ -v and gives me back "gcc version 4.2.4 (Cilk Arts Build 8503)"

Cilk on CentOS

We had to make a major change and move from the Ubuntu operating system to CentOS (a version of Redhat). I am now tryng ti re-install Cilk ComposerC++ XE on CentOS.

It installed on Ubuntu, but installing on CentOS I have had some snags.

Please note thatthis is 64-biy CentOS, but I am installing 32-bit Cilk. The version is CentOS 6.2, 64 bit.

Idid have to make SeLinux permissive,and that worked. I contnued with the install andit said:

Pages

Subscribe to Intel® Cilk™ Plus