Rename hipDrvOccupancy to hipModuleOccupancy and match CUDA syntax (#1943)

[ROCm/hip commit: ba8a556ea9]
Dieser Commit ist enthalten in:
Rahul Garg verfasst und GitHub committed 2020-04-07 14:02:52 +05:30
1 Ursprung 326bd0fe1d
Commit 003d776e72
10 Dateien geändert
+222 -112

Keine Dateien entsprechen Ihrer Suche

@@ -56,9 +56,9 @@ void launchKernel(float* C, float* A, float* B, bool manual){
const unsigned threadsperblock = 32;
const unsigned blocks = (NUM/threadsperblock)+1;
uint32_t mingridSize = 0;
uint32_t gridSize = 0;
uint32_t blockSize = 0;
int mingridSize = 0;
int gridSize = 0;
int blockSize = 0;
if (manual){
blockSize = threadsperblock;
@@ -86,7 +86,7 @@ void launchKernel(float* C, float* A, float* B, bool manual){
printf("kernel Execution time = %6.3fms\n", eventMs);
//Calculate Occupancy
uint32_t numBlock = 0;
int numBlock = 0;
HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply, blockSize, 0));
if(devProp.maxThreadsPerMultiProcessor){