From c72a396c1fad88e5e6b45427e679c3670825decd Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Wed, 24 Aug 2022 06:28:55 +0000 Subject: [PATCH] SWDEV-343921 - Updating default stack size for OpenCl tasks Change-Id: I37cdd8808dddaa7ac0544b76d18de64b27e443bd --- rocclr/device/device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rocclr/device/device.cpp b/rocclr/device/device.cpp index 340e6d065a..fffc3fbdcc 100644 --- a/rocclr/device/device.cpp +++ b/rocclr/device/device.cpp @@ -565,6 +565,10 @@ bool Device::create(const Isa &isa) { if (nullptr == vaCacheMap_) { return false; } + // For OpenCl default stack size needs to be set to 16K + if (!amd::IS_HIP) { + stack_size_ = 16 * Ki; + } return true; }