PZS-ModelCloud
commited on
Commit
•
cb2b0d1
1
Parent(s):
9fe5b44
Update README.md
Browse files
README.md
CHANGED
@@ -20,4 +20,32 @@ cd flashinfer/python/
|
|
20 |
FLASHINFER_BUILD_VERSION="999.0.4+cu124torch2.3" TORCH_CUDA_ARCH_LIST="8.0 8.9" python -m build --no-isolation
|
21 |
|
22 |
The "-Wno-switch-bool" parameter needs to be removed in setup.py. nvcc 12.4 does not have this option.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
```
|
|
|
20 |
FLASHINFER_BUILD_VERSION="999.0.4+cu124torch2.3" TORCH_CUDA_ARCH_LIST="8.0 8.9" python -m build --no-isolation
|
21 |
|
22 |
The "-Wno-switch-bool" parameter needs to be removed in setup.py. nvcc 12.4 does not have this option.
|
23 |
+
```
|
24 |
+
|
25 |
+
## **onnxruntime_openvino.whl**
|
26 |
+
### download openvino
|
27 |
+
https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux
|
28 |
+
https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html
|
29 |
+
```
|
30 |
+
mkdir /opt/intel
|
31 |
+
mv openvino_xxx /opt/intel
|
32 |
+
cd /opt/intel/openvino_xxx
|
33 |
+
./install_dependencies/install_openvino_dependencies.sh
|
34 |
+
```
|
35 |
+
### build onnxruntime
|
36 |
+
https://onnxruntime.ai/docs/build/eps.html#openvino
|
37 |
+
```
|
38 |
+
source /opt/intel/openvino_xxx/setupvars.sh
|
39 |
+
./build.sh --config RelWithDebInfo --use_openvino CPU --build_shared_lib --build_wheel --allow_running_as_root --skip_tests --compile_no_warning_as_error --skip_submodule_sync
|
40 |
+
```
|
41 |
+
#### if build error with libprotobuf or googletest, use onnxruntime/cmake/deps.txt manual build protobuf and googletest
|
42 |
+
```
|
43 |
+
wget https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.zip
|
44 |
+
unzip v21.12.zip
|
45 |
+
cd protobuf-21.12
|
46 |
+
mkdir build && cd build
|
47 |
+
cmake .. -DONNX_USE_PROTOBUF_SHARED=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
48 |
+
make
|
49 |
+
make install
|
50 |
+
rm -rf build/ and rebuild onnxruntime_openvino
|
51 |
```
|