P4 to Git Change 1475393 by lmoriche@lmoriche_opencl_dev2 on 2017/10/26 17:01:11
SWDEV-126884 - OCL 2.1 Platform APIs - Implement clGetKernelSubGroupInfo, clCloneKernel, clGetHostTimer and clGetHostAndDeviceTimer Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#68 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#25 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#43 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#24 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.hpp#19 edit
Este cometimento está contido em:
@@ -13,13 +13,17 @@ namespace amd {
|
||||
|
||||
Kernel::Kernel(Program& program, const Symbol& symbol, const std::string& name)
|
||||
: program_(program), symbol_(symbol), name_(name) {
|
||||
const KernelSignature& s = signature();
|
||||
size_t stackSize = s.paramsSize();
|
||||
parameters_ = new (s) KernelParameters(s);
|
||||
parameters_ = new (signature()) KernelParameters(signature());
|
||||
fixme_guarantee(parameters_ != NULL && "out of memory");
|
||||
name_ += '\0';
|
||||
}
|
||||
|
||||
Kernel::Kernel(const Kernel& rhs)
|
||||
: program_(rhs.program_()), symbol_(rhs.symbol_), name_(rhs.name_) {
|
||||
parameters_ = new(signature()) KernelParameters(*rhs.parameters_);
|
||||
fixme_guarantee(parameters_ != NULL && "out of memory");
|
||||
}
|
||||
|
||||
Kernel::~Kernel() {
|
||||
// Release kernel object itself
|
||||
delete parameters_;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador