Disable compiler optimizations for linux dll unit tests, because they
made the tests use original instead of mock syscalls.
Ignore false-positive gcc warnings:
- Ignore restrict for gcc12 and maybe-uninitialized
for gcc >= 13 warnings in Release builds in the whole project
- Ignore array-bounds warnings in specific cases
Related-To: NEO-8116
Signed-off-by: Kindracki, Jakub Tomasz <jakub.tomasz.kindracki@intel.com>
Store data in a pipe instead of a temporary file like gtest
resulting in faster test execution
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
- add `hasImageWriteArg` flag to KernelDescriptor,
based on image access qualifier
- add `isPostImageWriteFlushRequired` method to productHelper,
to require cache flush only on selected platforms
- if possible, add the `textureCacheInvalidationEnable` arg to the
existing PC, otherwise add a new PC
Related-To: NEO-13427, HSD-18041321008
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
Functions: fileExists and loadDataToFile
use IO functions from namespace IoFunctions
Now tests that use these functions
are mocked by default,
but some still require access to real files
and have been restored the ability to read files.
They will be mocked in next PRs.
Related-To: NEO-7006
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
- if buffers are not bindful or bindless, set stateless addressing mode
for buffers
Related-To: NEO-12800
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
reducing the number of tests that have interactions with filesystem.
writeDataToFile() saves filename and content in std::map.
fileExistsHasSize() checks if file was previously written to virtualFileSystem
loadDataFromVirtualFile() fetches data from std::map based on filename
Related-To: NEO-7006
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
This is a deprecated and redundant entry but needs to
be preserved for compatibility reasons.
Related-To: GSD-10402
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
- EnableCompatibilityMode flag added
- validateTergetDevice func modified to take into account the flag
Related-To: NEO-11568
Signed-off-by: Wojciech Konior <wojciech.konior@intel.com>
Up till now, NEO ignored uknown attributes in zeinfo
which could lead to undefined behavior. With this change
NEO will emit an error whenever an unknown attribute is
encountered.
Note : old behavior can be restored using new
IgnoreZebinUnknownAttributes debug environment variable
Resolves: NEO-11762
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
Adding support for parsing sip_surface_offset in accordance
with zeinfo specification. This field is not used because
surface offset calculations are dynamic and zebin binary can
rely only on sip_surface_bti entry. However, failing to parse
this unused entry blocks NEO from moving to stricter
zebin validation.
Related-To: NEO-11762
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
Up till now, NEO ignored uknown attributes in zeinfo
which could lead to undefined behavior. With this change
NEO will emit an error whenever an unknown attribute is
encountered.
Note : old behavior can be restored using new
IgnoreZebinUnknownAttributes debug environment variable
Resolves: NEO-11762
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
Don't know if kernels will be initialized in the order needed to check
for indirect accesses in stack calls.
Remove now unused functionPointerWithIndirectAccessExists and reading
this value from zebin.
Related-To: NEO-12235
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
Original string section needs to be preserved so that
symbol table does not get broken.
Related-To: NEO-10190
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>