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:
foreman
2018-12-13 20:36:31 -05:00
parent f874108c45
commit 57f2e64df3
4 changed files with 144 additions and 47 deletions
+5 -1
View File
@@ -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;
}