-
Notifications
You must be signed in to change notification settings - Fork 758
omp::vector does not use OpenMP unless THRUST_DEVICE_SYSTEM=...OMP? #383
Comments
Hi Sylwester, I think you can workaround it by adding
Also, don't forget |
To fix this, we need to change this line to |
Hi, I've came across a similar issue again, and remembered the discussion here. Trying to rerun the example above I'm now getting:
with the Thrust 1.7 packaged in Debian, and:
with the current github version. |
Hi Sylwester, To fix this, either install the CUDA runtime so that |
Hi, First, thanks for quick answer. Second - just for the record - the reason I was getting the same symptoms was that the Thrust calls got into another OpenMP block:
is giving:
Seems obvious, but was hard to track down in a longer code. |
Hi,
The following code:
when compiled with no THRUST_DEVICE_SYSTEM specified:
runs on a single thread even though an omp::vector was used:
The same code compiled with THRUST_DEVICE_SYSTEM set to OpenMP:
Does run using multiple threads:
How to force it to use OpenMP even without defining THRUST_DEVICE_SYSTEM?
(context: https://groups.google.com/forum/#!msg/thrust-users/r_aorLOXnpI/wLjQmFKMOFcJ)
Thanks for help,
Sylwester
The text was updated successfully, but these errors were encountered: