Merge "[hip-vdi]Fix for TF build failure [SWDEV-225827]" into amd-master-next

This commit is contained in:
Sarbojit Sarkar
2020-03-18 11:52:46 -04:00
gecommit door Gerrit Code Review
bovenliggende d32802a176 957caff8b4
commit 4cd02f20cf
5 gewijzigde bestanden met toevoegingen van 46 en 15 verwijderingen
@@ -22,7 +22,7 @@ THE SOFTWARE.
// Test the Grid_Launch syntax.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc vdi
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
* TEST: %t
* HIT_END
*/
@@ -46,10 +46,8 @@ int main(int argc, char* argv[]) {
// test case for using kernel function pointer
uint32_t gridSize = 0;
uint32_t blockSize = 0;
#if defined(__HIP_PLATFORM_HCC__) && GENERIC_GRID_LAUNCH == 1 && defined(__HCC__)
hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, f1, 0, 0);
assert(gridSize != 0 && blockSize != 0);
#endif
// test case for using kernel function pointer with template
gridSize = 0;