Skip to content

Commit

Permalink
[Chore](arm) Support auto-SIMD on arm and refactor compilation docs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zclllyybb authored and Doris-Extras committed Jan 16, 2024
1 parent 168afdb commit 2916745
Show file tree
Hide file tree
Showing 5 changed files with 697 additions and 656 deletions.
10 changes: 10 additions & 0 deletions be/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ execute_process(COMMAND bash "-c" "uname -m"
OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS "Build target arch is ${CMAKE_BUILD_TARGET_ARCH}")

if ("${CMAKE_BUILD_TARGET_ARCH}" STREQUAL "aarch64" OR "${CMAKE_BUILD_TARGET_ARCH}" STREQUAL "arm64")
set (ARCH_ARM 1)
endif()

# Set dirs
set(BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(ENV{DORIS_HOME} "${BASE_DIR}/..")
Expand Down Expand Up @@ -302,13 +306,19 @@ if (RECORD_COMPILER_SWITCHES)
add_compile_options(-frecord-gcc-switches)
endif()

# simd for architectures
if ("${CMAKE_BUILD_TARGET_ARCH}" STREQUAL "x86" OR "${CMAKE_BUILD_TARGET_ARCH}" STREQUAL "x86_64")
add_compile_options(-msse4.2)
if (USE_AVX2)
add_compile_options(-mavx2)
endif()
endif()

if (ARCH_ARM)
add_compile_options(-march=armv8-a+crc)
endif()
#

if (WITH_MYSQL)
add_compile_options(-DDORIS_WITH_MYSQL)
endif()
Expand Down
7 changes: 3 additions & 4 deletions docs/en/docs/advanced/time-zone.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ The following two time zone related parameters exist within Doris:

The time zone data contains the name of the time zone, the corresponding time offset, and the change of daylight saving time. On the machine where the BE is located, the sources of the data are as follows:

1. the directory returned by the `TZDIR` command
2. the `/usr/share/zoneinfo` directory
3. the `zoneinfo` directory generated under the doris BE deployment directory. The `resource/zoneinfo.tar.gz` directory from the doris repository.
1. the directory returned by command `TZDIR`. If was not supported, the directory `/usr/share/zoneinfo`.
2. the `zoneinfo` directory generated under the doris BE deployment directory. The `resource/zoneinfo.tar.gz` directory from the doris repository.

Look up the above data sources in order and use the current item if found. If none of the three are found, the doris BE will fail to start, please rebuild the BE correctly or get the distribution.
Look up the above data sources in order and use the current item if found. If neither is found, the doris BE will fail to start, please rebuild the BE correctly or get the distribution.

## Impact of time zone

Expand Down
Loading

0 comments on commit 2916745

Please sign in to comment.