Added overflow check in kernel launch (#1770)

[ROCm/hip commit: 13316f724f]
이 커밋은 다음에 포함됨:
Sarbojit2019
2020-02-04 09:02:16 +05:30
커밋한 사람 GitHub
부모 7ee73c0b5b
커밋 91d9cfd64d
2개의 변경된 파일과 41개의 추가작업 그리고 22개의 파일을 삭제
+3
파일 보기
@@ -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.