@@ -88,13 +88,11 @@ struct cudaFunctionTable {
8888 int (* cuEventDestroy )(CUevent );
8989 int (* cuStreamWaitEvent )(CUstream , CUevent , unsigned int );
9090 int (* cuMemGetAddressRange )(CUdeviceptr * , size_t * , CUdeviceptr );
91- #if OPAL_CUDA_SUPPORT_41
9291 int (* cuIpcGetEventHandle )(CUipcEventHandle * , CUevent );
9392 int (* cuIpcOpenEventHandle )(CUevent * , CUipcEventHandle );
9493 int (* cuIpcOpenMemHandle )(CUdeviceptr * , CUipcMemHandle , unsigned int );
9594 int (* cuIpcCloseMemHandle )(CUdeviceptr );
9695 int (* cuIpcGetMemHandle )(CUipcMemHandle * , CUdeviceptr );
97- #endif /* OPAL_CUDA_SUPPORT_41 */
9896 int (* cuCtxGetDevice )(CUdevice * );
9997 int (* cuDeviceCanAccessPeer )(int * , CUdevice , CUdevice );
10098 int (* cuDeviceGet )(CUdevice * , int );
@@ -156,7 +154,6 @@ OBJ_CLASS_INSTANCE(common_cuda_mem_regs_t,
156154 NULL ,
157155 NULL );
158156
159- #if OPAL_CUDA_SUPPORT_41
160157static int mca_common_cuda_async = 1 ;
161158static int mca_common_cuda_cumemcpy_async ;
162159#if OPAL_ENABLE_DEBUG
@@ -223,8 +220,6 @@ static void cuda_dump_memhandle(int, void *, char *) __opal_attribute_unused__ ;
223220#define CUDA_DUMP_EVTHANDLE (a )
224221#endif /* OPAL_ENABLE_DEBUG */
225222
226- #endif /* OPAL_CUDA_SUPPORT_41 */
227-
228223/* This is a seperate function so we can see these variables with ompi_info and
229224 * also set them with the tools interface */
230225void mca_common_cuda_register_mca_variables (void )
@@ -263,7 +258,6 @@ void mca_common_cuda_register_mca_variables(void)
263258 MCA_BASE_VAR_SCOPE_READONLY ,
264259 & mca_common_cuda_warning );
265260
266- #if OPAL_CUDA_SUPPORT_41
267261 /* Use this flag to test async vs sync copies */
268262 mca_common_cuda_async = 1 ;
269263 (void ) mca_base_var_register ("ompi" , "mpi" , "common_cuda" , "memcpy_async" ,
@@ -280,7 +274,6 @@ void mca_common_cuda_register_mca_variables(void)
280274 OPAL_INFO_LVL_9 ,
281275 MCA_BASE_VAR_SCOPE_READONLY ,
282276 & cuda_event_max );
283- #endif /* OPAL_CUDA_SUPPORT_41 */
284277
285278 /* Use this flag to test cuMemcpyAsync vs cuMemcpy */
286279 mca_common_cuda_cumemcpy_async = 1 ;
@@ -465,13 +458,11 @@ int mca_common_cuda_stage_one_init(void)
465458 OPAL_CUDA_DLSYM (libcuda_handle , cuMemFree );
466459 OPAL_CUDA_DLSYM (libcuda_handle , cuMemAlloc );
467460 OPAL_CUDA_DLSYM (libcuda_handle , cuMemGetAddressRange );
468- #if OPAL_CUDA_SUPPORT_41
469461 OPAL_CUDA_DLSYM (libcuda_handle , cuIpcGetEventHandle );
470462 OPAL_CUDA_DLSYM (libcuda_handle , cuIpcOpenEventHandle );
471463 OPAL_CUDA_DLSYM (libcuda_handle , cuIpcOpenMemHandle );
472464 OPAL_CUDA_DLSYM (libcuda_handle , cuIpcCloseMemHandle );
473465 OPAL_CUDA_DLSYM (libcuda_handle , cuIpcGetMemHandle );
474- #endif /* OPAL_CUDA_SUPPORT_41 */
475466 OPAL_CUDA_DLSYM (libcuda_handle , cuCtxGetDevice );
476467 OPAL_CUDA_DLSYM (libcuda_handle , cuDeviceCanAccessPeer );
477468 OPAL_CUDA_DLSYM (libcuda_handle , cuDeviceGet );
@@ -595,7 +586,6 @@ static int mca_common_cuda_stage_three_init(void)
595586 return OPAL_ERROR ;
596587 }
597588
598- #if OPAL_CUDA_SUPPORT_41
599589 if (true == mca_common_cuda_enabled ) {
600590 /* Set up an array to store outstanding IPC async copy events */
601591 cuda_event_ipc_num_used = 0 ;
@@ -633,7 +623,6 @@ static int mca_common_cuda_stage_three_init(void)
633623 }
634624 }
635625
636- #endif /* OPAL_CUDA_SUPPORT_41 */
637626 if (true == mca_common_cuda_enabled ) {
638627 /* Set up an array to store outstanding async dtoh events. Used on the
639628 * sending side for asynchronous copies. */
@@ -1006,7 +995,6 @@ void mca_common_cuda_unregister(void *ptr, char *msg) {
1006995 }
1007996}
1008997
1009- #if OPAL_CUDA_SUPPORT_41
1010998/*
1011999 * Get the memory handle of a local section of memory that can be sent
10121000 * to the remote size so it can access the memory. This is the
@@ -1739,8 +1727,6 @@ static float mydifftime(opal_timer_t ts_start, opal_timer_t ts_end) {
17391727}
17401728#endif /* OPAL_ENABLE_DEBUG */
17411729
1742- #endif /* OPAL_CUDA_SUPPORT_41 */
1743-
17441730/* Routines that get plugged into the opal datatype code */
17451731static int mca_common_cuda_is_gpu_buffer (const void * pUserBuf , opal_convertor_t * convertor )
17461732{
0 commit comments