[ofa-general] Another XRC binary compatable issue for different pthread version.
Jack Morgenstein
jackm at dev.mellanox.co.il
Tue Feb 19 05:16:58 PST 2008
On Monday 18 February 2008 17:29, Tang, Changqing wrote:
>
> Any application code access events_completed field ? HP-MPI does not.
>
> If no user code access 'mutex' 'cond' and 'events_completed', I suggest to
> put the XRC fields in the middle of this structure.
>
>
No current app seems to be using "events_completed",
"cond", and "mutex", so we can do this:
struct ibv_srq {
struct ibv_context *context;
void *srq_context;
struct ibv_pd *pd;
uint32_t handle;
uint32_t events_completed;
uint32_t xrc_srq_num;
struct ibv_xrc_domain *xrc_domain;
struct ibv_cq *xrc_cq;
pthread_mutex_t mutex;
pthread_cond_t cond;
};
Unless there are objections, I will commit this change today to libibverbs in time for RC5.
- Jack
More information about the general
mailing list