{"library":"onemkl-sycl-rng","title":"oneMKL SYCL RNG","description":"Intel® oneAPI Math Kernel Library (oneMKL) Random Number Generators (RNG) component for SYCL. Provides high-performance pseudorandom and quasi-random number generation on Intel GPUs and CPUs. Current version 2026.0.0. Released as part of the Intel oneAPI 2026.0 toolkit. Follows Intel's release cadence (yearly).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install onemkl-sycl-rng","pip install onemkl-sycl-rng==2026.0.0"],"cli":null},"imports":["import onemkl._sycl_rng.rng as mkl_rng"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import dpctl\nimport dpnp as np\nfrom onemkl._sycl_rng import rng as mkl_rng\n\n# Create a SYCL queue (e.g., GPU)\nqueue = dpctl.SyclQueue(\"gpu\")\n\n# Create an RNG engine and distribution\nengine = mkl_rng.create_engine(queue, mkl_rng.brng.mrg32k3a)\ndist = mkl_rng.create_distribution(mkl_rng.distribution.uniform, 0.0, 1.0)\n\n# Generate random numbers\nresult = np.empty(1000, dtype=np.float64)\nmkl_rng.generate(queue, engine, dist, result)\nprint(result[:5])\n","lang":"python","description":"Basic usage: create engine, create distribution, generate random numbers into a dpnp array.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}