The rocRAND repository is retired, please use the ROCm/rocm-libraries repository
The rocRAND project provides functions that generate pseudorandom and quasirandom numbers. The rocRAND library is implemented in the HIP programming language and optimized for AMD's latest discrete GPUs. It is designed to run on top of AMD's ROCm runtime, but it also works on CUDA-enabled GPUs.
Prior to ROCm version 5.0, this project included the hipRAND wrapper. As of version 5.0, it was split into a separate library. As of version 6.0, hipRAND can no longer be built from rocRAND.
- CMake (3.16 or later)
- C++ compiler with C++17 support to build the library.
- Recommended to use at least gcc 9
- clang uses the development headers and libraries from gcc, so a recent version of it must still be installed when compiling with clang
- C++ compiler with C++11 support to consume the library.
- For AMD platforms:
- For CUDA platforms:
- HIP
- Latest CUDA SDK
- Python 3.6 or higher (HIP on Windows only, only required for install script)
- Visual Studio 2019 with clang support (HIP on Windows only)
- Strawberry Perl (HIP on Windows only)
Note
The published rocRAND documentation is available here in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the docs
folder of this repository. As with all ROCm projects, the documentation is open source. For more information on contributing to the documentation, see Contribute to ROCm documentation.