Skip to content

Commit bf7e710

Browse files
Isotr0pydtrifiro
authored andcommitted
[Doc] Add oneDNN installation to CPU backend documentation (vllm-project#8467)
1 parent 754dc0f commit bf7e710

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/getting_started/cpu-installation.rst

+14
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@ Build from source
5959
$ pip install wheel packaging ninja "setuptools>=49.4.0" numpy
6060
$ pip install -v -r requirements-cpu.txt --extra-index-url https://download.pytorch.org/whl/cpu
6161
62+
- Third, build and install oneDNN library from source:
63+
64+
.. code-block:: console
65+
66+
$ git clone -b rls-v3.5 https://github.com/oneapi-src/oneDNN.git
67+
$ cmake -B ./oneDNN/build -S ./oneDNN -G Ninja -DONEDNN_LIBRARY_TYPE=STATIC \
68+
-DONEDNN_BUILD_DOC=OFF \
69+
-DONEDNN_BUILD_EXAMPLES=OFF \
70+
-DONEDNN_BUILD_TESTS=OFF \
71+
-DONEDNN_BUILD_GRAPH=OFF \
72+
-DONEDNN_ENABLE_WORKLOAD=INFERENCE \
73+
-DONEDNN_ENABLE_PRIMITIVE=MATMUL
74+
$ cmake --build ./oneDNN/build --target install --config Release
75+
6276
- Finally, build and install vLLM CPU backend:
6377

6478
.. code-block:: console

0 commit comments

Comments
 (0)