Commit 65c846d8 authored by Pavan Balaji's avatar Pavan Balaji
Browse files

[svn-r7514] White space cleanup.

parent 2ef98e09
......@@ -177,10 +177,10 @@ HYD_status HYDT_bind_init(char *user_binding, char *user_bindlib)
if (use_topo_obj[i])
use_topo_obj[i - 1] = 1;
}
/* We should have at least one process on the node; otherwise,
the mapping makes no sense */
for (i = HYDT_BIND_OBJ_MACHINE; i < HYDT_BIND_OBJ_NODE; i++)
use_topo_obj[i] = 1;
/* We should have at least one process on the node; otherwise,
* the mapping makes no sense */
for (i = HYDT_BIND_OBJ_MACHINE; i < HYDT_BIND_OBJ_NODE; i++)
use_topo_obj[i] = 1;
topo_end = HYDT_BIND_OBJ_END;
for (i = HYDT_BIND_OBJ_MACHINE; i < HYDT_BIND_OBJ_END; i++) {
......@@ -204,7 +204,7 @@ HYD_status HYDT_bind_init(char *user_binding, char *user_bindlib)
bindentry = strtok(bindstr, ":");
bindentry = strtok(NULL, ":");
/* Don't share any cache to start with */
/* Don't share any cache to start with */
use_cache_level = HYDT_INVALID_CACHE_DEPTH;
if (bindentry == NULL) {
/* No extension option specified; use all resources */
......@@ -239,10 +239,10 @@ HYD_status HYDT_bind_init(char *user_binding, char *user_bindlib)
break_out = 0;
for (i = HYDT_BIND_OBJ_MACHINE; i < HYDT_BIND_OBJ_END; i++) {
for (j = 0; j < obj->mem.num_caches; j++) {
/* If the cache level is lower than what I'm allowed
to share, and there are more than one OS indices
below this level (there is actually sharing) mark
this as the lowest level I can get to */
/* If the cache level is lower than what I'm allowed
* to share, and there are more than one OS indices
* below this level (there is actually sharing) mark
* this as the lowest level I can get to */
if (obj->mem.cache_depth[j] == use_cache_level) {
topo_end = (HYDT_bind_obj_type_t) (i + 1);
break_out = 1;
......@@ -266,8 +266,8 @@ HYD_status HYDT_bind_init(char *user_binding, char *user_bindlib)
for (; j < topo_end - 1; j++)
obj = obj->children;
HYDT_bind_cpuset_dup(obj->cpuset, &HYDT_bind_info.bindmap[i]);
i++;
HYDT_bind_cpuset_dup(obj->cpuset, &HYDT_bind_info.bindmap[i]);
i++;
child_id = HYDT_BIND_OBJ_CHILD_ID(obj);
if (child_id < obj->parent->num_children - 1) {
......
......@@ -83,13 +83,13 @@ static HYD_status load_mem_cache_info(struct HYDT_bind_obj *obj, hwloc_obj_t hob
obj->mem.num_caches = count_attached_caches(hobj, hobj->cpuset);
if (obj->mem.num_caches) {
HYDU_MALLOC(obj->mem.cache_size, size_t *, obj->mem.num_caches * sizeof(size_t),
status);
memset(obj->mem.cache_size, 0, obj->mem.num_caches * sizeof(size_t));
HYDU_MALLOC(obj->mem.cache_depth, int *, obj->mem.num_caches * sizeof(int), status);
memset(obj->mem.cache_depth, 0, obj->mem.num_caches * sizeof(int));
HYDU_MALLOC(obj->mem.cache_size, size_t *, obj->mem.num_caches * sizeof(size_t),
status);
memset(obj->mem.cache_size, 0, obj->mem.num_caches * sizeof(size_t));
HYDU_MALLOC(obj->mem.cache_depth, int *, obj->mem.num_caches * sizeof(int), status);
memset(obj->mem.cache_depth, 0, obj->mem.num_caches * sizeof(int));
gather_attached_caches(obj, hobj, hobj->cpuset, 0);
gather_attached_caches(obj, hobj, hobj->cpuset, 0);
}
fn_exit:
......
......@@ -10,6 +10,7 @@
int HYDT_dmxu_num_cb_fds = 0;
struct HYDT_dmxu_callback *HYDT_dmxu_cb_list = NULL;
struct HYDT_dmxu_fns HYDT_dmxu_fns = { 0 };
int HYDT_dmxu_got_sigttin = 0;
#if defined(SIGTTIN) && defined(HAVE_ISATTY)
......
......@@ -174,7 +174,7 @@ int main(int argc, char **argv)
HYDU_ERR_POP(status, "unable to initialize FTB\n");
/* Get user preferences*/
/* Get user preferences */
status = HYD_uii_mpx_get_parameters(argv);
if (status == HYD_GRACEFUL_ABORT) {
exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment