From 7c5ee80511dd58dbdae269ffa0f3751ad9bbd533 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 10 Sep 2014 11:25:14 -0400 Subject: [PATCH] P4 to Git Change 1075322 by smekhano@rampitec-HSA on 2014/09/10 11:07:04 ECR #333756 - HSA Finalizer: added runtime option to force buffer instructions for global access This can be used under ORCA RT. Testing: smoke, smoke_clang, precheckin, clbas dgemm Reviewed by Nikolay Haustov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/SI/scStateSI.cpp#24 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#112 edit [ROCm/clr commit: d35be99f0117a4bfaf41395651789183c4c32f0d] --- projects/clr/rocclr/compiler/lib/utils/OPTIONS.def | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def index 976898cc88..598ff16eaa 100644 --- a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def +++ b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def @@ -732,6 +732,14 @@ OPTION(OT_BOOL, \ false, 0, 0, NULL, \ "Scheduler: turn off instruction reordering") +// -fsc-use-buffer-for-hsa-global +OPTION(OT_BOOL, \ + OA_RUNTIME|OA_RUNTIME|OVIS_SUPPORT|OVA_DISALLOWED|OFA_PREFIX_F, \ + "sc-use-buffer-for-hsa-global", NULL, \ + SCUseBufferForHsaGlobal, \ + false, 0, 0, NULL, \ + "HSA: use buffer instructions instead of flat for global memory") + // -fuser-no-inline -fno-user-no-inline OPTION(OT_BOOL, \ OA_LINK_EXE|OA_RUNTIME|OVIS_SUPPORT|OVA_DISALLOWED|OFA_PREFIX_F, \