P4 to Git Change 1608319 by gandryey@gera-lnx-rcf-lc on 2018/09/19 16:55:11
SWDEV-79445 - OCL generic changes and code clean-up Program compilation clean-up. Step#2: - Combine PAL and ROCr implementations of compilation under common methods in device::Program for HSAIL and LC. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#319 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#74 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#26 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#34 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#73 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#30 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#46 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#87 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#36 edit
Этот коммит содержится в:
@@ -265,6 +265,8 @@ aclType Program::getNextCompilationStageFromBinary(amd::option::Options* options
|
||||
|
||||
#if defined(WITH_COMPILER_LIB)
|
||||
HSAILProgram::HSAILProgram(roc::NullDevice& device) : roc::Program(device) {
|
||||
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
|
||||
machineTarget_ = dev().deviceInfo().complibTarget_;
|
||||
}
|
||||
|
||||
HSAILProgram::~HSAILProgram() {
|
||||
@@ -715,7 +717,11 @@ bool HSAILProgram::linkImpl(amd::option::Options* options) {
|
||||
#endif // defined(WITH_COMPILER_LIB)
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
LightningProgram::LightningProgram(roc::NullDevice& device) : roc::Program(device) {
|
||||
LightningProgram::LightningProgram(roc::NullDevice& device)
|
||||
: roc::Program(device) {
|
||||
isLC_ = true;
|
||||
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
|
||||
machineTarget_ = dev().deviceInfo().machineTarget_;
|
||||
metadata_ = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user