Skip to content

Commit

Permalink
[maint] Update docker ubuntu version to 24.04 (#2922)
Browse files Browse the repository at this point in the history
* Update onedal-dev.Dockerfile

* Update kernel_function.hpp

* Update distance.hpp

* Update objective.hpp
  • Loading branch information
icfaust authored Oct 1, 2024
1 parent 7f05e43 commit 52a876c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/oneapi/dal/algo/knn/detail/distance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct distance_accessor {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct objective_accessor {

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

Expand Down
2 changes: 1 addition & 1 deletion cpp/oneapi/dal/algo/svm/detail/kernel_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct kernel_function_accessor {

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

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/onedal-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#===============================================================================

FROM ubuntu:22.04@sha256:adbb90115a21969d2fe6fa7f9af4253e16d45f8d4c1e930182610c4731962658
FROM ubuntu:24.04@sha256:77d57fd89366f7d16615794a5b53e124d742404e20f035c22032233f1826bd6a

ARG workdirectory="/sources/oneDAL"
WORKDIR ${workdirectory}
Expand Down

0 comments on commit 52a876c

Please sign in to comment.