oshmem: swap fields of oshmem_proc_data_t to prevent padding
previously, the definition was struct oshmem_proc_data_t { int num_transports; char * transport_ids; }; so in 64 bits arch, the compiler would very likely insert a 4 bytes padding before the two fields in order to have transport_ids aligned
Этот коммит содержится в:
родитель
0a25420dac
Коммит
184d53a018
@ -41,8 +41,8 @@ struct oshmem_group_t;
|
||||
* so the size of oshmem_proc_data_t must be less or equal than
|
||||
* OMPI_PROC_PADDING_SIZE */
|
||||
struct oshmem_proc_data_t {
|
||||
int num_transports;
|
||||
char * transport_ids;
|
||||
int num_transports;
|
||||
};
|
||||
|
||||
typedef struct oshmem_proc_data_t oshmem_proc_data_t;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user