SWDEV-306207 - clean up CL definition in ROCclr

Change-Id: I92e2c7c63ebddd119df390784e372ab2f42f3b0d


[ROCm/clr commit: 90b0e8430a]
Este commit está contenido en:
jujiang
2021-10-06 16:10:12 -04:00
cometido por Julia Jiang
padre e0cdac64e3
commit 7efd69cecd
Se han modificado 5 ficheros con 25 adiciones y 25 borrados
+4 -4
Ver fichero
@@ -376,8 +376,8 @@ struct Info : public amd::EmbeddedObject {
// the device implement error correction.
uint32_t errorCorrectionSupport_;
//! CL_TRUE if the device and the host have a unified memory subsystem and
// is CL_FALSE otherwise.
//! true if the device and the host have a unified memory subsystem and
// is false otherwise.
uint32_t hostUnifiedMemory_;
//! Describes the resolution of device timer.
@@ -386,7 +386,7 @@ struct Info : public amd::EmbeddedObject {
//! Timer starting point offset to Epoch.
uint64_t profilingTimerOffset_;
//! CL_TRUE if device is a little endian device.
//! true if device is a little endian device.
uint32_t littleEndian_;
//! If enabled, implies that commands can be submitted to command-queues
@@ -454,7 +454,7 @@ struct Info : public amd::EmbeddedObject {
//! Returns max number of images in a 1D or 2D image array
size_t imageMaxArraySize_;
//! Returns CL_TRUE if the devices preference is for the user to be
//! Returns true if the devices preference is for the user to be
//! responsible for synchronization
uint32_t preferredInteropUserSync_;
+8 -8
Ver fichero
@@ -493,7 +493,7 @@ void NullDevice::fillDeviceInfo(const CALdeviceattribs& calAttr, const gslMemInf
// Image support fields
if (settings().imageSupport_) {
info_.imageSupport_ = CL_TRUE;
info_.imageSupport_ = true;
info_.maxSamplers_ = MaxSamplers;
info_.maxReadImageArgs_ = MaxReadImage;
info_.maxWriteImageArgs_ = MaxWriteImage;
@@ -506,21 +506,21 @@ void NullDevice::fillDeviceInfo(const CALdeviceattribs& calAttr, const gslMemInf
info_.imagePitchAlignment_ = 256; // XXX: 256 pixel pitch alignment for now
info_.imageBaseAddressAlignment_ = 256; // XXX: 256 byte base address alignment for now
info_.bufferFromImageSupport_ = CL_TRUE;
info_.bufferFromImageSupport_ = true;
}
info_.errorCorrectionSupport_ = CL_FALSE;
info_.errorCorrectionSupport_ = false;
if (settings().apuSystem_) {
info_.hostUnifiedMemory_ = CL_TRUE;
info_.hostUnifiedMemory_ = true;
}
info_.profilingTimerResolution_ = 1;
info_.profilingTimerOffset_ = amd::Os::offsetToEpochNanos();
info_.littleEndian_ = CL_TRUE;
info_.available_ = CL_TRUE;
info_.compilerAvailable_ = CL_TRUE;
info_.linkerAvailable_ = CL_TRUE;
info_.littleEndian_ = true;
info_.available_ = true;
info_.compilerAvailable_ = true;
info_.linkerAvailable_ = true;
info_.executionCapabilities_ = CL_EXEC_KERNEL;
info_.preferredPlatformAtomicAlignment_ = 0;
+8 -8
Ver fichero
@@ -450,7 +450,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
// Image support fields
if (settings().imageSupport_) {
info_.imageSupport_ = CL_TRUE;
info_.imageSupport_ = true;
info_.maxSamplers_ = MaxSamplers;
info_.maxReadImageArgs_ = MaxReadImage;
info_.maxWriteImageArgs_ = MaxWriteImage;
@@ -463,21 +463,21 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
info_.imagePitchAlignment_ = 256; // PAL uses LINEAR_ALIGNED
info_.imageBaseAddressAlignment_ = 256; // XXX: 256 byte base address alignment for now
info_.bufferFromImageSupport_ = CL_TRUE;
info_.bufferFromImageSupport_ = true;
}
info_.errorCorrectionSupport_ = CL_FALSE;
info_.errorCorrectionSupport_ = false;
if (settings().apuSystem_) {
info_.hostUnifiedMemory_ = CL_TRUE;
info_.hostUnifiedMemory_ = true;
}
info_.profilingTimerResolution_ = 1;
info_.profilingTimerOffset_ = amd::Os::offsetToEpochNanos();
info_.littleEndian_ = CL_TRUE;
info_.available_ = CL_TRUE;
info_.compilerAvailable_ = CL_TRUE;
info_.linkerAvailable_ = CL_TRUE;
info_.littleEndian_ = true;
info_.available_ = true;
info_.compilerAvailable_ = true;
info_.linkerAvailable_ = true;
info_.executionCapabilities_ = CL_EXEC_KERNEL;
info_.preferredPlatformAtomicAlignment_ = 0;
+4 -4
Ver fichero
@@ -1254,7 +1254,7 @@ bool Device::populateOCLDeviceConstants() {
if (agent_profile_ == HSA_PROFILE_FULL) { // full-profile = participating in coherent memory,
// base-profile = NUMA based non-coherent memory
info_.hostUnifiedMemory_ = CL_TRUE;
info_.hostUnifiedMemory_ = true;
}
info_.memBaseAddrAlign_ =
8 * (flagIsDefault(MEMOBJ_BASE_ADDR_ALIGN) ? sizeof(int64_t[16]) : MEMOBJ_BASE_ADDR_ALIGN);
@@ -1276,7 +1276,7 @@ bool Device::populateOCLDeviceConstants() {
info_.addressBits_ = LP64_SWITCH(32, 64);
info_.maxSamplers_ = 16;
info_.bufferFromImageSupport_ = CL_FALSE;
info_.bufferFromImageSupport_ = false;
info_.oclcVersion_ = "OpenCL C " OPENCL_C_VERSION_STR " ";
info_.spirVersions_ = "";
@@ -1413,9 +1413,9 @@ bool Device::populateOCLDeviceConstants() {
info_.imageBaseAddressAlignment_ = 256;
info_.bufferFromImageSupport_ = CL_FALSE;
info_.bufferFromImageSupport_ = false;
info_.imageSupport_ = (info_.maxReadWriteImageArgs_ > 0) ? CL_TRUE : CL_FALSE;
info_.imageSupport_ = (info_.maxReadWriteImageArgs_ > 0) ? true : false;
}
// Enable SVM Capabilities of Hsa device. Ensure
+1 -1
Ver fichero
@@ -117,7 +117,7 @@ int Context::checkProperties(const cl_context_properties* properties, Context::I
while (p->name != 0) {
switch (p->name) {
case CL_CONTEXT_INTEROP_USER_SYNC:
if (p->ptr == reinterpret_cast<void*>(CL_TRUE)) {
if (p->ptr == reinterpret_cast<void*>(true)) {
info->flags_ |= InteropUserSync;
}
break;