Message Boards Message Boards

Random number from CUDA problem

I am trying to get a 2 random numbers from CUDA but getting errors.
I started with

ListPointPlot3D[
    Thread[List[
      CUDAFoldList[Plus, 0, RandomChoice[{1, -1, 0, 0}, 10^#]], 
      CUDAFoldList[Plus, 0, RandomChoice[{0, 0, 1, -1}, 10^#]], 
      CUDAFoldList[Plus, 0, RandomChoice[{0, 0, 1, -1}, 10^#]]]], 
    ImageSize -> Large, ViewPoint -> {1.3, -2.4, 2}] /. 
   Point -> Line & /@ {4, 5, 6}

Now I want to get the Random numbers from CUDA function

ClearSystemCache[];
mem = CUDAMemoryAllocate[Integer, {10000000}];
CUDAMemoryCopyToDevice[mem];
AbsoluteTiming[
 CUDAParkMiller[RandomInteger[Developer`$MaxMachineInteger, 512], mem,
    10000000];]

But I am not getting a function loaded . I followed the documentation , but getting errors. Any help here please. I am using WM 12.0 on W10

POSTED BY: Jose Calderon
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract