Commit Graph

77 Commits

Author SHA1 Message Date
Filip Hazubski
43dba9de4a Move MockDevice to shared
Change-Id: If3a4ea2bb3f47bcb8176516977a626517f25a49f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-03 08:23:06 +02:00
Jaime Arteaga
8f5533dafc Correctly rename Level Zero functions as kernels
Change-Id: I8bc079a737171246fa62c759f594c3e841a2fcf8
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-04-03 07:59:58 +02:00
SaiKishore Konda
a0c13490e5 Memory API's boilerplate for Level Zero Sysman
- Implementing MemoryGet, MemoryGetProperites & MemoryGetState
boilerplate  for Level Zero Sysman

Change-Id: I46661aac9cd6974af986aede7484fd59688046a4
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-03 02:35:14 +02:00
Zbigniew Zdanowicz
f096d71a75 Add diagnostic mode to direct submission
Related-To: NEO-4338

Change-Id: Ibcdc1b6a1762827337e4ff5364a972702130195a
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-04-02 17:50:59 +02:00
Bill Jordan
a2a7501b79 zetSysmanStandbySetMode is not settable from L0
Change-Id: I05d60f960c9cb89b3d53259067e05e8f20e9b602
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-02 17:40:24 +02:00
Bartosz Dunajski
bf702c274d Rename duplicated filenames
Change-Id: Idccfc149dda13a9932699c7c376b11d8bc1d4198
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-04-02 17:39:47 +02:00
Jablonski, Mateusz
05c29816c8 Minor fixes for private memory in KernelImmutableData
correct root device index of allocation
fix typo in KernelImmutableData destructor

Related-To: NEO-3691
Change-Id: I8633dace1863521514e29c32a8033e8f7bb04dac
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-04-02 16:50:49 +02:00
Mateusz Hoppe
36eec1fe8b Add more cmdList unit tests
Related-To: NEO-4515

Change-Id: I0bb41e108731c605b820fe4a63fb818c9ad67abe
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-02 16:34:18 +02:00
Maciej Plewka
08546b65c7 Reset kernel properties before filing with proper values
Change-Id: I039659d3c5a7146fd9fe8251259f715923df3a82
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-04-02 16:10:46 +02:00
chmielew
62ef24c52a getExtensionFunctionAddress - use lookup map
Change-Id: I8fac8d65da12a2703129419d87ad6592260dce5a
2020-04-02 14:44:49 +02:00
Filip Hazubski
d0527e1049 Rename memory_constants.h to constants.h
Change-Id: I05b5d20bac12935dc6625b94adc3a03c98c19b49
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-02 14:19:39 +02:00
Mateusz Hoppe
a2e58ed707 Add API commandList tests
- introduce mock_cmdlist

RelatedTo: NEO-4515

Change-Id: Ic267b28e780d0c65565ed29a1fb659c41843cf48
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-02 13:43:21 +02:00
Piotr Maciejewski
c6cd582f78 Enable Performance Counters for OCL and L0.
Change-Id: I1920b9d406c092fbc26fc6ca27766db297a1958b
2020-04-02 12:04:56 +02:00
Mateusz Jablonski
c294747979 Move methods from DriverHandle to Device
allocateMemoryFromHostPtr
allocateManagedMemoryFromHostPtr

add mock driver handle

Related-To: NEO-3691
Change-Id: Iee8a167e248871b3b5fc495bd79b3b5654fb1bbc
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-01 20:37:43 +02:00
Filip Hazubski
a7e4ad4eba Add unspecifiedDeviceIndex constant
Change-Id: I146e9c80ce0d18aae5e56fadf83f5e1603173fd7
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-01 20:37:05 +02:00
Lukasz Jobczyk
d1bc7199de Switch to 3D pipeline to program selected commands - part 2
Resolves: NEO-4447

Change-Id: I1dd6a9694cdf3be19aadec1cd139c466baecbcd7
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-04-01 10:42:55 +02:00
Bill Jordan
5d756b7b15 Add FsAccess::getFileMode and SysfsAccess::getFileMode methods
Change-Id: I4dddf1b3983e63ef6ad664009ebd20d474c8cc17
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-01 09:14:40 +02:00
Mateusz Hoppe
0791b25214 Move cmd parse files to shared directory
Related-To: NEO-4519

