Temporarily comment out Hcc-specific APIs for CLang compiler
Temporarily comment out Hcc-specific template functions hipExtLaunchKernelGGL and hipOccupancyMaxPotentialBlockSize for CLang compiler so that all test cases under hip/samples can be built successfully for Clang + Hip/Hcc runtime. Change-Id: Iafc761257be4a7b34eafa6759a01f369570cd6ce
This commit is contained in:
@@ -46,8 +46,10 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user