Skip to content

Commit 47945fd

Browse files
[arccore,collections] Renomme 'eMemoryRessource' en 'eMemoryResource'.
1 parent 3f1c95b commit 47945fd

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

arccore/src/collections/arccore/collections/CollectionsGlobal.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ namespace
4343
return "Invalid";
4444
}
4545

46-
const char* _toName(eMemoryRessource r)
46+
const char* _toName(eMemoryResource r)
4747
{
4848
switch (r) {
49-
case eMemoryRessource::Unknown:
49+
case eMemoryResource::Unknown:
5050
return "Unknown";
51-
case eMemoryRessource::Host:
51+
case eMemoryResource::Host:
5252
return "Host";
53-
case eMemoryRessource::HostPinned:
53+
case eMemoryResource::HostPinned:
5454
return "HostPinned";
55-
case eMemoryRessource::Device:
55+
case eMemoryResource::Device:
5656
return "Device";
57-
case eMemoryRessource::UnifiedMemory:
57+
case eMemoryResource::UnifiedMemory:
5858
return "UnifiedMemory";
5959
}
6060
return "Invalid";
@@ -70,7 +70,7 @@ operator<<(std::ostream& o, eHostDeviceMemoryLocation v)
7070
}
7171

7272
extern "C++" ARCCORE_COLLECTIONS_EXPORT std::ostream&
73-
operator<<(std::ostream& o, eMemoryRessource v)
73+
operator<<(std::ostream& o, eMemoryResource v)
7474
{
7575
o << _toName(v);
7676
return o;

arccore/src/collections/arccore/collections/CollectionsGlobal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ operator<<(std::ostream& o, eHostDeviceMemoryLocation r);
118118
/*!
119119
* \brief Liste des ressources mémoire disponibles.
120120
*/
121-
enum class eMemoryRessource
121+
enum class eMemoryResource
122122
{
123123
//! Valeur inconnue ou non initialisée
124124
Unknown = 0,
@@ -133,13 +133,13 @@ enum class eMemoryRessource
133133
};
134134

135135
//! Nombre de valeurs valides pour eMemoryRessource
136-
static constexpr int ARCCORE_NB_MEMORY_RESSOURCE = 5;
136+
static constexpr int ARCCORE_NB_MEMORY_RESOURCE = 5;
137137

138138
/*---------------------------------------------------------------------------*/
139139
/*---------------------------------------------------------------------------*/
140140

141141
extern "C++" ARCCORE_COLLECTIONS_EXPORT std::ostream&
142-
operator<<(std::ostream& o, eMemoryRessource r);
142+
operator<<(std::ostream& o, eMemoryResource r);
143143

144144
/*---------------------------------------------------------------------------*/
145145
/*---------------------------------------------------------------------------*/

arccore/src/collections/arccore/collections/IMemoryAllocator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
//-----------------------------------------------------------------------------
3-
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
// See the top-level COPYRIGHT file for details.
55
// SPDX-License-Identifier: Apache-2.0
66
//-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* IMemoryAllocator.h (C) 2000-2023 */
8+
/* IMemoryAllocator.h (C) 2000-2024 */
99
/* */
1010
/* Interface d'un allocateur mémoire. */
1111
/*---------------------------------------------------------------------------*/
@@ -140,7 +140,7 @@ class ARCCORE_COLLECTIONS_EXPORT IMemoryAllocator
140140
virtual void copyMemory(MemoryAllocationArgs args, AllocatedMemoryInfo destination, AllocatedMemoryInfo source);
141141

142142
//! Ressource mémoire fournie par l'allocateur
143-
virtual eMemoryRessource memoryRessource() const { return eMemoryRessource::Unknown; }
143+
virtual eMemoryResource memoryRessource() const { return eMemoryResource::Unknown; }
144144

145145
public:
146146

0 commit comments

Comments
 (0)