Commit Graph

290 Commits

Author SHA1 Message Date
Artur Harasimiuk
b817c9abfa add missing override
Change-Id: I2db6b415fd4c79f7040452380d9e340780a6ad78
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-06-15 20:47:08 +02:00
Mateusz Hoppe
0d7d2c0be0 Fix casts between Device, DeviceImp and device handle
Change-Id: Ib267239cd041aa812e7d4d7e5cda6daf5b4b6d2c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-15 15:51:18 +02:00
Jaime Arteaga
59da9598aa Return INVALID_ARGUMENT for system-allocated pointers in kernelSetArg
Change-Id: I5ad50f8d60c5a54aedf24484a65400352ec855df
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-14 19:21:49 +02:00
Jim Snow
5dc7c2368e Improve error handling for unsupported image creation
Change-Id: I4aeec25f32164b8cf71a78d742b7de254e97aed2
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-06-11 15:05:23 -07:00
davidoli
95aaac204d Add missing mutex for retired tracers iterator
Change-Id: I795d353f66628a89fc3054f9622640deef1e18c7
Signed-off-by: davidoli <david.olien@intel.com>
2020-06-11 11:24:17 -07:00
Jaime Arteaga
1a89335386 Add reg key for enabling cross device access
Change-Id: Iede7bc8c6fc2ea7fd8594b6b3e2ffb40820d303b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-10 22:11:44 -07:00
Jaime Arteaga
775ce2cbee Expose devices according to ZE_AFFINITY_MASK (2)
Read the env var in hexadecimal format, as spec defines it,
and allow for empty string to be the same as default value.

Change-Id: I201c81733ac3d55a5c9ba50b42e28a8cf3414a6d
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-10 10:28:48 -07:00
Mateusz Hoppe
d55a0ae5c6 Detect enable program debugging env variable
Resolves: NEO-4713

Change-Id: Id9ce30b84943c4b364f7756a430d58df2614a28b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-09 15:23:20 +02:00
Jitendra Sharma
8dff60b6a5 Report correct PCI width from API zetSysmanPciGetProperties
If system reports incorrect PCI width, then check width against valid
value, and report correct PCI width accordingly.

Change-Id: I56f8fe96785ccd22032860d55dd96b81d5fc53f7
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-08 19:34:51 +02:00
SaiKishore Konda
16ee26f20d Add support for zetPowerGetEnergyCounter
Change-Id: I497e025690401ced668d653db4e0052852b6e570
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-06-08 17:40:49 +02:00
Mateusz Jablonski
57d0967a2c Pass root device index to MemObj::getGraphicsAllocation method
leave parameterless method in Buffer and Image classes

add method to remove graphics allocation from MultiGraphicsAllocation

Related-To: NEO-4672
Change-Id: I3020eecfabe9a16af7f36d68a74b32d3f4fc2276
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-05 13:18:03 +02:00
Cetnerowski, Adam
18e8e51990 Revert "Generate .cpp based on .spv builtins for Level Zero use"
This reverts commit 950c3633f7.

Change-Id: If69d3e92ceb5f64b52d86df182a9e8980a8cf847
2020-06-05 11:04:49 +02:00
Katarzyna Cencelewska
c2295bfb4b Add new method appendSamplerStateParams
to L0
Change-Id: Ia6328799334b56fea91bc244fbc2a91acc65bed1
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-06-05 10:05:48 +02:00
Mraghuwa
46b069b9d0 Redesign ULT by mocking sysfs and implementing for memory
Change-Id: I24206628212284f180fe4e5a239ab2ed58ffa8ea
2020-06-04 23:07:42 +02:00
Kacper Nowak
950c3633f7 Generate .cpp based on .spv builtins for Level Zero use
Change-Id: I97f3f948db865ba0ec93ff06cffb7e1f7ef5896a
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2020-06-04 15:35:26 +02:00
Artur Harasimiuk
5121760d57 move initialization of BUILD_WITH_L0 to top level cmake
Change-Id: I8576c7e330a07c534e0aa642abee0fe49cf32a5d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-06-03 18:18:09 +02:00
Jaime Arteaga
935e30322a Avoid searching for active tracers when tracer data is null
Change-Id: I1f4c8932cc6ed9668054e348f5d282bfe794f161
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-02 23:58:30 +02:00
Jitendra Sharma
1780cc01e3 Add support for zetSysmanTemperatureGetState API
Change-Id: I8c41cec6e2c7e69489882df7fc05352caef503c7
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-02 22:57:45 +02:00
Maciej Plewka
008af5b6e4 Add event profiling for copy commandLists
Change-Id: I9f13e48b4139b3ce3c802c2d38b0ce054e64562c
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-06-02 19:35:13 +02:00
Mateusz Jablonski
39b61b5928 Add .clang-tidy file for level zero and shared tests
add some extra checks for clang-tidy in tests:
- clang-analyzer-core.StackAddressEscape
- clang-analyzer-core.uninitialized.Assign
- clang-analyzer-core.NonNullParamChecker
- readability-identifier-naming.StructMemberCase

