P4 to Git Change 1299166 by lmoriche@lmoriche_opencl_dev on 2016/08/04 15:38:20

SWDEV-94610 - Relax the assertions in Program::addDeviceProgram

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#80 edit
Cette révision appartient à :
foreman
2016-08-04 15:45:33 -04:00
Parent dcdd293036
révision 0e5e53ee19
+2 -2
Voir le fichier
@@ -49,7 +49,7 @@ Program::addDeviceProgram(Device& device, const void* image, size_t length,
amd::option::Options* options)
{
#if defined(WITH_LIGHTNING_COMPILER)
assert(!"FIMXE_Wilkins: check the code below");
if (image != NULL) { assert(!"FIMXE_Wilkins: check the code below"); }
#else // !defined(WITH_LIGHTNING_COMPILER)
if (image != NULL &&
!aclValidateBinaryImage(image, length,
@@ -76,7 +76,7 @@ Program::addDeviceProgram(Device& device, const void* image, size_t length,
emptyOptions = true;
}
#if defined(WITH_LIGHTNING_COMPILER)
assert(!"FIMXE_Wilkins: check the code below");
if (image != NULL && length != 0) { assert(!"FIMXE_Wilkins: check the code below"); }
#else // !defined(WITH_LIGHTNING_COMPILER)
if (image != NULL && length != 0 && aclValidateBinaryImage(image, length, BINARY_TYPE_ELF)) {
acl_error errorCode;