Merge in the rocclr based hip runtime (#2032)

* Merge master-next changes in master (include vdi development in master branch)



[ROCm/clr commit: f2e1118d7a]
Αυτή η υποβολή περιλαμβάνεται σε:
Maneesh Gupta
2020-04-23 21:42:06 +05:30
υποβλήθηκε από GitHub
γονέας ca51795efd
υποβολή 11fe5b06de
136 αρχεία άλλαξαν με 29756 προσθήκες και 307 διαγραφές
@@ -44,6 +44,8 @@ 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;
@@ -93,8 +95,10 @@ 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;
@@ -173,4 +177,8 @@ int main() {
free(C0);
free(C1);
free(cpuC);
#else
std::cout <<"hipOccupancyMaxPotentialBlockSize template not support for Clang compiler"<<std::endl;
#endif
return 0;
}