Change-Id: Ib8f82d5555f65635f2e7a6f82287bd480a508a7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-02 19:05:35 +02:00
Jacek Danecki
4c72491a8a ci: remove support for Fedora 30
- Fedora 30 is EOL

Change-Id: Ic3b6db4cf77d6e8bbadc7e4f2dcb78c369406db8
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2020-06-02 16:40:08 +02:00
Mateusz Hoppe
2b0114846e Add getComputeEngineIndexByOrdinal function
Related-To: NEO-4710

Change-Id: Idaf84e2b5df608582b32602a6fc987e889173eac
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-02 16:23:53 +02:00
Aravind Gopalakrishnan
6ee7c6d77c Use correct allocation type for timestamp events
Change-Id: I82dc122fd78045d548f95262c2155eab1b1eae39
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-06-02 12:24:12 +02:00
Mraghuwa
b6ccfed471 Redesign ULT by mocking sysfs and implementing for pci
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
2020-06-02 08:46:10 +02:00
Jaime Arteaga
e25eb4057c Make sure CommandList methods are called within it
When calls are originated in CommandListImmediate objects,
CommandList calls may be rerouted back to CommandListImmediate,
causing executeCommanListImmediate() to be called twice.

Change-Id: I8cea4500de4d10c9ebeb9af7b5ffe00a733fa4dd
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-01 14:32:19 -07:00
Mateusz Jablonski
b674b4aff7 Add missing override in Mock<Driver>
Change-Id: Ie07bc3c7c947bb5ba8b1cfd5fd380a7c1a40d2cf
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-01 15:09:07 +02:00
Jaime Arteaga
390ec9fd71 Return ZE_MEMORY_TYPE_UNKNOWN for non-runtime allocated pointers
This aligns more to spec definition

Change-Id: I3f6aaf50945ef82fa5ffe8f400972e944ad03e2b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-01 09:45:07 +02:00
davidoli
c18939c7aa Simple fix for potential memory leak.
Change-Id: I3cb96ce810e5cd83fe3ce55182f39c6fc2264629
Signed-off-by: davidoli <david.olien@intel.com>
2020-05-30 00:39:41 +02:00
Mateusz Jablonski
91dc953e1c Add virtual destructor to L0::Driver
Change-Id: Iaeebe3e45a172daa028111f6dd1d741ca6a24969
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-29 14:59:42 +02:00
Mateusz Hoppe
f4ef256900 Program hardware context in L0 command queue
Related-To: NEO-4577

Change-Id: I204a5e86ad3b23b71071bbbfd58c23a408f6865f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-29 13:07:38 +02:00
Raiyan Latif
cb6823b1bd Allow for overriding the reported FP64 support in L0
Change-Id: Ib876e00e198c07dbae7b921e1e7dc2b142aee049
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-05-28 22:04:02 +02:00
Mateusz Jablonski
f0ef0d4d78 Remove redundancy from ModuleImp class
NEO::Device can be obtained from L0::Device
use modern API for MOCK_METHOD in Mock<Module>
remove not needed clang pragma from mock_module.h

