Enable VDI Occupancy test
Change-Id: Ia89155ca909b9b7346584d19962fa0a94033bb17
Este cometimento está contido em:
+1
-5
@@ -22,7 +22,7 @@ THE SOFTWARE.
|
|||||||
// Test the Grid_Launch syntax.
|
// Test the Grid_Launch syntax.
|
||||||
|
|
||||||
/* HIT_START
|
/* HIT_START
|
||||||
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc vdi
|
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
|
||||||
* TEST: %t
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
@@ -46,10 +46,8 @@ int main(int argc, char* argv[]) {
|
|||||||
// test case for using kernel function pointer
|
// test case for using kernel function pointer
|
||||||
uint32_t gridSize = 0;
|
uint32_t gridSize = 0;
|
||||||
uint32_t blockSize = 0;
|
uint32_t blockSize = 0;
|
||||||
#if defined(__HIP_PLATFORM_HCC__) && GENERIC_GRID_LAUNCH == 1 && defined(__HCC__)
|
|
||||||
hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, f1, 0, 0);
|
hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, f1, 0, 0);
|
||||||
assert(gridSize != 0 && blockSize != 0);
|
assert(gridSize != 0 && blockSize != 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
uint32_t numBlock = 0;
|
uint32_t numBlock = 0;
|
||||||
hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, f1, blockSize, 0);
|
hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, f1, blockSize, 0);
|
||||||
@@ -59,10 +57,8 @@ int main(int argc, char* argv[]) {
|
|||||||
// test case for using kernel function pointer with template
|
// test case for using kernel function pointer with template
|
||||||
gridSize = 0;
|
gridSize = 0;
|
||||||
blockSize = 0;
|
blockSize = 0;
|
||||||
#if defined(__HIP_PLATFORM_HCC__) && GENERIC_GRID_LAUNCH == 1 && defined(__HCC__)
|
|
||||||
hipOccupancyMaxPotentialBlockSize<void(*)(int *)>(&gridSize, &blockSize, f2, 0, 0);
|
hipOccupancyMaxPotentialBlockSize<void(*)(int *)>(&gridSize, &blockSize, f2, 0, 0);
|
||||||
assert(gridSize != 0 && blockSize != 0);
|
assert(gridSize != 0 && blockSize != 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
numBlock = 0;
|
numBlock = 0;
|
||||||
hipOccupancyMaxActiveBlocksPerMultiprocessor<void(*)(int *)>(&numBlock, f2, blockSize, 0);
|
hipOccupancyMaxActiveBlocksPerMultiprocessor<void(*)(int *)>(&numBlock, f2, blockSize, 0);
|
||||||
|
|||||||
Criar uma nova questão referindo esta
Bloquear um utilizador