From 7c4cf726f73f5d55221a20c8b618c190aa143146 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 19 Apr 2018 20:25:16 -0500 Subject: [PATCH] Disable large scratch on GFX8. Temporary pending firmware fix. Change-Id: Id1b1ecef421bc97327fd0d2e6225549a6e81dba0 [ROCm/ROCR-Runtime commit: b66764e4c6423015f9b9f0c5b28ac5fd5c136a4d] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index cceda10c6f..bc91b564de 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -928,6 +928,7 @@ void GpuAgent::AcquireQueueScratch(ScratchInfo& scratch) { ScopedAcquire lock(&scratch_lock_); bool large = (scratch.size > 6 * 1024 * 1024) || (scratch_pool_.size() - scratch_pool_.remaining() > 24 * 6 * 1024 * 1024); + large = (isa_->GetMajorVersion() < 9) ? false : large; if (large) scratch.queue_base = scratch_pool_.alloc_high(scratch.size); else