1
1

Fix one more space for consistent defines.

This commit was SVN r29607.
Этот коммит содержится в:
Rolf vandeVaart 2013-11-05 15:31:49 +00:00
родитель 64b3a24fec
Коммит e46c0bb952

Просмотреть файл

@ -91,9 +91,9 @@ struct cudaFunctionTable {
int (*cuCtxGetDevice)(CUdevice *); int (*cuCtxGetDevice)(CUdevice *);
int (*cuDeviceCanAccessPeer)(int *, CUdevice, CUdevice); int (*cuDeviceCanAccessPeer)(int *, CUdevice, CUdevice);
int (*cuDeviceGet)(CUdevice *, int); int (*cuDeviceGet)(CUdevice *, int);
#if OMPI_CUDA_SUPPORT_60 #if OPAL_CUDA_SUPPORT_60
int (*cuPointerSetAttribute)(const void *, CUpointer_attribute, CUdeviceptr); int (*cuPointerSetAttribute)(const void *, CUpointer_attribute, CUdeviceptr);
#endif /* OMPI_CUDA_SUPPORT_60 */ #endif /* OPAL_CUDA_SUPPORT_60 */
} cudaFunctionTable; } cudaFunctionTable;
typedef struct cudaFunctionTable cudaFunctionTable_t; typedef struct cudaFunctionTable cudaFunctionTable_t;
cudaFunctionTable_t cuFunc; cudaFunctionTable_t cuFunc;
@ -449,9 +449,9 @@ int mca_common_cuda_stage_one_init(void)
OMPI_CUDA_DLSYM(libcuda_handle, cuCtxGetDevice); OMPI_CUDA_DLSYM(libcuda_handle, cuCtxGetDevice);
OMPI_CUDA_DLSYM(libcuda_handle, cuDeviceCanAccessPeer); OMPI_CUDA_DLSYM(libcuda_handle, cuDeviceCanAccessPeer);
OMPI_CUDA_DLSYM(libcuda_handle, cuDeviceGet); OMPI_CUDA_DLSYM(libcuda_handle, cuDeviceGet);
#if OMPI_CUDA_SUPPORT_60 #if OPAL_CUDA_SUPPORT_60
OMPI_CUDA_DLSYM(libcuda_handle, cuPointerSetAttribute); OMPI_CUDA_DLSYM(libcuda_handle, cuPointerSetAttribute);
#endif /* OMPI_CUDA_SUPPORT_60 */ #endif /* OPAL_CUDA_SUPPORT_60 */
return 0; return 0;
} }
@ -838,7 +838,7 @@ int cuda_getmemhandle(void *base, size_t size, mca_mpool_base_registration_t *ne
cuda_reg->base.bound = (unsigned char *)pbase + psize - 1; cuda_reg->base.bound = (unsigned char *)pbase + psize - 1;
memcpy(&cuda_reg->memHandle, &memHandle, sizeof(memHandle)); memcpy(&cuda_reg->memHandle, &memHandle, sizeof(memHandle));
#if OMPI_CUDA_SUPPORT_60 #if OPAL_CUDA_SUPPORT_60
/* With CUDA 6.0, we can set an attribute on the memory pointer that will /* With CUDA 6.0, we can set an attribute on the memory pointer that will
* ensure any synchronous copies are completed prior to any other access * ensure any synchronous copies are completed prior to any other access
* of the memory region. This means we do not need to record an event * of the memory region. This means we do not need to record an event
@ -866,7 +866,7 @@ int cuda_getmemhandle(void *base, size_t size, mca_mpool_base_registration_t *ne
true, result, base); true, result, base);
return OMPI_ERROR; return OMPI_ERROR;
} }
#endif /* OMPI_CUDA_SUPPORT_60 */ #endif /* OPAL_CUDA_SUPPORT_60 */
return OMPI_SUCCESS; return OMPI_SUCCESS;
} }
@ -990,10 +990,10 @@ void mca_common_cuda_destruct_event(uint64_t *event)
*/ */
void mca_common_wait_stream_synchronize(mca_mpool_common_cuda_reg_t *rget_reg) void mca_common_wait_stream_synchronize(mca_mpool_common_cuda_reg_t *rget_reg)
{ {
#if OMPI_CUDA_SUPPORT_60 #if OPAL_CUDA_SUPPORT_60
/* No need for any of this with CUDA 6.0 */ /* No need for any of this with CUDA 6.0 */
return; return;
#else /* OMPI_CUDA_SUPPORT_60 */ #else /* OPAL_CUDA_SUPPORT_60 */
CUipcEventHandle evtHandle; CUipcEventHandle evtHandle;
CUevent event; CUevent event;
CUresult result; CUresult result;
@ -1031,7 +1031,7 @@ void mca_common_wait_stream_synchronize(mca_mpool_common_cuda_reg_t *rget_reg)
opal_show_help("help-mpi-common-cuda.txt", "cuEventDestroy failed", opal_show_help("help-mpi-common-cuda.txt", "cuEventDestroy failed",
true, result); true, result);
} }
#endif /* OMPI_CUDA_SUPPORT_60 */ #endif /* OPAL_CUDA_SUPPORT_60 */
} }
/* /*