mpiext/affinity: initialize all output variables of OMPI_Affinity_str()
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
501eb8dc7e
Коммит
d5aa310884
@ -6,7 +6,7 @@
|
||||
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2015 Intel, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
@ -59,6 +59,7 @@ int OMPI_Affinity_str(ompi_affinity_fmt_t fmt_type,
|
||||
|
||||
memset(ompi_bound, 0, OMPI_AFFINITY_STRING_MAX);
|
||||
memset(current_binding, 0, OMPI_AFFINITY_STRING_MAX);
|
||||
memset(exists, 0, OMPI_AFFINITY_STRING_MAX);
|
||||
|
||||
/* If we have no hwloc support, return nothing */
|
||||
if (NULL == opal_hwloc_topology) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user