P4 to Git Change 1487653 by wchau@wchau_OCL_boltzmann on 2017/11/28 11:28:09
SWDEV-119491 - Add support for cl_amd_assembly_program extension This is a sub-task of SWDEV-134396. Part 1/4 of the required changes: (1) OpenCL API / Runtime, (2) ROCm Runtime - compiler invocation, (3) ROCm Driver, (4) Enabling Extension Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#19 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#57 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#45 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#19 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#35 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#12 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#215 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#293 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#90 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#42 edit
Esse commit está contido em:
@@ -116,7 +116,7 @@ bool Device::BlitProgram::create(amd::Device* device, const char* extraKernels,
|
||||
}
|
||||
|
||||
// Create a program with all blit kernels
|
||||
program_ = new Program(*context_, kernels.c_str());
|
||||
program_ = new Program(*context_, kernels.c_str(), Program::OpenCL_C);
|
||||
if (program_ == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ enum OclExtensions {
|
||||
ClKhrIlProgram,
|
||||
ClAMDLiquidFlash,
|
||||
ClAmdCopyBufferP2P,
|
||||
ClAmdAssemblyProgram,
|
||||
ClExtTotal
|
||||
};
|
||||
|
||||
@@ -161,6 +162,7 @@ static const char* OclExtensionsString[] = {"cl_khr_fp64 ",
|
||||
"",
|
||||
"cl_amd_liquid_flash ",
|
||||
"cl_amd_copy_buffer_p2p ",
|
||||
"cl_amd_assembly_program ",
|
||||
NULL};
|
||||
|
||||
static constexpr int AmdVendor = 0x1002;
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário