Skip to content

Commit

Permalink
Merge pull request #1873 from arcaneframework/dev/gg-separate-some-te…
Browse files Browse the repository at this point in the history
…mplate-explicit-instantiation

Split explicit instantiation of 'ArrayData' and 'Array2Data' in several files
  • Loading branch information
grospelliergilles authored Dec 26, 2024
2 parents fc129a4 + 34e8d08 commit c9b1098
Show file tree
Hide file tree
Showing 17 changed files with 1,770 additions and 1,483 deletions.
24 changes: 18 additions & 6 deletions arcane/src/arcane/core/datatype/DataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,32 @@ enum eTraceType
} // End namespace Arcane

// Macro pour instantier une classe template pour tous les types numériques
#define ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE(class_name)\
#define ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE1(class_name)\
template class class_name <Real>;\
template class class_name <Real3>;\
template class class_name <Real3x3>;\
template class class_name <Real2>;\
template class class_name <Real2x2>;\
template class class_name <BFloat16>;\
template class class_name <Float16>;\
template class class_name <Float32>;\
template class class_name <Real2x2>;

// Macro pour instantier une classe template pour tous les types numériques
#define ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE2(class_name)\
template class class_name <Int8>;\
template class class_name <Int16>;\
template class class_name <Int32>;\
template class class_name <Int64>;\
template class class_name <Byte>;
template class class_name <Byte>

// Macro pour instantier une classe template pour tous les types numériques
#define ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE3(class_name)\
template class class_name <BFloat16>;\
template class class_name <Float16>;\
template class class_name <Float32>;

// Macro pour instantier une classe template pour tous les types numériques
#define ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE(class_name)\
ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE1(class_name);\
ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE2(class_name);\
ARCANE_INTERNAL_INSTANTIATE_TEMPLATE_FOR_NUMERIC_DATATYPE3(class_name)

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
Expand Down
Loading

0 comments on commit c9b1098

Please sign in to comment.