SWDEV-252095 - Fix progvar_prog_scope_misc test Aborted (core dumped)

The progvar_prog_scope_misc test expects CL_DEVICE_MAX_MEM_ALLOC_SIZE to be multiple of integer.

Change-Id: Ic0690f5ab06ffa3feafb718beabbcf83ab53978c
이 커밋은 다음에 포함됨:
Jason Tang가 2020-09-11 12:36:39 -04:00를 커밋했습니다
1 부모 51d0c6bbef
커밋 740f1ba0aa
1 파일이 변경됨
+4 -5
+4 -5
파일 보기
@@ -1142,13 +1142,12 @@ bool Device::populateOCLDeviceConstants() {
freeMem_ = info_.globalMemSize_;
// Make sure the max allocation size is not larger than the available
// memory size.
// Make sure the max allocation size is not larger than the available memory size.
info_.maxMemAllocSize_ = std::min(info_.maxMemAllocSize_, info_.globalMemSize_);
info_.maxMemAllocSize_ = amd::alignDown(info_.maxMemAllocSize_, sizeof(uint64_t));
/*make sure we don't run anything over 8 params for now*/
info_.maxParameterSize_ = 1024; // [TODO]: CAL stack values: 1024*
// constant
// make sure we don't run anything over 8 params for now
info_.maxParameterSize_ = 1024;
uint32_t max_work_group_size = 0;
if (HSA_STATUS_SUCCESS !=