Skip to content

Commit 91ccec3

Browse files
committed
btl/openib: remove some dead code
remove useless call to opal_mem_hooks_support_level() and the value local variable.
1 parent 1b3be0a commit 91ccec3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2521,7 +2521,7 @@ btl_openib_component_init(int *num_btl_modules,
25212521
mca_btl_openib_frag_init_data_t *init_data;
25222522
struct dev_distance *dev_sorted;
25232523
float distance;
2524-
int index, value;
2524+
int index;
25252525
bool found;
25262526
mca_base_var_source_t source;
25272527
int list_count = 0;
@@ -2887,13 +2887,6 @@ btl_openib_component_init(int *num_btl_modules,
28872887
mca_btl_openib_component.if_exclude_list = NULL;
28882888
}
28892889

2890-
/* If we are using ptmalloc2 and there are no posix threads
2891-
available, this will cause memory corruption. Refuse to run.
2892-
Right now, ptmalloc2 is the only memory manager that we have on
2893-
OS's that support OpenFabrics that provide both FREE and MUNMAP
2894-
support, so the following test is [currently] good enough... */
2895-
value = opal_mem_hooks_support_level();
2896-
28972890
#if OPAL_CUDA_SUPPORT
28982891
if (mca_btl_openib_component.cuda_want_gdr && (0 == opal_leave_pinned)) {
28992892
opal_show_help("help-mpi-btl-openib.txt",

0 commit comments

Comments
 (0)