remove the MCA parameter setting the number of hosts in PLFS, since the plfs_setxattr function used is causing linking problems with PLFS 2.5
remove unused variables.
Этот коммит содержится в:
родитель
7861a8c357
Коммит
1b0b849994
@ -30,7 +30,6 @@
|
||||
#include <plfs.h>
|
||||
|
||||
extern int mca_fs_plfs_priority;
|
||||
extern int mca_fs_plfs_num_hostdir;
|
||||
|
||||
BEGIN_C_DECLS
|
||||
|
||||
|
@ -39,7 +39,6 @@ const char *mca_fs_plfs_component_version_string =
|
||||
static int plfs_register(void);
|
||||
|
||||
int mca_fs_plfs_priority = 20;
|
||||
int mca_fs_plfs_num_hostdir = -1;
|
||||
|
||||
/*
|
||||
* Instantiate the public struct with all of our public information
|
||||
@ -77,12 +76,6 @@ plfs_register(void)
|
||||
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
|
||||
OPAL_INFO_LVL_9,
|
||||
MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_plfs_priority);
|
||||
mca_fs_plfs_num_hostdir = -1;
|
||||
(void) mca_base_component_var_register(&mca_fs_plfs_component.fsm_version,
|
||||
"num_hostdir", "number of host directories of a file over plfs",
|
||||
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
|
||||
OPAL_INFO_LVL_9,
|
||||
MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_plfs_num_hostdir);
|
||||
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
@ -53,8 +53,6 @@ mca_fs_plfs_file_open (struct ompi_communicator_t *comm,
|
||||
plfs_error_t plfs_ret;
|
||||
Plfs_fd *pfd = NULL;
|
||||
char wpath[1024];
|
||||
size_t len = sizeof(int);
|
||||
char key[] = "num_hostdirs";
|
||||
|
||||
rank = ompi_comm_rank ( comm );
|
||||
|
||||
@ -109,12 +107,5 @@ mca_fs_plfs_file_open (struct ompi_communicator_t *comm,
|
||||
}
|
||||
}
|
||||
|
||||
if (mca_fs_plfs_num_hostdir > 0) {
|
||||
plfs_ret = plfs_setxattr( pfd, &mca_fs_plfs_num_hostdir, key, len );
|
||||
if (PLFS_SUCCESS != plfs_ret) {
|
||||
opal_output(0, "fs_plfs_file_open: Error in plfs_setxattr:\n%s\n", strplfserr(plfs_ret));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
}
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user