Commit Graph

210 Commits

Author SHA1 Message Date
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
Jaime Arteaga
ac443acbc9 Create Level Zero command queue based on queue desc ordinal (2)
Improve ULTs

Related-to: NEO-4590

Change-Id: I73a554d25f1cbce93d7ed6b356a495951204d09a
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-08 17:31:42 +02:00
kamdiedrich
fa8a5d6451 Add programming crossThreadData for image and sampler
Change-Id: I3322548c60e11d0d0bf2f2b5d76f5932032fe569
2020-05-08 10:02:10 +02:00
Aravind Gopalakrishnan
d176462fb0 Use memcpy for getting and setting event values
Direct pointer dereference may not yield expected results

Change-Id: I872dd837ae21bc8a0e1833527cc9a8791cad5295
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-05-07 16:03:16 -07:00
Jaime Arteaga
77791ba889 Create Level Zero command queue based on queue desc ordinal
And correctly return the number of engines available.

Related-to: NEO-4590

Change-Id: I637b3a94473e146003ea5e1c86d38e311406ce7e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-07 12:10:54 +02:00
kamdiedrich
b7e65150d3 Add the missing keyword and ASSERT
Change-Id: I74f371a4cf7dec808e9bf6ecffbda578e93ef5fd
2020-05-07 11:46:12 +02:00
Katarzyna Cencelewska
ae17fdf63b Add tests for builtin to L0
Change-Id: Ic6ab3dd6b249b339412c71d2d393dbf34e45371d
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-05-07 10:25:46 +02:00
Mateusz Hoppe
ef4fae3903 Enable TBX mode in level zero
RelatedTo: NEO-4644

Change-Id: I76913d6b7c7d978a5a90a7a574778c67283497c1
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-06 16:33:15 +02:00
Jaime Arteaga
0c1282ab82 Add levelZeroSupported field to RuntimeCapabilityTable
So initialization fails gracefully when Level Zero is
executed in unsupported platforms.

Change-Id: I06bd9f00260ebb1266108bd4ccee7abbc9275200
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-06 07:59:46 +02:00
Mraghuwa
562e45db81 Add sysman ULT for level zero
Change-Id: I3fafb5efb03a933ea27f43c1954497791e862115
2020-05-06 03:16:58 +02:00
Raiyan Latif
031ea89465 Return silently when memory hint/prefetch unsupported for alloc type
Change-Id: I26324d47358ebcfe2d5af9e4fb22448e7e453d15
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-05-06 01:18:43 +02:00
Jim Snow
f0c7f5f5de Propagate errors in ModuleImp::createKernel
Change-Id: I71612013e27315841103ceaf1de9ea11c1876ac6
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-05-05 11:56:28 -07:00