Added very experimental implementation for mixed precision. Comm is done with f32 and comp with f64.

This commit is contained in:
jpekkila
2020-10-28 12:56:34 +02:00
parent c1f2a6c340
commit 0a2827593c
2 changed files with 12 additions and 5 deletions

View File

@@ -8,11 +8,13 @@
#define MPI_GPUDIRECT_DISABLED (0)
#endif // AC_MPI_ENABLED
typedef float AcRealPacked;
typedef struct {
int3 dims;
AcReal* data;
AcRealPacked* data;
AcReal* data_pinned;
AcRealPacked* data_pinned;
bool pinned = false; // Set if data was received to pinned memory
} PackedData;