Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
25 Views

Run function in parallel

Hello everyone,

I know that Intel TBB see that the correct parallelism is in data not in function, but in my program, I want to run a function that make an OpenGL projection and get resulted image will I run another function. Non negligible time is lost in waiting for the transfer between GPU memory and CPU.

I'm new to Intel TBB, and I don't want to mix my code with other libraries like OpenMP , ...

I there a way to run those two function in parallel in Intel TBB?

Many thanks for your help :)
0 Kudos
2 Replies
Highlighted
New Contributor II
25 Views

Quoting - ahmedg
Hello everyone,

I know that Intel TBB see that the correct parallelism is in data not in function, but in my program, I want to run a function that make an OpenGL projection and get resulted image will I run another function. Non negligible time is lost in waiting for the transfer between GPU memory and CPU.

I'm new to Intel TBB, and I don't want to mix my code with other libraries like OpenMP , ...

I there a way to run those two function in parallel in Intel TBB?

Many thanks for your help :)
Hi, have you taken a look at the new tbb::parallel_invoke function? Is that something that fits the problem? More information on parallel_invoke can be found in this blog entry.
0 Kudos
Highlighted
Beginner
25 Views

Hi, have you taken a look at the new tbb::parallel_invoke function? Is that something that fits the problem? More information on parallel_invoke can be found in this blog entry.

Hello Anton,

Thanks a lot, that is exactly what I was searching for.

Have a nice day.
0 Kudos