Change-Id: Id055631d68f1d73ae39c4976843080b8f8e05f1c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-31 23:31:29 +02:00
Jaime Arteaga
39ae402d12 Move DeviceFixture to fixtures folder
And add test_cmdqueue

Change-Id: I5d61d4e826397e75d8d4e50d39a0a96316600c08
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-31 08:53:13 +02:00
kamdiedrich
f417c13534 Cleanup image implementation
Remove unused functions
Remove dead code
Add static functions
Add new formats support
Add unit tests

Change-Id: I95ac1ca1997d4968ce350a0cde169b13cae58edb
2020-03-30 14:02:35 +02:00
Mateusz Hoppe
6dc5810c7f Add more cmdlist tests
Related-To: NEO-4515

Change-Id: Idc0e0cdab97cb1a2437c212cbe8ae2bcf673125f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-27 18:26:47 +01:00
Aravind Gopalakrishnan
6c4621f2ec Fix issue in events
alloc was previously potentially never used

Change-Id: I9da9aeb51dcf7881d51bb62ef35c9427c8cc3ef0
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-03-26 23:02:57 +01:00
Mateusz Hoppe
9ad71b47b6 Add unit tests for level zero CommandList
Change-Id: Ie6dc0fb9177188873aef96670d7e933a15af75cf
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-26 09:13:11 +01:00
Artur Harasimiuk
a086310a4e cmake: fix GTEST_SHUFFLE setup
Change-Id: I1a6cc40445afafbcf6c13dce292a6a7cf6b1ec5f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-03-25 16:18:35 +01:00
Mateusz Hoppe
5954dbdda4 Move tests_configuration.h to shared
- add ult configuration to level zero core tests

Change-Id: Ie291395adb607df8c558b924e32ce2cedbce3f93
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-25 13:03:06 +01:00
Jaime Arteaga
d96e462754 Reorganize Level Zero Core API files
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-25 11:21:43 +01:00
Mateusz Jablonski
0379ad9f67 Remove platformDevices variable
Resolves: NEO-4499
Change-Id: I7197c416fb81571a5929cf611f3da32c5b24fe46
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-25 07:09:14 +01:00
Bill Jordan
7c489ac60d Implement zetSysmanDeviceReset
Implemented function level reset.

Implementation is:
Make sure we are root (otherwise, return insufficient permissions)
Make sure no one has the device open
    (otherwise, return hande object in use)
Close our file handle
Unbind the device from the kernel driver
Make sure no one still has the device open
    (otherwise, kill them)
Perform function level reset (FLR)
Rebind the device to the kernel driver

Change-Id: Ic57b95487e73b5a5f2d03e619d813bf4199adf40
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-03-24 18:26:45 +01:00
Bartosz Dunajski
70d50616d0 Fix execution mask programming for SIMD1
Change-Id: I50a9acb8ec5f9875085bb54eea1c154ed50f22af
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-03-24 15:47:55 +01:00
Mateusz Hoppe
bcecb99006 Remove redundant copy of hardwareInfo in main.cpp
Change-Id: I0c741bd953c3db7f9e6b8603f2fd23a16583bdf0
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-24 15:28:02 +01:00
Mateusz Hoppe
8978fcce3d Enhanced unit tests for level zero
- add mocks
- link test with driver library
- add debugger test

Related-To: NEO-4500

Change-Id: I33313553c3f10ab899fd13447d1091f223e79a87
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-24 12:45:11 +01:00
Bartosz Dunajski
03ee001445 Set valid number of bits in execution mask
Change-Id: I65c3f8cab2f7f86ce36fe476a221242ba5e73b68
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-03-24 12:02:09 +01:00
Mateusz Jablonski
6082cb3aeb Rename platformDevices -> defaultHwInfo [1/n]
create new variable defaultHwInfo as a std::unqiue_ptr<HardwareInfo>
replace platformDevices with defaultHwInfo in opencl/test/unit_test/api

Related-To: NEO-4499

