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
Этот коммит содержится в:
foreman
2019-01-02 18:29:04 -05:00
родитель 01710a66ac
Коммит ad54eb030b
2 изменённых файлов: 6 добавлений и 8 удалений
-7
Просмотреть файл
@@ -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!");
+6 -1
Просмотреть файл
@@ -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: