Skip to content

Commit 52a876c

Browse files
authored
[maint] Update docker ubuntu version to 24.04 (#2922)
* Update onedal-dev.Dockerfile * Update kernel_function.hpp * Update distance.hpp * Update objective.hpp
1 parent 7f05e43 commit 52a876c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cpp/oneapi/dal/algo/knn/detail/distance.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct distance_accessor {
9696

9797
template <typename Descriptor>
9898
distance_impl* get_distance_impl(Descriptor&& desc) {
99-
const auto& distance = distance_accessor{}.get_distance_impl(std::forward<Descriptor>(desc));
99+
const auto distance = distance_accessor{}.get_distance_impl(std::forward<Descriptor>(desc));
100100
return distance ? distance->get_impl() : nullptr;
101101
}
102102

cpp/oneapi/dal/algo/objective_function/detail/objective.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct objective_accessor {
7171

7272
template <typename Descriptor>
7373
objective_impl* get_objective_impl(Descriptor&& desc) {
74-
const auto& objective = objective_accessor{}.get_objective_impl(std::forward<Descriptor>(desc));
74+
const auto objective = objective_accessor{}.get_objective_impl(std::forward<Descriptor>(desc));
7575
return objective ? objective->get_impl() : nullptr;
7676
}
7777

cpp/oneapi/dal/algo/svm/detail/kernel_function.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct kernel_function_accessor {
143143

144144
template <typename Descriptor>
145145
kernel_function_impl* get_kernel_function_impl(Descriptor&& desc) {
146-
const auto& kernel = kernel_function_accessor{}.get_kernel_impl(std::forward<Descriptor>(desc));
146+
const auto kernel = kernel_function_accessor{}.get_kernel_impl(std::forward<Descriptor>(desc));
147147
return kernel ? kernel->get_impl() : nullptr;
148148
}
149149

dev/docker/onedal-dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#===============================================================================
1616

17-
FROM ubuntu:22.04@sha256:adbb90115a21969d2fe6fa7f9af4253e16d45f8d4c1e930182610c4731962658
17+
FROM ubuntu:24.04@sha256:77d57fd89366f7d16615794a5b53e124d742404e20f035c22032233f1826bd6a
1818

1919
ARG workdirectory="/sources/oneDAL"
2020
WORKDIR ${workdirectory}

0 commit comments

Comments
 (0)