P4 to Git Change 1758488 by asalmanp@asalmanp-ocl-stg on 2019/03/19 15:18:18

SWDEV-132899 - [OCL][GFX10] add "wavefrontsize64" to the linkOptions if they had previously been added to the compile options

	ReviewRequestURL = http://ocltc.amd.com/reviews/r/16966/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#71 edit
This commit is contained in:
foreman
2019-03-19 15:43:32 -04:00
rodzic 79cbc7bfb3
commit 46ffad2bc5
2 zmienionych plików z 4 dodań i 1 usunięć
@@ -1449,6 +1449,9 @@ bool Program::linkImplLC(amd::option::Options* options) {
if (options->oVariables->UnsafeMathOpt || options->oVariables->FastRelaxedMath) { if (options->oVariables->UnsafeMathOpt || options->oVariables->FastRelaxedMath) {
linkOptions += "unsafe_math,"; linkOptions += "unsafe_math,";
} }
if (device().settings().lcWavefrontSize64_) {
linkOptions += "wavefrontsize64,";
}
if (!linkOptions.empty()) { if (!linkOptions.empty()) {
linkOptions.pop_back(); // remove the last comma linkOptions.pop_back(); // remove the last comma
} }
@@ -143,7 +143,7 @@ Settings::Settings() {
enableWgpMode_ = false; enableWgpMode_ = false;
enableWave32Mode_ = false; enableWave32Mode_ = false;
hsailExplicitXnack_ = false; hsailExplicitXnack_ = false;
lcWavefrontSize64_ = false; lcWavefrontSize64_ = true;
} }
bool Settings::create(const Pal::DeviceProperties& palProp, bool Settings::create(const Pal::DeviceProperties& palProp,