Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #pragma acc parallel loop //Memory movement handled automagically
  2. for(int i=0;i<10000000;i++)
  3. a[i] = std::sqrt(std::log(a[i])+1.0); //Tada! I'm on the GPU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement