Revert "Match Occupancy APIs syntax with CUDA (#1625)" (#1857)

Reverting this for now till we figure out how to avoid the build
breakage.

This reverts commit fa98798b63.
Ta zmiana jest zawarta w:
Maneesh Gupta authored and GitHub committed 2020-02-10 10:45:28 +05:30
1 rodzic dd34ea95d6
złożenie f8e1c01900
7 plików zmienionych
+60 -35

Żadne pliki nie pasują do Twojego wyszukiwania

+2 -2
Wyświetl plik
@@ -86,8 +86,8 @@ void launchKernel(float* C, float* A, float* B, bool manual){
printf("kernel Execution time = %6.3fms\n", eventMs);
//Calculate Occupancy
int numBlock = 0;
HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply,(int)blockSize, 0));
uint32_t numBlock = 0;
HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply, blockSize, 0));
if(devProp.maxThreadsPerMultiProcessor){
std::cout << "Theoretical Occupancy is " << (double)numBlock* blockSize/devProp.maxThreadsPerMultiProcessor * 100 << "%" << std::endl;