oneMKL icon indicating copy to clipboard operation
oneMKL copied to clipboard

[DOC] [RNG] Add documentation for RNG

Open mmeterel opened this issue 3 years ago • 0 comments

Summary

RNG domain does not have documentation and needs to be added.

mmeterel avatar May 19 '22 20:05 mmeterel

Could you please clarify if SYCL buffer examples are supported with RNG ? Currently, the examples are written with USM. Thanks.

zjin-lcf avatar Aug 13 '22 03:08 zjin-lcf

Could you please clarify if curand and cublas can be enabled together or only one of them can be enabled in the build instruction ?

zjin-lcf avatar Aug 13 '22 12:08 zjin-lcf

Could you please clarify if ROCRAND is supported by HIPSYCL ? If not, please add a note to the ROCRAND support in the build instruction.

  -DENABLE_ROCBLAS_BACKEND=True                     \
         -DTARGET_DOMAINS=blas                               # hipSYCL only supports the BLAS domain

zjin-lcf avatar Aug 13 '22 19:08 zjin-lcf

Hi @zjin-lcf, thank you for noticing the issue! RocRand is supported with HIPSYCL you can use it right now with a build configuration similar to rocBLAS:

# Inside <path to onemkl>
mkdir build && cd build
cmake .. -DENABLE_CURAND_BACKEND=False                     \
         -DENABLE_MKLCPU_BACKEND=False/True              # hipSYCL supports MKLCPU backend
         -DENABLE_MKLGPU_BACKEND=False                       # disable Intel MKL GPU backend
         -DENABLE_ROCRAND_BACKEND=True                     \
         -DTARGET_DOMAINS=rng
         -DHIPSYCL_TARGETS=omp\;hip:gfx906                   # Specify the targeted device architectures
         -DONEMKL_SYCL_IMPLEMENTATION=hipSYCL                # Use the hipSYCL cmake integration
cmake --build .
ctest
cmake --install . --prefix <path_to_install_dir>

I prepared a PR with documentation fix #220 . I would be glad to help if you have any more questions.

aelizaro avatar Aug 18 '22 10:08 aelizaro