Software Archive
Read-only legacy content
17061 Discussions

How to start using the cilkview in cilkplus? I was cilk++ programmer.

kayseah
Beginner
389 Views
Hi,

Can anyone help me in how to use cilkview?
I was previously a cilk++ user. I am migrating myself into cilkplus.

Cilk++ code:

cilk::cilkview cv;

std::strncat(testname, "-PBFS", 5);

cv.start();

graph->pbfs(s, distances);

cv.stop();

runtime_ms = cv.accumulated_milliseconds();

cv.dump(testname);



Please help.

Thanks.
0 Kudos
1 Reply
Barry_T_Intel
Employee
389 Views

Cilkview and Cilkscreen for Intel Cilk Plus are packaged as a separate download. You can get it (free) from http://software.intel.com/en-us/articles/intel-cilk-plus-software-development-kit/

Because Intel Cilk Plus supports both C and C++, we had to do away with the cilk::cilkview class. The equivalent functionality is available by including cilktools/cilkview.h. I believe that your example code would translate to:

#include 
 :
 :

cilkview_data_t start_data;

std::strncat(testname, "-PBFS", 5);
__cilkview_query(start_data);
graph->pbfs(s, distances); 
__cilkview_do_report(&start_data, NULL, testname, CV_REPORT_WRITE_TO_LOG);

- Barry

0 Kudos
Reply