From f301bf39627013a3e5214901872f75ea10eded20 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 9 Apr 2022 01:18:33 +0000 Subject: [PATCH] SWDEV-331095 - Address hipRTC windows test failures Change-Id: I8c1a36ffd362c6f41449092e4dd85f6ec587206a --- hipamd/src/hiprtc/hiprtcInternal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hipamd/src/hiprtc/hiprtcInternal.cpp b/hipamd/src/hiprtc/hiprtcInternal.cpp index 75a79d642f..07f903d8b6 100644 --- a/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -48,7 +48,7 @@ RTCProgram::RTCProgram(std::string name_) : name(name_) { const std::string hipVerMinor{"-DHIP_VERSION_MINOR=" + std::to_string(HIP_VERSION_MINOR)}; const std::string hipVerPatch{"-DHIP_VERSION_PATCH=" + std::to_string(HIP_VERSION_PATCH)}; - compileOptions.reserve(18); // count of options below + compileOptions.reserve(20); // count of options below compileOptions.push_back("-O3"); #ifdef HIPRTC_EARLY_INLINE @@ -72,7 +72,8 @@ RTCProgram::RTCProgram(std::string name_) : name(name_) { compileOptions.push_back("-std=c++14"); compileOptions.push_back("-nogpuinc"); #ifdef _WIN32 - compileOptions.push_back("-target x86_64-pc-windows-msvc"); + compileOptions.push_back("-target"); + compileOptions.push_back("x86_64-pc-windows-msvc"); compileOptions.push_back("-fms-extensions"); compileOptions.push_back("-fms-compatibility"); #endif