Added CooperativeLaunch and CooperativeMultiDeviceLaunch flag and property for hipDeviceGetAttribute() and hipGetDeviceProperties() (#1247)

This commit is contained in:
wkwchau
2019-08-02 06:00:25 -04:00
committed by Maneesh Gupta
parent e7447d5809
commit aaec4f73a6
3 changed files with 14 additions and 0 deletions
+6
View File
@@ -305,6 +305,12 @@ hipError_t ihipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device
*hdp = prop->hdpRegFlushCntl;
}
break;
case hipDeviceAttributeCooperativeLaunch:
*pi = prop->cooperativeLaunch;
break;
case hipDeviceAttributeCooperativeMultiDeviceLaunch:
*pi = prop->cooperativeMultiDeviceLaunch;
break;
default:
e = hipErrorInvalidValue;
break;