8000 [ML] Upgrade to Pytorch 2.1.2 and zlib 1.2.13 by edsavage · Pull Request #2588 · elastic/ml-cpp · GitHub
[go: up one dir, main page]

Skip to content

[ML] Upgrade to Pytorch 2.1.2 and zlib 1.2.13 #2588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
D 8000 iff view
Prev Previous commit
Next Next commit
Merge branch 'main' of github.com:elastic/ml-cpp into pytorch_2_1_0
  • Loading branch information
edsavage committed Jan 3, 2024
commit b25d73860d5c19ea002194b15f8978b79f0a1102
2 changes: 1 addition & 1 deletion .buildkite/pipelines/run_qa_tests.yml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ steps:
build:
message: "${BUILDKITE_MESSAGE}"
env:
QAF_TESTS_TO_RUN: "test1,test2,test3"
QAF_TESTS_TO_RUN: "ml_cpp_pr"
EOL
6 changes: 1 addition & 5 deletions 3rd_party/3rd_party.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ elseif ("${HOST_SYSTEM_NAME}" STREQUAL "linux")
set(OMP_PATTERN "libgomp")
set(OMP_EXTENSION ".so.1")
set(ZLIB_LOCATION)
if( "${ARCH}" STREQUAL "aarch64" )
set(TORCH_LIBRARIES "libtorch_cpu" "libc10")
else()
set(TORCH_LIBRARIES "libtorch_cpu" "libc10" "libintel-ext-pt-cpu")
endif()
set(TORCH_LIBRARIES "libtorch_cpu" "libc10")
set(TORCH_LOCATION "/usr/local/gcc103/lib")
set(TORCH_EXTENSION ".so")
elseif("$ENV{CPP_CROSS_COMPILE}" STREQUAL "macosx")
Expand Down
2 changes: 0 additions & 2 deletions 3rd_party/licenses/ipex-INFO.csv

This file was deleted.

202 changes: 0 additions & 202 deletions 3rd_party/licenses/ipex-LICENSE.txt

This file was deleted.

Empty file removed 3rd_party/licenses/ipex-NOTICE.txt
Empty file.
36 changes: 9 additions & 27 deletions bin/pytorch_inference/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,15 @@

project("ML PyTorch Inference")

# IPEX is required on Linux x86_64 architecture
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(LINK_IPEX ON)
endif()

if (LINK_IPEX)
set(ML_LINK_LIBRARIES
${Boost_LIBRARIES}
MlCore
MlApi
MlSeccomp
MlVer
${TORCH_LIB}
${C10_LIB}
${IPEX_LIB}
)
else()
set(ML_LINK_LIBRARIES
${Boost_LIBRARIES}
MlCore
MlApi
MlSeccomp
MlVer
${TORCH_LIB}
${C10_LIB}
)
endif()
set(ML_LINK_LIBRARIES
${Boost_LIBRARIES}
MlCore
MlApi
MlSeccomp
MlVer
${TORCH_LIB}
${C10_LIB}
)

ml_add_executable(pytorch_inference
CBufferedIStreamAdapter.cc
Expand Down
12 changes: 6 additions & 6 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ spec:
build_branches: true
build_pull_request_forks: true
cancel_deleted_branch_builds: true
filter_condition: build.branch == "main" || build.branch == "8.11" || build.branch == "8.10" || build.branch == "7.17"
filter_condition: build.branch == "main" || build.branch == "8.12" || build.branch == "8.11" || build.branch == "7.17"
filter_enabled: true
publish_blocked_as_pending: true
publish_commit_status: false
Expand All @@ -130,14 +130,14 @@ spec:
branch: '7.17'
cronline: 30 03 * * *
message: Daily SNAPSHOT build for 7.17
Daily 8_10:
branch: '8.10'
cronline: 30 02 * * *
message: Daily SNAPSHOT build for 8.10
Daily 8_11:
branch: '8.11'
cronline: 30 01 * * *
cronline: 30 02 * * *
message: Daily SNAPSHOT build for 8.11
Daily 8_12:
branch: '8.12'
cronline: 30 01 * * *
message: Daily SNAPSHOT build for 8.12
Daily main:
branch: main
cronline: 30 00 * * *
Expand Down
4 changes: 0 additions & 4 deletions cmake/variables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ else()
set(C10_LIB "${ML_BASE_PATH}/lib/libc10${ML_LIBEXT}")
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(IPEX_LIB "${ML_BASE_PATH}/lib/libintel-ext-pt-cpu${ML_LIBEXT}")
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(LIBXML2_LIBRARIES "-lxml2")
else()
Expand Down
15 changes: 15 additions & 0 deletions docs/CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@

//=== Regressions

== {es} version 8.13.0

=== Enhancements

=== Bug Fixes

* Remove dependency on the IPEX library (See {ml-pull}#2605[2605] and {ml-pull}#2606[2606].)

== {es} version 8.12.0

=== Enhancements
Expand All @@ -42,6 +50,13 @@

* Ensure the estimated latitude is within the allowed range (See {ml-pull}#2586[2586].)

== {es} version 8.11.2

=== Enhancements

* Improve forecasting for time series with step changes. (See {ml-pull}#2591[2591],
issue: {ml-issue}2466[#2466]).

== {es} version 8.11.0

=== Enhancements
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.daemon=false

elasticsearchVersion=8.12.0
elasticsearchVersion=8.13.0

artifactName=ml-cpp

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0