P4 to Git Change 1472044 by lmoriche@lmoriche_opencl_dev2 on 2017/10/18 12:47:26
SWDEV-126884 - OCL 2.1 Platform APIs - Report the OpenCL 2.1 platform on staging Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.map.in#20 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#163 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/build/Makefile.headers#6 edit ... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/irif/build/Makefile.irif#8 edit ... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ockl/build/Makefile.ockl#9 edit ... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/oclc/build/Makefile.oclc#11 edit ... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ocml/build/Makefile.ocml#9 edit ... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/opencl/build/Makefile.opencl#13 edit ... //depot/stg/opencl/drivers/opencl/opencldefs#217 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#149 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#357 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#24 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#35 edit
This commit is contained in:
@@ -204,7 +204,7 @@ static const char* Gfx1000 = "AMD:AMDGPU:10:0:0";
|
||||
static const char* Gfx1001 = "AMD:AMDGPU:10:0:1";
|
||||
|
||||
// Supported OpenCL versions
|
||||
enum OclVersion { OpenCL10, OpenCL11, OpenCL12, OpenCL20 };
|
||||
enum OclVersion { OpenCL10, OpenCL11, OpenCL12, OpenCL20, OpenCL21 };
|
||||
|
||||
struct CalFormat {
|
||||
gslChannelOrder channelOrder_; //!< Texel/pixel GSL channel order
|
||||
|
||||
@@ -265,6 +265,9 @@ bool Settings::create(const CALdeviceattribs& calAttr, bool reportAsOCL12Device,
|
||||
libSelector_ = amd::GPU_Library_SI;
|
||||
}
|
||||
|
||||
// Cap at OpenCL20 for now
|
||||
if (oclVersion_ > OpenCL20) oclVersion_ = OpenCL20;
|
||||
|
||||
// This needs to be cleaned once 64bit addressing is stable
|
||||
if (oclVersion_ < OpenCL20) {
|
||||
use64BitPtr_ = flagIsDefault(GPU_FORCE_64BIT_PTR)
|
||||
|
||||
@@ -202,7 +202,7 @@ static const char* Gfx1000 = "AMD:AMDGPU:10:0:0";
|
||||
static const char* Gfx1001 = "AMD:AMDGPU:10:0:1";
|
||||
|
||||
// Supported OpenCL versions
|
||||
enum OclVersion { OpenCL10, OpenCL11, OpenCL12, OpenCL20 };
|
||||
enum OclVersion { OpenCL10, OpenCL11, OpenCL12, OpenCL20, OpenCL21 };
|
||||
|
||||
struct MemoryFormat {
|
||||
cl_image_format clFormat_; //!< CL image format
|
||||
|
||||
@@ -248,6 +248,9 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
}
|
||||
numComputeRings_ = 8;
|
||||
|
||||
// Cap at OpenCL20 for now
|
||||
if (oclVersion_ > OpenCL20) oclVersion_ = OpenCL20;
|
||||
|
||||
// This needs to be cleaned once 64bit addressing is stable
|
||||
if (oclVersion_ < OpenCL20) {
|
||||
use64BitPtr_ = flagIsDefault(GPU_FORCE_64BIT_PTR)
|
||||
|
||||
مرجع در شماره جدید
Block a user