The example in AlgorithmsRandom uses WarpSize as the input for rng.GetView. The latter however requires the number of warps, not the size of said warps. I didn't check if that particular code works, but in either case the example would be more illustrative if it actually made some attempt at computing the appropriate number.
The example in AlgorithmsRandom uses
WarpSizeas the input forrng.GetView. The latter however requires the number of warps, not the size of said warps. I didn't check if that particular code works, but in either case the example would be more illustrative if it actually made some attempt at computing the appropriate number.