SWDEV-418038 - Drop GPU_ENABLE_WAVE32_MODE from RTC.

Change-Id: Iac11f26714e8b3bae14cbf69933ef7c8c8be47da
Esse commit está contido em:
Jaydeep Patel
2023-09-07 05:20:10 +00:00
commit de Jaydeepkumar Patel
commit a37c95d7ed
3 arquivos alterados com 0 adições e 23 exclusões
-19
Ver Arquivo
@@ -273,14 +273,6 @@ bool RTCCompileProgram::transformOptions(std::vector<std::string>& compile_optio
return findIsa();
}
static inline uint getArchMajorVersion(std::string &isa) {
if (const amd::Isa *isaIter = amd::Isa::findIsa(isa.data())) {
return isaIter->versionMajor();
}
return static_cast<uint>(-1);
}
amd::Monitor RTCProgram::lock_("HIPRTC Program", true);
bool RTCCompileProgram::compile(const std::vector<std::string>& options, bool fgpu_rdc) {
@@ -306,17 +298,6 @@ bool RTCCompileProgram::compile(const std::vector<std::string>& options, bool fg
return false;
}
// Decide whether to enable wave64 compilation
auto majorVer = getArchMajorVersion(isa_);
if (majorVer <= 9 || !GPU_ENABLE_WAVE32_MODE) {
if (majorVer > 9) {
LogWarning("Wavefront size 64 is experimental for gfx10 and above. Warp "
"functions may not work");
}
compileOpts.push_back("-mwavefrontsize64");
link_options_.push_back("wavefrontsize64");
}
if (!compileToBitCode(compile_input_, isa_, compileOpts, build_log_, LLVMBitcode_)) {
LogError("Error in hiprtc: unable to compile source to bitcode");
return false;