Device property concurrentKernels is added to hipDeviceProp_t struct.

For HCC path concurrentKernels is set to true since all ROCR hardware supports this feature.
For NVCC path concurrentKernels is obtained from CUDA's device property cudaDeviceProp::concurrentKernels.
Cette révision appartient à :
Evgeny Mankov a révisé 2016-02-09 17:10:35 +03:00
1 Parent 7cc7f88717
révision 950c3baacd
3 fichiers modifiés
+3

Aucun fichier ne correspond à votre recherche

+1
Voir le fichier
@@ -93,6 +93,7 @@ typedef struct hipDeviceProp_t {
int clockInstructionRate ; ///< Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP.
hipDeviceArch_t arch; ///< Architectural feature flags. New for HIP.
int concurrentKernels; ///< Device can possibly execute multiple kernels concurrently
} hipDeviceProp_t;
+1
Voir le fichier
@@ -207,6 +207,7 @@ inline static hipError_t hipDeviceGetProperties(hipDeviceProp_t *p_prop, int dev
p_prop->arch.has3dGrid = (ccVers >= 200);
p_prop->arch.hasDynamicParallelism = (ccVers >= 350);
p_prop->concurrentKernels = cdprop.concurrentKernels;
return hipCUDAErrorTohipError(cerror);
}