P4 to Git Change 1547669 by lmoriche@lmoriche_opencl_dev2 on 2018/04/29 14:53:31
SWDEV-145570 - [HIP] Fix kernel disptach for HCC compiled programs. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#34 edit
This commit is contained in:
@@ -187,7 +187,7 @@ static inline ROC_ADDRESS_QUALIFIER GetKernelAddrQual(const KernelArgMD& lcArg)
|
||||
if (lcArg.mValueKind == ValueKind::DynamicSharedPointer) {
|
||||
return ROC_ADDRESS_LOCAL;
|
||||
} else if (lcArg.mValueKind == ValueKind::GlobalBuffer) {
|
||||
if (lcArg.mAddrSpaceQual == AddressSpaceQualifier::Global) {
|
||||
if (lcArg.mAddrSpaceQual == AddressSpaceQualifier::Global || lcArg.mAddrSpaceQual == AddressSpaceQualifier::Generic) {
|
||||
return ROC_ADDRESS_GLOBAL;
|
||||
} else if (lcArg.mAddrSpaceQual == AddressSpaceQualifier::Constant) {
|
||||
return ROC_ADDRESS_CONSTANT;
|
||||
|
||||
Reference in New Issue
Block a user