SWDEV-475144 - Fix random language string

Fix random language string that leads to compiling failure
of trap handler and TDR of hipMemset() on VM in release
mode of hip-rt

Change-Id: Ie1d874742b804f62ceda68064fa54f5d39c092b8
Этот коммит содержится в:
taosang2 authored and Tao Sang committed 2024-08-20 17:42:31 -04:00
1 родитель e72d5a4443
Коммит 857d0d60b9
1 file changed
+2 -4
+2 -4
Просмотреть файл
@@ -541,13 +541,11 @@ int32_t Program::build(const std::vector<Device*>& devices, const char* options,
parsedOptions.oVariables->AssumeAlias = true;
if (language_ == Assembly) {
constexpr char asmLang[] = "asm";
parsedOptions.oVariables->XLang = asmLang;
parsedOptions.oVariables->XLang = "asm";
}
if (language_ == HIP) {
constexpr char hipLang[] = "HIP";
parsedOptions.oVariables->CLStd = hipLang;
parsedOptions.oVariables->CLStd = "HIP";
parsedOptions.origOptionStr = options;
parsedOptions.oVariables->DumpPrefix = "_hip_";
parsedOptions.oVariables->OptLevel = '3';