Bonjour,
Je cherche à transférer des tableaux de type float2 définit par :
__cuda_builtin_vector_align8(float2, float x; float y;);
avec :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| #if !defined(__CUDACC__) && !defined(__CUDABE__) && \
defined(_WIN32) && !defined(_WIN64)
#define __cuda_builtin_vector_align8(tag, members) \
struct tag { \
union { \
struct { members }; \
struct { long long int :1,:0; }; \
}; \
}
#else /* !__CUDACC__ && !__CUDABE__ && _WIN32 && !_WIN64 */
#define __cuda_builtin_vector_align8(tag, members) \
struct __align__(8) tag { \
members \
}
#endif /* !__CUDACC__ && !__CUDABE__ && _WIN32 && !_WIN64 */ |
(je suis sous linux)
Je sais que démarrer en déclarant un MPI_Datatype et terminer par un MPI_Type_commit de mon MPI_Datatype. Cependant, je ne sais pas trop quoi mettre entre pour initialiser mon MPI_Datatype.
Quelqu'un pourrait-il m'aider ?
Partager