P4 to Git Change 1613773 by gandryey@gera-w8 on 2018/10/02 18:37:59
SWDEV-79445 - OCL generic changes and code clean-up Program compilation clean-up: - Remove !defined(WITH_LIGHTNING_COMPILER), but appprofiler still requires more changes. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#232 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#10 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#112 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#68 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#81 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#59 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#101 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#38 edit
This commit is contained in:
@@ -104,23 +104,22 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
|
||||
|
||||
// Enable KHR double precision extension
|
||||
enableExtension(ClKhrFp64);
|
||||
#if !defined(WITH_LIGHTNING_COMPILER)
|
||||
// Also enable AMD double precision extension?
|
||||
enableExtension(ClAmdFp64);
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
enableExtension(ClKhrSubGroups);
|
||||
enableExtension(ClKhrDepthImages);
|
||||
enableExtension(ClAmdCopyBufferP2P);
|
||||
enableExtension(ClKhrFp16);
|
||||
supportDepthsRGB_ = true;
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
enableExtension(ClAmdAssemblyProgram);
|
||||
// enable subnormals for gfx900 and later
|
||||
if (gfxipVersion >= 900) {
|
||||
if (useLightning_) {
|
||||
enableExtension(ClAmdAssemblyProgram);
|
||||
// enable subnormals for gfx900 and later
|
||||
if (gfxipVersion >= 900) {
|
||||
singleFpDenorm_ = true;
|
||||
}
|
||||
} else {
|
||||
// Also enable AMD double precision extension?
|
||||
enableExtension(ClAmdFp64);
|
||||
}
|
||||
#endif // WITH_LIGHTNING_COMPILER
|
||||
|
||||
if (gfxipVersion == 902) {
|
||||
apuSystem_ = true;
|
||||
|
||||
Reference in New Issue
Block a user