Added new device attributes (#1377)

* Added new device attributes

* updated comment

* updated with new device attributes supported
Tento commit je obsažen v:
ansurya
2019-09-16 14:01:30 +05:30
odevzdal Maneesh Gupta
rodič 6c7da60e28
revize e2a934f377
10 změnil soubory, kde provedl 93 přidání a 22 odebrání
+15
Zobrazit soubor
@@ -311,6 +311,21 @@ hipError_t ihipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device
case hipDeviceAttributeCooperativeMultiDeviceLaunch:
*pi = prop->cooperativeMultiDeviceLaunch;
break;
case hipDeviceAttributeMaxPitch:
*pi = prop->memPitch;
break;
case hipDeviceAttributeTextureAlignment:
*pi = prop->textureAlignment;
break;
case hipDeviceAttributeKernelExecTimeout:
*pi = prop->kernelExecTimeoutEnabled;
break;
case hipDeviceAttributeCanMapHostMemory:
*pi = prop->canMapHostMemory;
break;
case hipDeviceAttributeEccEnabled:
*pi = prop->ECCEnabled;
break;
default:
e = hipErrorInvalidValue;
break;