[mvapich-discuss] Problem with MV2_IBA_HCA
Schwind Michael
michael.schwind at informatik.tu-chemnitz.de
Mon Dec 4 08:44:53 EST 2006
Hello,
there seems to be a problem when
the evironment variable MV2_IBA_HCA
is set to a value other then the
first hca in the system.
In the function rdma_open_hca in file
rdma_iba_priv.c on lines 307 to 316
there is some code, which searches
for the specified hca in a list of hca's:
/* User specified a HCA, try to look for it */
j = 0;
while(dev_list[j]) {
if(!strncmp(ibv_get_device_name(dev_list[j]),
rdma_iba_hca, 32)) {
ib_dev = dev_list[j];
break;
}
}
j++;
This code is a endless loop if the
value specified in rdma_iba_hca
is different from mthca0 on my system
with 2 infiniband adapters.
The patch which should resolve this issue
is at the end of this E-Mail.
Michael
--- mvapich2/src/mpid/osu_ch3/channels/mrail/src/gen2/rdma_iba_priv.c.orig
2006-12-04 13:47:58.000000000 +0100
+++ mvapich2/src/mpid/osu_ch3/channels/mrail/src/gen2/rdma_iba_priv.c
2006-12-04 13:48:30.000000000 +0100
@@ -312,8 +312,9 @@
ib_dev = dev_list[j];
break;
}
- }
- j++;
+ j++;
+ }
+
}
if (!ib_dev) {
More information about the mvapich-discuss
mailing list