P4 to Git Change 1428488 by gandryey@gera-w8 on 2017/06/29 17:50:55
SWDEV-111196 - clGetKernelInfoAMD failures for OpenCL-on-ROCm
- Report available SGPR/VGPR
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#24 edit
[ROCm/clr commit: 2714cdc1b6]
Este cometimento está contido em:
1 ascendente
481bde3677
cometimento
bbaf2df99b
1 ficheiro modificado
+4
-4
@@ -672,8 +672,8 @@ bool Kernel::init_LC() {
|
|||||||
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
|
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
|
||||||
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
||||||
assert(workGroupInfo_.availableLDSSize_ > 0);
|
assert(workGroupInfo_.availableLDSSize_ > 0);
|
||||||
workGroupInfo_.availableSGPRs_ = 0;
|
workGroupInfo_.availableSGPRs_ = 104;
|
||||||
workGroupInfo_.availableVGPRs_ = 0;
|
workGroupInfo_.availableVGPRs_ = 256;
|
||||||
|
|
||||||
if (!kernelMD->mAttrs.mReqdWorkGroupSize.empty()) {
|
if (!kernelMD->mAttrs.mReqdWorkGroupSize.empty()) {
|
||||||
const auto& requiredWorkgroupSize = kernelMD->mAttrs.mReqdWorkGroupSize;
|
const auto& requiredWorkgroupSize = kernelMD->mAttrs.mReqdWorkGroupSize;
|
||||||
@@ -760,8 +760,8 @@ bool Kernel::init() {
|
|||||||
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
|
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
|
||||||
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
||||||
assert(workGroupInfo_.availableLDSSize_ > 0);
|
assert(workGroupInfo_.availableLDSSize_ > 0);
|
||||||
workGroupInfo_.availableSGPRs_ = 0;
|
workGroupInfo_.availableSGPRs_ = 104;
|
||||||
workGroupInfo_.availableVGPRs_ = 0;
|
workGroupInfo_.availableVGPRs_ = 256;
|
||||||
size_t sizeOfWorkGroupSize;
|
size_t sizeOfWorkGroupSize;
|
||||||
errorCode = g_complibApi._aclQueryInfo(compileHandle, program_->binaryElf(), RT_WORK_GROUP_SIZE,
|
errorCode = g_complibApi._aclQueryInfo(compileHandle, program_->binaryElf(), RT_WORK_GROUP_SIZE,
|
||||||
openClKernelName.c_str(), nullptr, &sizeOfWorkGroupSize);
|
openClKernelName.c_str(), nullptr, &sizeOfWorkGroupSize);
|
||||||
|
|||||||
Criar uma nova questão referindo esta
Bloquear um utilizador