Added overflow check in kernel launch (#1770)

[ROCm/hip commit: 13316f724f]
Cette révision appartient à :
Sarbojit2019 a créé et GitHub a révisé 2020-02-04 09:02:16 +05:30
1 Parent 7ee73c0b5b
révision 91d9cfd64d
2 fichiers modifiés
+41 -22

Aucun fichier ne correspond à votre recherche

+3
Voir le fichier
@@ -237,3 +237,6 @@ To disable it and use the legancy grid launch method, please either change the d
$HIP/include/hip/hcc_detail/hip_runtime_api.h
$HIP/include/hip/hcc_detail/host_defines.h
Or pass "-DGENERIC_GRID_LAUNCH=0" to hipcc at application compilation time.
### What is maximum limit of Generic Grid Launch parameters (grid and block)?
Product of (grid.x and block.x), (grid.y and block.y) or (grid.z and block.z) should always be less than UINT_MAX.