Commit Graph

2162 Commits

Author SHA1 Message Date
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
Plewka, Maciej
2b269caca9 Add Ult target for level_zero
Change-Id: I5b18b6f495eda302ba96287d7bd6cc0b2bbe48ac
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-03-16 14:28:58 +01:00
Raiyan Latif
43433244f9 Enable support for indirect allocation access to Kernels
Change-Id: I3ded8cce3761a38aa4a4d71b4089f79c844311c5
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-03-15 22:13:19 +01:00
Jaime Arteaga
95ad7c682a Set Level Zero version to 0.8.0 (2)
Change-Id: I65ab594c838c1fb8bd3e2d452ae7f9329f6406e9
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-15 08:16:02 +01:00
Aravind Gopalakrishnan
8cabedfe3d Fix global start timestamp to provide full 36 bit value
While at it, resize events to 16 bytes since it's sufficient
to work across HW families.

Change-Id: I3459926373468246991c141bd96288dba834695b
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-03-14 00:09:51 +01:00
Jaime Arteaga
ca08896884 Set Level Zero version to 0.8.0
Change-Id: I0dce7d9b540e65decf5b813ac823a602e8670edd
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-13 23:54:55 +01:00
Matias Cabral
7bc4b572cd zetSysmanDeviceGetProperties report unknown driver version
Sysman API for device properties will report unknown driver
version to avoid spawning new process in the system

Change-Id: I4edde9d9670773e339125c71bae6947575789a19
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-03-13 10:55:26 -07:00
Dunajski, Bartosz
7fd91182b6 Revert "Add Ult target for level_zero"
This reverts commit a748d7ccf5.

Change-Id: Ifc49e45a93d42f7ae355fbf2a2d993538a1f71fe
2020-03-13 15:44:47 +01:00
Maciej Plewka
a748d7ccf5 Add Ult target for level_zero
Change-Id: I43cfd536fc14c3d632289a00e9d82c23176b32a3
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-03-13 13:33:04 +01:00
Raiyan Latif
dbb2f1b8c9 Add const suffix to hasIndirectAllocationsAllowed()
Change-Id: I6b84410cc3804d8fa889aeb32128b250f4464757
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-03-12 12:25:34 -07:00
Raiyan Latif
f8a4e67ec0 Add helper function for checking kernel memory attributes
Change-Id: I1abcf5209ddc0e5ec3ecb1281d4521dcc8dbe745
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-03-12 11:38:20 -07:00
Kacper Nowak
b94ce17cb4 remove magic numbers + add reg_global_timestamp to helper
Change-Id: I8a42139ef73586edc7f826750f7d6582e1750cad
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2020-03-12 16:04:49 +01:00
Jaime Arteaga
d9d27cd4ed Remove parameter validation from tools API
This is implemented in the loader

Change-Id: I88fa59c47f0c0c178bc9e920b4a97e9302b2ffb9
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-11 17:24:25 -07:00
Jaime Arteaga
548a6d1d37 Remove parameter validation from core API
This is implemented in the loader

Change-Id: Ic114f569c4e3ebe6e667f6d89f14af21a1f14123
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-11 16:53:12 -07:00
Filip Hazubski
5ac8d8e667 Add ClDeviceInfo
DeviceInfo contains a subset of ClDeviceInfo values.

Related-To: NEO-3938

Change-Id: Idae4fae4d25e1fb3106d8b95294fa70ebc6281df
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-03-11 16:45:27 +01:00
Mateusz Hoppe
c5454d6cce Rename neo_core to neo_shared
Change-Id: Ibf263a1c5a2445156859a647248918d3db48498b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-11 16:05:19 +01:00