zhiqiang-hhhh opened a new pull request, #60943:
URL: https://github.com/apache/doris/pull/60943
# Add DYNAMIC_ARCH control option to build.sh
## Summary
Add command-line options to manually control the DYNAMIC_ARCH parameter in
OpenBLAS compilation, allowing users to enable or disable dynamic CPU detection
at build time.
## Changes Made
### 1. build.sh
- Added two new command-line options:
- `--enable-dynamic-arch`: Enable dynamic CPU detection in OpenBLAS
(default behavior)
- `--disable-dynamic-arch`: Disable dynamic CPU detection in OpenBLAS
- Initialized `ENABLE_DYNAMIC_ARCH` variable with default value `'ON'`
- Added parameter handling for both new options in the argument parsing
section
- Passed `ENABLE_DYNAMIC_ARCH` variable to BE and Cloud cmake build commands
- Updated help documentation with usage examples and environment variable
info
### 2. be/src/olap/rowset/segment_v2/ann_index/cmake-protect/CMakeLists.txt
- Modified DYNAMIC_ARCH setting logic to support external
`ENABLE_DYNAMIC_ARCH` variable
- Added conditional check: if `ENABLE_DYNAMIC_ARCH` is defined, use its
value; otherwise, use default (ON)
- Maintained backward compatibility with existing behavior
## Usage
### Command-line options:
```bash
./build.sh --be --disable-dynamic-arch # Disable DYNAMIC_ARCH
./build.sh --be --enable-dynamic-arch # Enable DYNAMIC_ARCH (default)
./build.sh --be # Use default (ON)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]