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
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user