P4 to Git Change 1725257 by gandryey@gera-w8 on 2019/01/02 17:28:57
SWDEV-79445 - OCL generic changes and code clean-up
- Move the constructor body of LightningProgram to the header
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#96 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#43 edit
[ROCm/clr commit: ad54eb030b]
This commit is contained in:
@@ -314,13 +314,6 @@ bool HSAILProgram::setKernels(amd::option::Options* options, void* binary, size_
|
||||
#endif // defined(WITH_COMPILER_LIB)
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
|
||||
LightningProgram::LightningProgram(roc::NullDevice& device)
|
||||
: roc::Program(device) {
|
||||
isLC_ = true;
|
||||
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
|
||||
machineTarget_ = dev().deviceInfo().machineTargetLC_;
|
||||
}
|
||||
|
||||
bool LightningProgram::createBinary(amd::option::Options* options) {
|
||||
if (!clBinary()->createElfBinary(options->oVariables->BinEncrypt, type())) {
|
||||
LogError("Failed to create ELF binary image!");
|
||||
|
||||
@@ -80,7 +80,12 @@ private:
|
||||
|
||||
class LightningProgram : public roc::Program {
|
||||
public:
|
||||
LightningProgram(roc::NullDevice& device);
|
||||
LightningProgram(roc::NullDevice& device)
|
||||
: roc::Program(device) {
|
||||
isLC_ = true;
|
||||
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
|
||||
machineTarget_ = dev().deviceInfo().machineTargetLC_;
|
||||
}
|
||||
virtual ~LightningProgram() {}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user