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

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

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.

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Inicie sesión para dejar un comentario.