|
1 | 1 | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- |
2 | 2 | //----------------------------------------------------------------------------- |
3 | | -// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
| 3 | +// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
4 | 4 | // See the top-level COPYRIGHT file for details. |
5 | 5 | // SPDX-License-Identifier: Apache-2.0 |
6 | 6 | //----------------------------------------------------------------------------- |
7 | 7 | /*---------------------------------------------------------------------------*/ |
8 | | -/* GenericSorter.h (C) 2000-2024 */ |
| 8 | +/* GenericSorter.h (C) 2000-2025 */ |
9 | 9 | /* */ |
10 | 10 | /* Algorithme de tri. */ |
11 | 11 | /*---------------------------------------------------------------------------*/ |
@@ -134,8 +134,6 @@ namespace Arcane::Accelerator |
134 | 134 | /*---------------------------------------------------------------------------*/ |
135 | 135 | /*! |
136 | 136 | * \brief Algorithme générique de tri sur accélérateur. |
137 | | - * |
138 | | - * \warning API en cours de développement. Ne pas utiliser en dehors d'Arcane |
139 | 137 | */ |
140 | 138 | class GenericSorter |
141 | 139 | : private impl::GenericSorterBase |
@@ -166,10 +164,7 @@ class GenericSorter |
166 | 164 | if (output.size() < nb_item) |
167 | 165 | ARCANE_FATAL("Output size '{0}' is smaller than input size '{1}'", |
168 | 166 | output.size(), nb_item); |
169 | | - auto compare_lambda = [] ARCCORE_HOST_DEVICE(const DataType& a, const DataType& b) { |
170 | | - return a < b; |
171 | | - }; |
172 | | - gf.apply(*base_ptr, nb_item, input.data(), output.data(), compare_lambda); |
| 167 | + gf.apply(*base_ptr, nb_item, input.data(), output.data(), std::less<DataType>{}); |
173 | 168 | } |
174 | 169 | }; |
175 | 170 |
|
|
0 commit comments