diff --git a/opal/mca/btl/smcuda/btl_smcuda.c b/opal/mca/btl/smcuda/btl_smcuda.c index dde60aa7c42..13d7e2e9058 100644 --- a/opal/mca/btl/smcuda/btl_smcuda.c +++ b/opal/mca/btl/smcuda/btl_smcuda.c @@ -14,7 +14,7 @@ * Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2010-2017 Los Alamos National Security, LLC. All rights * reserved. - * Copyright (c) 2012-2015 NVIDIA Corporation. All rights reserved. + * Copyright (c) 2012-2023 NVIDIA Corporation. All rights reserved. * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014-2017 Research Organization for Information Science * and Technology (RIST). All rights reserved. @@ -471,7 +471,7 @@ static struct mca_btl_base_endpoint_t *create_sm_endpoint(int local_proc, struct struct mca_btl_base_endpoint_t *ep; #if OPAL_ENABLE_PROGRESS_THREADS == 1 - char path[PATH_MAX]; + char path[OPAL_PATH_MAX]; #endif ep = (struct mca_btl_base_endpoint_t *) malloc(sizeof(struct mca_btl_base_endpoint_t)); diff --git a/opal/mca/btl/smcuda/btl_smcuda.h b/opal/mca/btl/smcuda/btl_smcuda.h index 791809e23de..962e9c268a0 100644 --- a/opal/mca/btl/smcuda/btl_smcuda.h +++ b/opal/mca/btl/smcuda/btl_smcuda.h @@ -14,7 +14,7 @@ * Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2010-2015 Los Alamos National Security, LLC. * All rights reserved. - * Copyright (c) 2012-2013 NVIDIA Corporation. All rights reserved. + * Copyright (c) 2012-2023 NVIDIA Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -164,7 +164,7 @@ struct mca_btl_smcuda_component_t { int num_mem_nodes; #if OPAL_ENABLE_PROGRESS_THREADS == 1 - char sm_fifo_path[PATH_MAX]; /**< path to fifo used to signal this process */ + char sm_fifo_path[OPAL_PATH_MAX]; /**< path to fifo used to signal this process */ int sm_fifo_fd; /**< file descriptor corresponding to opened fifo */ opal_thread_t sm_fifo_thread; #endif diff --git a/opal/mca/btl/usnic/btl_usnic_map.c b/opal/mca/btl/usnic/btl_usnic_map.c index 29443109490..948b639a23c 100644 --- a/opal/mca/btl/usnic/btl_usnic_map.c +++ b/opal/mca/btl/usnic/btl_usnic_map.c @@ -2,6 +2,7 @@ * Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2014-2020 Intel, Inc. All rights reserved. * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved. + * Copyright (c) 2023 NVIDIA Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -245,7 +246,7 @@ void opal_btl_usnic_connectivity_map(void) fp = fopen(filename, "w"); if (NULL == fp) { - char dirname[PATH_MAX]; + char dirname[OPAL_PATH_MAX]; getcwd(dirname, sizeof(dirname)); dirname[sizeof(dirname) - 1] = '\0'; opal_show_help("help-mpi-btl-usnic.txt", "cannot write to map file", true, diff --git a/opal/mca/common/ucx/common_ucx.c b/opal/mca/common/ucx/common_ucx.c index a2bddf32b7d..640c8baaa08 100644 --- a/opal/mca/common/ucx/common_ucx.c +++ b/opal/mca/common/ucx/common_ucx.c @@ -8,6 +8,7 @@ * reserved. * Copyright (c) 2022 Google, LLC. All rights reserved. * Copyright (c) 2022 IBM Corporation. All rights reserved. + * Copyright (c) 2023 NVIDIA Corporation. All rights reserved. * * $COPYRIGHT$ * @@ -182,8 +183,8 @@ OPAL_DECLSPEC void opal_common_ucx_mca_deregister(void) #if HAVE_DECL_OPEN_MEMSTREAM static bool opal_common_ucx_check_device(const char *device_name, char **device_list) { - char sysfs_driver_link[PATH_MAX]; - char driver_path[PATH_MAX]; + char sysfs_driver_link[OPAL_PATH_MAX]; + char driver_path[OPAL_PATH_MAX]; char ib_device_name[NAME_MAX]; char *driver_name; char **list_item; diff --git a/oshmem/mca/memheap/base/memheap_base_static.c b/oshmem/mca/memheap/base/memheap_base_static.c index 99f613340a9..12a05dcbecd 100644 --- a/oshmem/mca/memheap/base/memheap_base_static.c +++ b/oshmem/mca/memheap/base/memheap_base_static.c @@ -2,6 +2,7 @@ * Copyright (c) 2013 Mellanox Technologies, Inc. * All rights reserved. * Copyright (c) 2016 IBM Corporation. All rights reserved. + * Copyright (c) 2023 NVIDIA Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -165,8 +166,8 @@ static int _check_pathname(uint64_t inode, const char *pathname) { static const char *proc_self_exe = "/proc/self/exe"; static int warned = 0; - char exe_path[PATH_MAX]; - char module_path[PATH_MAX]; + char exe_path[OPAL_PATH_MAX]; + char module_path[OPAL_PATH_MAX]; char *path; if (0 == inode) {