P4 to Git Change 1720254 by wchau@wchau_OCL_boltzmann on 2018/12/13 20:24:53
SWDEV-162389 - OpenCL Support for COMgr - fixing two bugs that (1) destroying an non-existant comgr object, (2) missing "+xnack" in target triple for Raven Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#17 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#14 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#47 edit
This commit is contained in:
@@ -50,7 +50,11 @@ bool LightningKernel::init() {
|
||||
assert(workGroupInfo_.availableLDSSize_ > 0);
|
||||
|
||||
// Get the available SGPRs and VGPRs
|
||||
const std::string targetIdent = std::string("amdgcn-amd-amdhsa--")+program_->machineTarget();
|
||||
std::string targetIdent = std::string("amdgcn-amd-amdhsa--")+program_->machineTarget();
|
||||
if (program_->xnackEnable()) {
|
||||
targetIdent.append("+xnack");
|
||||
}
|
||||
|
||||
if (!SetAvailableSgprVgpr(targetIdent)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user