diff --git a/Orochi/Orochi.cpp b/Orochi/Orochi.cpp index 63dee8f..1f769fc 100644 --- a/Orochi/Orochi.cpp +++ b/Orochi/Orochi.cpp @@ -296,11 +296,12 @@ oroError OROAPI oroGetDeviceProperties(oroDeviceProp* props, oroDevice dev) props->memPitch = p.memPitch; props->clockRate = p.clockRate; + cu2oro( cuDeviceTotalMem( &props->totalGlobalMem, deviceId ) ); + e = cuDeviceGetAttribute( &props->pciDomainID, CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID, deviceId ); e = cuDeviceGetAttribute(&props->pciBusID, CU_DEVICE_ATTRIBUTE_PCI_BUS_ID, deviceId); e = cuDeviceGetAttribute(&props->pciDeviceID, CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID, deviceId); e = cuDeviceGetAttribute(&props->multiProcessorCount, CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT, deviceId); - // props->totalGlobalMem = p.totalGlobalMem;? todo. DeviceTotalMem instead? e = cuDeviceGetAttribute( &props->warpSize, CU_DEVICE_ATTRIBUTE_WARP_SIZE, deviceId ); e = cuDeviceGetAttribute( (int*)&props->textureAlignment, CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT, deviceId ); e = cuDeviceGetAttribute( &props->kernelExecTimeoutEnabled, CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT, deviceId );