enable occupancy sample on HIP-Clang

Change-Id: I236daad743bbbc7f8daa41e8157a4ff73058518b


[ROCm/hip commit: 700474db6f]
Этот коммит содержится в:
Dittakavi Satyanvesh
2020-05-15 09:05:06 -04:00
родитель e5c6555eee
Коммит e9783da3c1
-7
Просмотреть файл
@@ -44,8 +44,6 @@ void multiplyCPU(float* C, float* A, float* B, int N){
}
}
#if defined(__HIP_PLATFORM_HCC__) && GENERIC_GRID_LAUNCH == 1 && defined(__HCC__)
void launchKernel(float* C, float* A, float* B, bool manual){
hipDeviceProp_t devProp;
@@ -95,10 +93,8 @@ void launchKernel(float* C, float* A, float* B, bool manual){
std::cout << "Theoretical Occupancy is " << (double)numBlock* blockSize/devProp.maxThreadsPerMultiProcessor * 100 << "%" << std::endl;
}
}
#endif
int main() {
#if defined(__HIP_PLATFORM_HCC__) && GENERIC_GRID_LAUNCH == 1 && defined(__HCC__)
float *A, *B, *C0, *C1, *cpuC;
float *Ad, *Bd, *C0d, *C1d;
int errors=0;
@@ -177,8 +173,5 @@ int main() {
free(C0);
free(C1);
free(cpuC);
#else
std::cout <<"hipOccupancyMaxPotentialBlockSize template not support for Clang compiler"<<std::endl;
#endif
return 0;
}