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

[ROCm/hip commit: ba8a556ea9]
Dieser Commit ist enthalten in:
Rahul Garg
2020-04-07 01:32:52 -07:00
committet von GitHub
Ursprung 326bd0fe1d
Commit 003d776e72
10 geänderte Dateien mit 222 neuen und 112 gelöschten Zeilen
@@ -101,7 +101,6 @@ int main() {
uint* dA[MaxGPUs];
long* dB[MaxGPUs];
long* dC;
hipModule_t Module;
hipStream_t stream[MaxGPUs];
uint32_t* init = new uint32_t[BufferSizeInDwords];
@@ -156,8 +155,8 @@ int main() {
for (int i = 0; i < nGpu; i++) {
HIPCHECK(hipSetDevice(i));
dimBlock.x = workgroups[set];
HIPCHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(reinterpret_cast<uint32_t*>(&numBlocks),
(hipFunction_t)test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(long)));
HIPCHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks,
test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(long)));
std::cout << "GPU(" << i << ") Block size: " << dimBlock.x << " Num blocks per CU: " << numBlocks << "\n";