[openib-general] compilation platform dependencies
Sean Hefty
mshefty at ichips.intel.com
Tue Nov 1 09:55:40 PST 2005
yipee wrote:
> I think that I've noticed a problem in compiling user applications with a
> different compiler than the running-kernel modules compiler (x86 32bit vs.
> 64bit). For compiling an openib application on a 32bit x86 and running it on a
> 64bit AMD Opteron.
> When compiling a program with a 32bit gcc, the sizeof(struct cm_abi_event_resp)
> was 184 bytes (written to the kernel from ib_cm_get_event()) vs. the 192 bytes
> resulting from a x86_64 compiler.
> When ucm's ib_ucm_event() compares the sizeof() of the received cmd/buffer to
> sizeof(struct ib_ucm_event_resp) it finds a mismatch and returns -ENOSPC.
I think that we can fix this by adding padding to the end of these structures to
align them to a 64-bit boundary.
Did you notice if any other data structures had this issue?
- Sean
More information about the general
mailing list