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
Jitendra Sharma
135851e218
Fixes for APIs zetSysmanDeviceGetProperties and zetSysmanProcessesGetState
...
This change:
- Fixes the problem of last character truncted from strings returned
by zetSysmanDeviceGetProperties() API.
- Fix ULT to validate them.
- Return UNSUPPORTED_FEATURE in case zetSysmanProcessesGetState()
fails to find required sysfs nodes in filesystem.
Change-Id: I4b18688c13b1971a1654a41a5a0ef1949330ed10
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2020-05-19 18:47:41 +02:00
Jacek Danecki
844a3e7f75
doc: update distributions lists
...
Change-Id: I6abfc8b481d2fb9add2145d96dec3e711c93cd34
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com >
2020-05-19 13:44:11 +02:00
davidoli
a1c06bd8c8
Add code for GTPin handshake at init time.
...
Change-Id: I1f572d9e036d4d5b5c6999518d40c9c4ba094649
Signed-off-by: davidoli <david.olien@intel.com >
2020-05-18 21:18:03 +02:00
Mraghuwa
b9b34659c8
Redesign ULT by mocking sysfs and implementing for frequency
...
Change-Id: I5979132fc775fe227ed83f4d49f932f4ce2800cc
2020-05-15 22:36:40 +02:00
Piotr Maciejewski
8f70ba916a
Disable Metrics Library after Metric Tracer usage.
...
Metric Tracer can use Metrics Library to generate gpu commands
for Metric Tracer marker. Closing Metrics Library will force it to reintialize,
so Metric Query can use Linux time based sampling stream exclusively
(needed to activate metric set or to obtain context switch/triggered reports).
Change-Id: I3105febfbbd78b537ef0688d1b9c08ab54f9a875
2020-05-15 22:13:18 +02:00
Jitendra Sharma
e61136d9bd
Fix invalid case style clang-tidy warning
...
Fix clang tidy warning reported, by modifying get_prop_length()
to getPropLength().
Change-Id: Ib3fc49b49f93cd7900e2556098ca64c2afe7014b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2020-05-15 22:07:38 +02:00
kamdiedrich
caef990788
Silence clang-tidy
...
Change-Id: I56abcad79d59164d2f7bf906fb34b0c8b4c03c13
2020-05-15 10:46:39 +02:00
Mraghuwa
070c9b060b
Redesign ULT by mocking sysfs and implementing for standby
...
Change-Id: Id2558122406f23e96e3115d57e7b82d04463bfc4
2020-05-14 19:41:28 +02:00
Jitendra Sharma
596c1a8e70
Implement zetSysmanProcessesGetState API
...
This change does the following:
- Implement API zetSysmanProcessesGetState.
- Implement ULT to validate zetSysmanProcessesGetState's implementation
- Redesign ULTs for zetSysmanDeviceGetProperties to mock only OS specific
classes, and validate zetSysmanDeviceGetProperties's implementation end
to end.
- Some bug fixes in code that are caught by these new ULTs
Change-Id: I4a83789771d32978576ff62859628df2c0c795ad
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2020-05-14 19:33:46 +02:00
Vinod Tipparaju
c98949fd37
Fix thread safety violations within runtime allocators
...
Change-Id: I925d15429de314e3d3287f41a054732181911851
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-05-14 16:27:55 +02:00
Mateusz Hoppe
ac426b5108
TBX csr downloads allocations on queryStatus calls
...
Change-Id: I57fd98f4227b6d03430db6b96cfd21dd726919a3
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-05-13 16:28:19 +02:00
Piotr Maciejewski
982c26202b
Metric query/tracer fixes.
...
1. Disable oa configuration cache on Linux.
2. Do not allow to create mertic query during tracer usage and vice versa.
Change-Id: I139416a92ac8604c8b46b254b533abf6038c2351
2020-05-12 22:58:22 +02:00
Jaime Arteaga
415954e7a7
Correctly use debug variable for enabling copy lists and queues
...
Change-Id: If7dd67e6d2f2aa49f15ca6ce0e6b2dac6ff8e04e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-05-12 21:16:01 +02:00
Jitendra Sharma
fe719f2665
Redesign ULT by mocking sysfs and implementing for scheduler
...
- Redesign the ULT to implement OSSpecific ULT by mocking only sysfs
- Fixing the Engine type "RCS" to use by default
Change-Id: I551374ab02da03fe2e4168fd6a30aa8ccaf3dd3e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2020-05-12 21:02:45 +02:00
kamdiedrich
080609e174
Add flush after write to CPU memory
...
Change-Id: I199c8b203f1afdf648f6520f13b0498efb760c84
2020-05-12 20:34:28 +02:00
SaiKishore Konda
fda985aa0e
Engine OSspecific ULT implementation
...
- by Mocking sysfs class and implementing OSSpecific(Linux)
Change-Id: I2eabf24e44e92b72e73bc323206776440b330b83
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com >
2020-05-12 18:18:37 +02:00
Filip Hazubski
6df11b5201
Enable OpenCL 3.0 enums by default
...
Related-To: NEO-4368
Change-Id: I3547d0adb47a870b33191b5c2356ad625d2a04c5
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-05-12 13:35:41 +02:00
Bill Jordan
b3b67c39b3
Implement zetSysmanFrequencyGetAvailableClocks.
...
Change-Id: Idb8e9edd89f3d3e228fb51501ae51a872bb60d23
Signed-off-by: Bill Jordan <bill.jordan@intel.com >
2020-05-08 19:03:03 +02:00
SaiKishore Konda
7c1eaadf50
Engine Sysman APIs using RCS Engine
...
- Fixing the engine sysfs node path
- Using default engine as RCS (compute) engine for engine APIs
- Updating the ULT for the same
Change-Id: If11aea422ac7e73b7f5fd0bc30d0918915d73848
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com >
2020-05-08 18:15:24 +02:00