File size: 1,635 Bytes
ccc7068
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24b8bdc
 
 
 
cb2b0d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ccc7068
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# **Lbx binary pkg**
## **vllm.whl**
```
cd vllm/
CUDA_VISIBLE_DEVICES=11 python setup.py bdist_wheel
```
## **sglang.whl**
```
cd sglang/python
python -m build
```
## **flash_attn.whl**
```
cd flash-attention
CUDA_VISIBLE_DEVICES=11 python setup.py bdist_wheel
```
## **flashinfer.whl**
```
cd flashinfer/python/ 
FLASHINFER_BUILD_VERSION="999.0.4+cu124torch2.3" TORCH_CUDA_ARCH_LIST="8.0 8.9" python -m build --no-isolation
 
The "-Wno-switch-bool" parameter needs to be removed in setup.py. nvcc 12.4 does not have this option.
```

## **onnxruntime_openvino.whl**
### download openvino
https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux
https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html
```
mkdir /opt/intel
mv openvino_xxx /opt/intel
cd /opt/intel/openvino_xxx
./install_dependencies/install_openvino_dependencies.sh
```
### build onnxruntime 
https://onnxruntime.ai/docs/build/eps.html#openvino
```
source /opt/intel/openvino_xxx/setupvars.sh
./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
```
#### if build error with libprotobuf or googletest, use onnxruntime/cmake/deps.txt manual build protobuf and googletest
```
wget https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.zip
unzip v21.12.zip
cd protobuf-21.12
mkdir build && cd build
cmake .. -DONNX_USE_PROTOBUF_SHARED=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
make
make install
rm -rf build/ and rebuild onnxruntime_openvino
```