Skip to content

Commit b480c8b

Browse files
committed
update Build.md and licence in new files
1 parent 8a058c6 commit b480c8b

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

BUILD.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
2020
- Install Visual Studio 2022:
2121
- https://docs.qualcomm.com/bundle/publicresource/topics/80-62010-1/setup.html?product=1601111740057789
22-
- Install x64 version Python-3.12.6:
23-
- https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe
22+
- Install x64 version [Python-3.12.8](https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe) or install arm64 version [Python-3.12.6](https://github.com/quic/ai-engine-direct-helper/blob/main/docs/python_arm64.md) if your app is running on arm64.
23+
-
2424
- Use the commands below to install Python dependency:
2525
```
2626
pip install wheel==0.45.1 setuptools==75.8.0 pybind11==2.13.6
@@ -36,22 +36,29 @@ git pull --recurse-submodules
3636
```
3737
- Set environment 'QNN_SDK_ROOT' to the Qualcomm® AI Runtime SDK path which you're using. E.g.:
3838
```
39-
Set QNN_SDK_ROOT=C:\Qualcomm\AIStack\QAIRT\2.38.0.250901\
39+
Set QNN_SDK_ROOT=C:\Qualcomm\AIStack\QAIRT\2.42.0.251225\
4040
```
4141
- Use the commands below to build and install Python extension(*.whl): <br>
4242
*Note: Please get the corresponding "Supported Toolchains" and "Hexagon Arch" with your device from [Supported Snapdragon devices](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-10/QNN_general_overview.html#supported-snapdragon-devices). <br>
4343
*Note: Make sure to compile it in the regular Windows Command Prompt — not in the 'ARM64 Native Tools Command Prompt for VS 2022' and not in the 'Power Shell' window.* <br>
4444
```
4545
cd ai-engine-direct-helper
4646
python setup.py --toolchains <Supported Toolchains> --hexagonarch <Hexagon Arch> bdist_wheel
47-
# For example: python setup.py --toolchains arm64x-windows-msvc --hexagonarch 73 bdist_wheel
47+
48+
#support multiple hexagonarch, for example:
49+
python setup.py --toolchains arm64x-windows-msvc --hexagonarch 73 bdist_wheel
50+
python setup.py --toolchains arm64x-windows-msvc --hexagonarch 73,81 bdist_wheel
4851

4952
python setup.py bdist_wheel
5053
# You can also use above command, it will compile it with default Toolchains and Hexagon Arch.
5154

5255
# Install the extension:
5356
pip install dist\qai_appbuilder-2.38.0-cp312-cp312-win_amd64.whl
5457
```
58+
## DLC Support
59+
### load .bin model file after covert .dlc file, refer to [dlc2bin](https://github.com/quic/ai-engine-direct-helper/tree/main/tools/convert/dlc2bin).
60+
### load .dlc model file directly from QAIRT version 2.42.0.251225 onwards.
61+
A new .dlc.bin file will be generated after load and run .dlc model at the first time, then will load that new .dlc.bin file when run your app later to save time. Usage sample codes can refer to [real_esrgan_x4plus.py](https://github.com/quic/ai-engine-direct-helper/commit/dbc36f61c816e3864793f82eb1e688e0ad52216a).
5562
5663
## Build QAI AppBuilder for android
5764

src/Utils/QnnDlcUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//==============================================================================
22
//
3-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4-
// All rights reserved.
5-
// Confidential and Proprietary - Qualcomm Technologies, Inc.
3+
// Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
4+
//
5+
// SPDX-License-Identifier: BSD-3-Clause
66
//
77
//==============================================================================
88

src/Utils/QnnDlcUtils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//==============================================================================
22
//
3-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4-
// All rights reserved.
5-
// Confidential and Proprietary - Qualcomm Technologies, Inc.
3+
// Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
4+
//
5+
// SPDX-License-Identifier: BSD-3-Clause
66
//
77
//==============================================================================
88
#pragma once

0 commit comments

Comments
 (0)