XRC fixes:
- create separate xrc domain file for each hca - return error if we failed to create xrc file. This commit was SVN r16853.
Этот коммит содержится в:
родитель
a5798803aa
Коммит
e8aeadb11e
@ -38,9 +38,12 @@ int mca_btl_openib_open_xrc_domain(struct mca_btl_openib_hca_t *hca)
|
|||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
char *xrc_file_name;
|
char *xrc_file_name;
|
||||||
|
const char *dev_name;
|
||||||
|
|
||||||
len = asprintf(&xrc_file_name, "%s"OPAL_PATH_SEP"openib_xrc_domain",
|
dev_name = ibv_get_device_name(hca->ib_dev);
|
||||||
orte_process_info.job_session_dir);
|
len = asprintf(&xrc_file_name,
|
||||||
|
"%s"OPAL_PATH_SEP"openib_xrc_domain_%s",
|
||||||
|
orte_process_info.job_session_dir, dev_name);
|
||||||
if (0 > len) {
|
if (0 > len) {
|
||||||
BTL_ERROR(("Failed to allocate memomry for XRC file name\n",
|
BTL_ERROR(("Failed to allocate memomry for XRC file name\n",
|
||||||
strerror(errno)));
|
strerror(errno)));
|
||||||
@ -52,6 +55,7 @@ int mca_btl_openib_open_xrc_domain(struct mca_btl_openib_hca_t *hca)
|
|||||||
BTL_ERROR(("Failed to open XRC domain file %s, errno says %s\n",
|
BTL_ERROR(("Failed to open XRC domain file %s, errno says %s\n",
|
||||||
xrc_file_name,strerror(errno)));
|
xrc_file_name,strerror(errno)));
|
||||||
free(xrc_file_name);
|
free(xrc_file_name);
|
||||||
|
return OMPI_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
hca->xrc_domain = ibv_open_xrc_domain(hca->ib_dev_context, hca->xrc_fd, O_CREAT);
|
hca->xrc_domain = ibv_open_xrc_domain(hca->ib_dev_context, hca->xrc_fd, O_CREAT);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user