Skip to content

How to check if parallel is actually running in parallel #290

Answered by jjfumero
MLobatoR asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MLobatoR ,
to be more precise, you need to look at the Global work size : field of the --theadInfo option.
This value indicates the number of threads that were launched on the device. If > 1, then it ran in parallel.

Additionally, the --threadInfo option prints the device (e.g., which GPU) was used.

Regarding your last question, there is a method you can invoke from the execution plan to enable profiling information. This will print the device and some metrics, but not the thread information.

 // Build executionPlan
TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph);

// enable profiler
executionPlan.withProfiler(ProfilerMode.CONSOLE);

// Execute the p…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MLobatoR
Comment options

@jjfumero
Comment options

Answer selected by MLobatoR
@MLobatoR
Comment options

@MLobatoR
Comment options

@jjfumero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants