Correct location of elog file
Refs trac:3847 This commit was SVN r29438. The following Trac tickets were found above: Ticket 3847 --> https://svn.open-mpi.org/trac/ompi/ticket/3847
Этот коммит содержится в:
родитель
de6177cfbf
Коммит
772a376d73
@ -1481,14 +1481,14 @@ char* opal_hwloc_base_check_on_coprocessor(void)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *t, *cptr, *e, *cp=NULL;
|
char *t, *cptr, *e, *cp=NULL;
|
||||||
|
|
||||||
if (OPAL_SUCCESS != opal_os_dirpath_access("/tmp/elog", S_IRUSR)) {
|
if (OPAL_SUCCESS != opal_os_dirpath_access("/proc/elog", S_IRUSR)) {
|
||||||
/* if the file isn't there, or we don't have permission
|
/* if the file isn't there, or we don't have permission
|
||||||
* to read it, then we are not on a coprocessor so far
|
* to read it, then we are not on a coprocessor so far
|
||||||
* as we can tell
|
* as we can tell
|
||||||
*/
|
*/
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (NULL == (fp = fopen("/tmp/elog", "r"))) {
|
if (NULL == (fp = fopen("/proc/elog", "r"))) {
|
||||||
/* nothing we can do */
|
/* nothing we can do */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user