@@ -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+ };
112112typedef struct cudaFunctionTable cudaFunctionTable_t ;
113- cudaFunctionTable_t cuFunc ;
113+ static cudaFunctionTable_t cuFunc ;
114114
115115static int stage_one_init_ref_count = 0 ;
116116static bool stage_three_init_complete = false;
@@ -175,13 +175,13 @@ struct mca_btl_base_descriptor_t **cuda_event_dtoh_frag_array = NULL;
175175struct 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 */
187187int cuda_event_max = 400 ;
0 commit comments