Change-Id: I75b924e5b8a3a18f4ff9fdc3e598192569e102f7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-24 10:59:20 +01:00
Piotr Maciejewski
e438da0f92 L0 Metrics Api fixes:
1. DEBUG_BREAK_IF instead of UNRECOVERABLE_IF.
2. Proper oa configuration deinitialization.

Change-Id: I2b966fb627d4a79ad1c0a1589b9e0916ea640545
2020-03-23 22:37:20 +01:00
Mateusz Hoppe
307a5cb822 Link tools and experimental sources to object library
Related-To: NEO-4480

Change-Id: I16da4434ec24753eabdb1bce9e38ed2e1e83ed6c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-23 08:57:19 +01:00
Raiyan Latif
dd53734c0d Return appropriate error code on invalid group size dimension
Change-Id: I3a068286cbc28b224c4c67cee2e81e65e253c924
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-03-23 01:40:32 +01:00
Artur Harasimiuk
211375e898 cpack: packaging refactor
Change-Id: I47f9b4b83b4deb8bdaab62c7367c48908878c807
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-03-21 14:12:43 +01:00
Artur Harasimiuk
95ab4ec538 cmake: dead code removal
Change-Id: Ic6aa5b7dfee4d94baead312a73e144ef83d44427
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-03-21 11:37:34 +01:00
Raiyan Latif
8f68af8f82 Add initial symbol exports file to Level Zero
Change-Id: Id437219e615110f46869db5473599cca3bc16d79
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-03-20 18:45:00 -07:00
Mateusz Hoppe
a7cd7f49c9 Fix ze_intel_gpu linking
- link NEO_CORE_SRCS_LINK

Related-To: NEO-4480

Change-Id: I1f0c422db12fa2cc258465ab1c538fcce3bf5db2
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-20 14:31:04 +01:00
Jaime Arteaga
508cadf00a Remove CL types definitions from Level Zero
Change-Id: I6a3b208e4741e61ef418672b7b575032ea78175c
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-20 13:45:18 +01:00
Jaime Arteaga
03ce6681a0 Remove __cplusplus macro
Change-Id: If4a6fed58707ac3cbe9c5f8c6f89227b34fb763e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-19 10:29:51 +01:00
Mateusz Hoppe
aecb689c81 Create object library for ze_intel_gpu
Relatet-To: NEO-4480

Change-Id: Ie3b8d18f257b023d8f84713b5231f41ed1ccb21a
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-19 09:16:31 +01:00
Filip Hazubski
e1381f89d7 Move DeviceInfo to a separate file
Related-To: NEO-3938

Change-Id: Ia255bd41a5dc8e521fe6aca3924b90be003ff93b
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-03-18 18:12:22 +01:00
Matias Cabral
76d3504823 Level zero metrics, do not fail deactivating metric_query
Do not abort during class destruction of the metrics query

Change-Id: If7caca14944f176bf082e0325a96d84cde111fd1
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-03-18 01:22:46 +01:00
Artur Harasimiuk
100431f85a merging packaging stuff into package.cmake
- remove duplicated set()
- calculate and setup dependencies in single place

Change-Id: Ibaf939512ad82f12638a18657bd8608e4e061555
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-03-17 17:23:50 +01:00
Jitendra Sharma
a5082656ca Remove systemCmd from sysman
Change-Id: I8821d5a9712984076264f6521a9b7fe9cac5cd8e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-03-17 17:07:14 +01:00
Mateusz Hoppe
a179f14412 Cleanup ze_intel_gpu_core_tests
- add subdirectories

Related-To: NEO-4480

Change-Id: Ic0a5b983a42b8735d655a9a945426814a363db54
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-17 15:10:03 +01:00
Mateusz Hoppe
1444d98575 Debugger support in L0 fixes
Related-To: NEO-4404

Change-Id: I733b3018606b243989d9ba382da9d06bedbae799
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-17 14:31:59 +01:00
Jaime Arteaga
462f3cdda8 Cleanup comments in Metrics (2)
Change-Id: I1393b14e35d9624cbb22613ae2c21c6361df24fe
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-16 12:07:22 -07:00