Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 787c0a7

Browse files
author
Rolf vandeVaart
committed
Add static definitions where needed and remove one unused definition
(cherry picked from commit open-mpi/ompi@cb8c869)
1 parent 6025150 commit 787c0a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opal/mca/common/cuda/common_cuda.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ struct cudaFunctionTable {
108108
#if OPAL_CUDA_GET_ATTRIBUTES
109109
int (*cuPointerGetAttributes)(unsigned int, CUpointer_attribute *, void **, CUdeviceptr);
110110
#endif /* OPAL_CUDA_GET_ATTRIBUTES */
111-
} cudaFunctionTable;
111+
};
112112
typedef struct cudaFunctionTable cudaFunctionTable_t;
113-
cudaFunctionTable_t cuFunc;
113+
static cudaFunctionTable_t cuFunc;
114114

115115
static int stage_one_init_ref_count = 0;
116116
static bool stage_three_init_complete = false;
@@ -175,13 +175,13 @@ struct mca_btl_base_descriptor_t **cuda_event_dtoh_frag_array = NULL;
175175
struct mca_btl_base_descriptor_t **cuda_event_htod_frag_array = NULL;
176176

177177
/* First free/available location in cuda_event_status_array */
178-
int cuda_event_ipc_first_avail, cuda_event_dtoh_first_avail, cuda_event_htod_first_avail;
178+
static int cuda_event_ipc_first_avail, cuda_event_dtoh_first_avail, cuda_event_htod_first_avail;
179179

180180
/* First currently-being used location in the cuda_event_status_array */
181-
int cuda_event_ipc_first_used, cuda_event_dtoh_first_used, cuda_event_htod_first_used;
181+
static int cuda_event_ipc_first_used, cuda_event_dtoh_first_used, cuda_event_htod_first_used;
182182

183183
/* Number of status items currently in use */
184-
int cuda_event_ipc_num_used, cuda_event_dtoh_num_used, cuda_event_htod_num_used;
184+
static int cuda_event_ipc_num_used, cuda_event_dtoh_num_used, cuda_event_htod_num_used;
185185

186186
/* Size of array holding events */
187187
int cuda_event_max = 400;

0 commit comments

Comments
 (0)