File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ static inline int CeedVectorSyncD2H_Cuda(const CeedVector vec) {
113
113
// Sync arrays
114
114
//------------------------------------------------------------------------------
115
115
static int CeedVectorSyncArrayGeneric_Cuda (const CeedVector vec ,
116
- CeedMemType mem_type ,
117
- CeedScalarType prec ) {
116
+ CeedMemType mem_type ,
117
+ CeedScalarType prec ) {
118
118
int ierr ;
119
119
// Check whether device/host sync is needed
120
120
bool need_sync = false;
Original file line number Diff line number Diff line change @@ -112,8 +112,15 @@ typedef enum {
112
112
/// Single precision
113
113
CEED_SCALAR_FP32 ,
114
114
/// Double precision
115
- CEED_SCALAR_FP64
115
+ CEED_SCALAR_FP64 ,
116
+ /// Total number of allowed scalar precision types
117
+ CEED_NUM_PRECISIONS ,
116
118
} CeedScalarType ;
119
+ /// Struct for holding data in multiple precisions for mixed-precision-enabled
120
+ /// backends
121
+ typedef struct {
122
+ void * values [CEED_NUM_PRECISIONS ]; // Size equals CEED_NUM_PRECISIONS
123
+ } CeedScalarArray ;
117
124
/// Base scalar type for the library to use: change which header is
118
125
/// included to change the precision.
119
126
#include "ceed-f64.h"
You can’t perform that action at this time.
0 commit comments