Attribute hipDevAttrConcurrentKernels for obtaining Device property concurrentKernels is added.

[ROCm/hip commit: 2b6fda77ca]
This commit is contained in:
Evgeny Mankov
2016-02-18 14:34:18 +03:00
parent 189e652a5e
commit 8c1a0d1924
4 changed files with 6 additions and 0 deletions
+2
View File
@@ -852,6 +852,8 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
*pi = prop->minor; break;
case hipDeviceAttributePciBusId:
*pi = prop->pciBusID; break;
case hipDevAttrConcurrentKernels:
*pi = prop->concurrentKernels; break;
case hipDeviceAttributePciDeviceId:
*pi = prop->pciDeviceID; break;
case hipDeviceAttributeMaxSharedMemoryPerMultiprocessor: