Contributing

mkl_random is a free and open source project. We welcome and appreciate your contributions.

To contribute, fork the repo https://github.com/IntelPython/mkl_random.git, clone it:

How to clone the repo
     git clone https://github.com/<fork-org>/mkl_random.git

Working C and C++ compilers are needed to build mkl_random. GNU gcc/g++, standard clang/clang++, Intel LLVM icx/icpx, and MSVC on Windows are supported.

Make sure to install Python packages required to build mkl_random:

  • python

  • numpy

  • cython

  • meson-python

  • ninja

  • cmake

  • mkl-devel

The Intel(R) MKL library and its headers are provided by the mkl-devel package and located through CMake, so no environment variable needs to be set.

Building mkl_random
   python -m pip install -e . --no-build-isolation --no-deps

The editable (-e) install makes the source tree importable and rebuilds the extension on import, so the test suite below runs against it from the repository root.

To run the test suite, install pytest, and run

Running mkl_random test suite
   python -m pytest mkl_random/tests

To build documentation, install sphinx, furo, sphinx-design, and sphinxcontrib-programoutput, and run

Building mkl_random documentation
   sphinx-build -M html docs/source docs/build

Rendered documentation can be found in “docs/build/html”.

For code style, the pre-commit hooks, and what to include in a pull request, see CONTRIBUTING.md.