diff --git a/rocclr/runtime/utils/flags.hpp b/rocclr/runtime/utils/flags.hpp index b7b508c8cf..db12e0f640 100644 --- a/rocclr/runtime/utils/flags.hpp +++ b/rocclr/runtime/utils/flags.hpp @@ -158,7 +158,7 @@ release(bool, GPU_ENABLE_LARGE_ALLOCATION, false, \ "Enable >4GB single allocations") \ release(bool, AMD_THREAD_TRACE_ENABLE, !IS_MAINLINE, \ "Enable thread trace extension") \ -release(uint, OPENCL_VERSION, 200, \ +release(uint, OPENCL_VERSION, (IS_BRAHMA ? 120 : 200), \ "Force GPU opencl verison") \ release(uint, CPU_OPENCL_VERSION, 120, \ "Force CPU opencl verison") \ diff --git a/rocclr/runtime/utils/macros.hpp b/rocclr/runtime/utils/macros.hpp index e7765f8384..d3cb6a2b60 100644 --- a/rocclr/runtime/utils/macros.hpp +++ b/rocclr/runtime/utils/macros.hpp @@ -166,6 +166,12 @@ # define ALWAYSINLINE #endif // !_MSC_VER +#ifdef BRAHMA +# define IS_BRAHMA true +#else +# define IS_BRAHMA false +#endif + //! \endcond #endif // MACROS_HPP_