P4 to Git Change 1989211 by vsytchen@vsytchen-remote-ocl-win10 on 2019/08/26 16:54:35

SWDEV-201325 - [OpenCL][LC][Gfx10] Kernels fail to compile when HBCC is enabled

	1. Don't add +xnack to the target triplet when compiling for gfx10+

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17885/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#58 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#158 edit


[ROCm/clr commit: eac38fdde6]
This commit is contained in:
foreman
2019-08-26 16:56:42 -04:00
parent 7e86d6e11e
commit b221ba00e5
2 changed files with 7 additions and 6 deletions
@@ -885,8 +885,9 @@ bool Device::create(Pal::IDevice* device) {
// XNACK flag should be set for PageMigration | IOMMUv2 Support
uint isXNACKSupported =
static_cast<uint>(properties_.gpuMemoryProperties.flags.pageMigrationEnabled ||
properties_.gpuMemoryProperties.flags.iommuv2Support);
(ipLevel_ < Pal::GfxIpLevel::GfxIp10_1) &&
(static_cast<uint>(properties_.gpuMemoryProperties.flags.pageMigrationEnabled ||
properties_.gpuMemoryProperties.flags.iommuv2Support));
uint subtarget = isXNACKSupported;
// Update HW info for the device