P4 to Git Change 1397729 by kzhuravl@kzhuravl-fiji-ocllc on 2017/04/12 20:05:08
SWDEV-116535 - Report CL_FP_DENORM for single fp config for gfx9 for LC for rocm/pal and force denorms on based on AMD_GPU_FORCE_SINGLE_FP_DENORM for rocm.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#7 edit
[ROCm/clr commit: c7e04f3222]
This commit is contained in:
@@ -1397,7 +1397,8 @@ HSAILProgram::codegenOptions(amd::option::Options* options)
|
||||
std::string optionsStr;
|
||||
|
||||
#if !defined(WITH_LIGHTNING_COMPILER)
|
||||
if (dev().deviceInfo().gfxipVersion_ < 900) {
|
||||
if (dev().deviceInfo().gfxipVersion_ < 900 ||
|
||||
!dev().settings().singleFpDenorm_) {
|
||||
optionsStr.append(" -cl-denorms-are-zero");
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user