1
1

Need to initialize variable in case function calls fail.

This commit was SVN r25236.
Этот коммит содержится в:
Rolf vandeVaart 2011-10-05 22:58:14 +00:00
родитель 79b14fc3b1
Коммит 9f8684730f

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

@ -60,7 +60,7 @@ void mca_cuda_convertor_init(opal_convertor_t* convertor, const void *pUserBuf)
bool opal_cuda_check_bufs(char *dest, char *src)
{
int res;
CUmemorytype memType;
CUmemorytype memType = CU_MEMORYTYPE_HOST;
res = cuPointerGetAttribute(&memType, CU_POINTER_ATTRIBUTE_MEMORY_TYPE, (CUdeviceptr)dest);
if( memType == CU_MEMORYTYPE_DEVICE){