SWDEV-308644 - merge roc blit kernels

Change-Id: I378e511959fe17c03fa45066022e9670a4d181f0
这个提交包含在:
Julia Jiang 编写, Julia Jiang 于 2021-11-25 10:07:51 -05:00 提交
1 父节点 964f5bc502
当前提交 f5c9ad5b1d
8 个文件已更改
+29 -58

没有与搜索条件相匹配的文件

+6 -8
查看文件
@@ -834,22 +834,20 @@ void Device::ReleaseExclusiveGpuAccess(VirtualGPU& vgpu) const {
bool Device::createBlitProgram() {
bool result = true;
const char* extraKernel = nullptr;
std::string extraKernel;
#if defined(USE_COMGR_LIBRARY)
std::string rocKernel;
if (settings().useLightning_) {
if (amd::IS_HIP) {
rocKernel = rocBlitLinearSourceCode;
extraKernel = rocBlitLinearSourceCode;
if (info().cooperativeGroups_) {
rocKernel.append(GwsInitSourceCode);
}
extraKernel.append(GwsInitSourceCode);
}
}
else {
rocKernel = SchedulerSourceCode;
extraKernel = SchedulerSourceCode;
}
extraKernel = rocKernel.c_str();
}
#endif // USE_COMGR_LIBRARY