P4 to Git Change 1717839 by gandryey@gera-w8 on 2018/12/07 17:54:13
SWDEV-162389 - Prepare the runtime code for enabling COMGR by default in the non-LC workspace - Make sure OCL runtime can dynamically switch between HSAIL and LC paths - For now use the both WITH_LIGHTNING_COMPILER and USE_COMGR_LIBRARY defines to identify LC specific code. The clean-up will come later Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#236 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#325 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#17 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#10 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#247 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#116 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#72 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#83 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#61 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#99 edit
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -12,7 +12,7 @@
|
||||
#include "amd_comgr.h"
|
||||
#endif
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
#if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
|
||||
#include "driver/AmdCompiler.h"
|
||||
//#include "llvm/Support/AMDGPUMetadata.h"
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace llvm {
|
||||
typedef llvm::AMDGPU::HSAMD::Metadata CodeObjectMD;
|
||||
typedef llvm::AMDGPU::HSAMD::Kernel::Metadata KernelMD;
|
||||
//typedef llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata KernelArgMD;
|
||||
#endif // defined(WITH_LIGHTNING_COMPILER)
|
||||
#endif // defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
|
||||
|
||||
#ifndef LC_METADATA
|
||||
typedef char CodeObjectMD;
|
||||
@@ -264,10 +264,10 @@ class Program : public amd::HeapObject {
|
||||
|
||||
void setType(type_t newType) { type_ = newType; }
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
#if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
|
||||
//! Return a new transient compiler instance.
|
||||
static std::unique_ptr<amd::opencl_driver::Compiler> newCompilerInstance();
|
||||
#endif // defined(WITH_LIGHTNING_COMPILER)
|
||||
#endif // defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
|
||||
|
||||
/* \brief Returns the next stage to compile from, based on sections in binary,
|
||||
* also returns completeStages in a vector, which contains at least ACL_TYPE_DEFAULT,
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user