Change-Id: I993fc77ee7cae56b3f21d6a60601fd649f984032
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-28 17:51:00 +02:00
Jacek Danecki
3871ced268 doc: add information about OpenSUSE Leap 15.2 repository
Change-Id: I3764576b9776e94a0f85dee69a8ca1dcea9c17a5
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2020-05-28 14:32:53 +02:00
chmielew
3e8f05d702 remove kernelHeader from HeapInfo
Change-Id: Ic2d441df15a7f75b5f3ef41d484969148e59715f
2020-05-28 03:59:49 -07:00
Jaime Arteaga
276269788b Add support for thread arbitration policies to Level Zero
Change-Id: I6bbb2ff75dbd930b72a4f60acb0c3a9f372671cb
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-28 11:40:05 +02:00
Piotr Maciejewski
79c14983cb Sending Metric Tracer activity flag to Metrics Library.
Needed to make Metrics Library aware of Metric Tracer presence.

Change-Id: I3e3108e6b303adfcf5ab56ccadc2a8acc58f7ff5
2020-05-28 09:55:32 +02:00
Jaime Arteaga
5b0a2ee09b Add support for specialization constants in Level Zero
Change-Id: Ifc1255365f4f25e83c5c6128f2ea4d8994e0ae8b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-27 19:18:45 +02:00
Jaime Arteaga
a90553b9e4 Remove non-used parameters from appendLaunchKernelWithParams
Change-Id: I13d033ffec74a639d308493cb3b399029de2c036
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-27 09:01:46 +02:00
macabral
86105d7e77 Disable copying Linux OS sysman class
Update the Linux os class not allow copying
by usage of  NEO::NonCopyableClass.

Change-Id: Icc0d40eaa83d7a46ec0d48a5fc9deb5c57c0e3f8
Signed-off-by: macabral <matias.a.cabral@intel.com>
2020-05-26 11:37:52 -07:00
Konstanty Misiak
8d65ab4ce4 Move shared tests to the new target [1/n]
Change-Id: I2101864b190f2672e8c71430bda0d30d345c9d8f
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-05-26 15:07:05 +02:00
Katarzyna Cencelewska
f4759425b9 Modify makro HWTEST2_F and HWTEST2_P
to not call SetUp and TearDown when not matched

Change-Id: I00b43a738fa3b33ba743f4f92f8ee16674bf9a50
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-05-23 14:10:46 +02:00
Maciej Plewka
89195ca4a3 Add support for copy images by bliter
Change-Id: I0082fafb3363c6c6eb6973e5e35fa4d3ba1b6465
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-05-22 17:24:34 +02:00
8tab
7937da71f6 Fix build with USE_ASAN=ON
Signed-off-by: Mateusz Tabaka <tab.debugteam@gmail.com>

https://github.com/intel/compute-runtime/pull/314

Change-Id: I2b699df3f158b961a1a329fb81de8cd7115d06bc
2020-05-22 13:17:50 +02:00
Robert Krzemien
9b3dd97f81 Passing drm file descriptor to Metrics Library
Change-Id: I16b566ba262e0eeff9cb62b2a6ecc48811cdee48
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-05-21 18:33:51 +02:00
Maciej Plewka
9131eeca09 Add MI_FLUSH for eventReset in copy only cmdList
Change-Id: I276ec874069e075e1712d813530ba64ab712262a
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-05-21 16:19:32 +02:00
Jaime Arteaga
42200bf7f3 Correct tidy issues
Change-Id: I3421f825c3f688491390d2c0305ff02b13fdcbec
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-20 16:17:24 +02:00
Jaime Arteaga
b2688554ce Correct alignment of events
Change-Id: I967bb5e201df5b881c4d1914d74258e6ceda373f
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-19 23:27:22 -07:00
Jitendra Sharma
68084042e5 add support for zetSysmanTemperatureGetState
-- add ULT support to validate temperature APIs.

Change-Id: I32bb576f81859f0f7ee22f9a63b0d1a8f192f790
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-20 07:50:49 +02:00
Jaime Arteaga
8ce44b0689 Expose devices according to ZE_AFFINITY_MASK
Change-Id: Ic8025a818b006c25f790688ef51bda6eeb4f03ad
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-19 19:35:46 +02:00
SaiKishore Konda
80f9b5e45a add support for zetSysmanPowerGetEnergyCounter
-- add ULT support for power

Change-Id: I37ebebb62c3433a1efe106d6b6546955a2d6effb
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-05-19 19:20:36 +02:00