title: Generating permutations with CUDA
body: <p>I was reading about CUDA, and I tried to implement a simple code to create every possible permutation of the <code>array {a,b,c,d}</code>, but I don't know how to implement the CUDA way (since all the examples I read were of the form <code>a[blockIdx.x] = b[blockIdx.x] + c[blockIdx.x]</code> ).</p>
  
  <p>Any help will be appreciated.</p>