SWDEV-555551 - Remove hip-test warnings in linux (#1031)
Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>
Этот коммит содержится в:
@@ -139,7 +139,7 @@ static int cooperativeKernelTest() {
|
||||
int64_t* Ah;
|
||||
|
||||
hipDeviceProp_t deviceProp;
|
||||
hipGetDeviceProperties(&deviceProp, 0);
|
||||
CHECK_RET_VAL(hipGetDeviceProperties(&deviceProp, 0));
|
||||
|
||||
if (!deviceProp.cooperativeLaunch) {
|
||||
return testResult;
|
||||
@@ -170,8 +170,8 @@ static int cooperativeKernelTest() {
|
||||
dimBlock.x = workgroups[i];
|
||||
/* Calculate the device occupancy to know how many blocks can be
|
||||
run concurrently */
|
||||
hipOccupancyMaxActiveBlocksPerMultiprocessor(
|
||||
&numBlocks, test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(int64_t));
|
||||
CHECK_RET_VAL(hipOccupancyMaxActiveBlocksPerMultiprocessor(
|
||||
&numBlocks, test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(int64_t)));
|
||||
dimGrid.x = deviceProp.multiProcessorCount * std::min(numBlocks, 32);
|
||||
CHECK_RET_VAL(hipMalloc(reinterpret_cast<void**>(&dB), dimGrid.x * sizeof(int64_t)));
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user