Avoid interoperability problems with Thrust
Fixing pp condition
Fix #734: Threads stolen performance counter total is incorrect