Commit Graph

73 Commits

Author SHA1 Message Date
Jobczyk, Lukasz
a69f393356 Use hwInfo from root device environment [2/N]
Related-To: NEO-3857

Change-Id: Iad6832f36ae8b0ea218acb6b38fe6ba46599b9d9
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-02-20 13:06:34 +01:00
Mateusz Jablonski
c3a33b6ca7 Group created devices based on product family
Related-To: NEO-4208

Change-Id: Ida9ec309a83d609d85778ac8ef6d838651f04cbd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-19 18:55:04 +01:00
Jablonski, Mateusz
ea172d2f24 Don't pass ClDevice to initSipKernel function
Change-Id: Ib7dd5445c4f95c9703755b5a81c2909dec394de4
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-19 13:51:27 +01:00
Filip Hazubski
3e3d2d3b3a Update sub devices related device info
Following parameter values are updated:
- CL_DEVICE_PARENT_DEVICE
- CL_DEVICE_PARTITION_AFFINITY_DOMAIN
- CL_DEVICE_PARTITION_MAX_SUB_DEVICES
- CL_DEVICE_PARTITION_PROPERTIES
- CL_DEVICE_PARTITION_TYPE

Change-Id: I6e2312f3a35aad038a0bebd430ca8f362f01f2a1
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-18 20:17:29 +01:00
Mateusz Jablonski
428b123bdd Create devices in DeviceFactory
Related-To: NEO-4208

Change-Id: I5e47f3dd75cf18d731a9353c8939ca3b6a99b4de
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-17 19:25:59 +01:00
Mateusz Jablonski
dff990659d Remove redundant initialization of aub center
Change-Id: I4e6a478f8bf5368fefddd40286786592e42fbcc8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-17 11:29:05 +01:00
Mateusz Jablonski
6f3a0e0e7d Move logic from initialization of platform to getDevices function
initialization of memory manager
overriding gpu address space

Related-To: NEO-4208
Change-Id: I366953898d9b4d9d139cccb48586a84771d1cee3
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-17 11:16:31 +01:00
Mateusz Jablonski
33c1a16f2f Initialize execution environment before creating platform
Related-To: NEO-4208
Change-Id: I3a242bfcc149aad01966693f99fbfc51ba71483d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-13 14:48:00 +01:00
Maciej Plewka
df59101dae Create base class for debugger in core
Resolves: NEO-4176

Change-Id: Iba48676fe145538c8213d21d514be38c702525c9
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-11 08:38:48 +01:00
Mateusz Jablonski
c739500047 Pass execution environment to Platform
Related-To: NEO-4208
Change-Id: Iec8c6bedfd4a3fce160651768fb45f74cf3a36e8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-10 10:08:55 +01:00
Filip Hazubski
d023d9ff02 Move core device objects to core
Change-Id: Iab6f00ea5cf2595cebc34c18286a6900b90aef92
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-07 14:35:14 +01:00
Maciej Plewka
52931156ed Move execution environment to Core
Change-Id: I3f5a1f5ef97f058f91d0be7e3c33df7fff04062e
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-06 15:00:37 +01:00
Maciej Plewka
0e2dad1ffb Move device factory to core
Change-Id: Ic98a75ed80fb9556465c9a6c93b1b1a9ba628200
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-05 16:34:14 +01:00
Mateusz Jablonski
66754c4849 Remove platformDevices from runtime
Related-To: NEO-4207

Change-Id: I70781b44e7d14360a581808049baf8b61fd1b4e4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-05 09:59:13 +01:00
Mateusz Jablonski
e77ed5f4fa Make platformImpl a vector
Related-To: NEO-4207
Change-Id: I85fa2d5a44160e1cf98321f9835a5173e59e479c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-04 15:29:19 +01:00
Filip Hazubski
5495a4b458 Add specializedDevice pointer to Device
Related-To: NEO-3938

Change-Id: Ic3386580a22c41f34c67949ccb7f7c6957c8f60d
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-04 12:32:14 +01:00
Mateusz Jablonski
0e3ab96298 Move compiler extensions to cl device
Related-To: NEO-4207
Change-Id: Ia220085260fbafb062e0e0aedca863eb64b079bd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-01-31 14:11:05 +01:00
Mateusz Jablonski
0a0b1ce1d8 Pass platform to ClDevice
Related-To: NEO-4207
Change-Id: I1c70d209df2b378573a41fa991ab594746691adb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-01-31 14:10:29 +01:00
Filip Hazubski
f80480de7f Move ClDevice to a separate file
Related-To: NEO-3938

Change-Id: I275b9285b70dac2c9bc52878f6e517e4f3e083b3
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-01-30 12:46:10 +01:00
Konstanty Misiak
fc5b98970c Moved files from gmm_helper to core
Related-To: NEO-4138

Change-Id: Ib7aecb1531cebbe34abb5c8e57067464726e9009
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-01-25 11:49:17 +01:00
Mateusz Hoppe
3c89cfc753 Move os_interface files to core
Change-Id: Ie708a944130884248499091854ebc483953fa828
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-01-22 14:50:51 +01:00
Filip Hazubski
8fcff2241f Add ClDevice
Decouple cl_device_id from Device class.

Related-To: NEO-3938

Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-01-17 12:43:11 +01:00
Dunajski, Bartosz
73697b7ab4 Add debug flag to override gpu address space
Change-Id: Ifce09cf2b0f1935ce15f1a718cff36b0c44848ca
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-12-17 15:01:35 +01:00
Mateusz Hoppe
f0a6f6b057 Move DebugSettingsManager to core
- pass registry path in constructor

Change-Id: I2a121da2c9483a0df088989feea490a638c63016
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-12-17 10:39:53 +01:00
Mateusz Jablonski
5fa53f4516 Move headers to core
- address_patch.h
- options.h
- registered_method_dispatcher.h
- grf_config.h

Rename OCL_RUNTIME_PROFILING -> KMD_PROFILING

Related-To: NEO-3982

Change-Id: I06cf72729e9d7d7d2ff0bd169fcbada00c4b509a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-12-10 12:19:29 +01:00
Dunajski, Bartosz
dfc50f3a75 Move gmm_helper to core
Change-Id: I31ca317d10697ab884e04f443c8ccfdd6ca9d2ae
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-12-04 15:25:32 +01:00
Dunajski, Bartosz
ec21f06427 Move GMM-OCL types conversions to new helper + includes cleanup
Change-Id: I13e5917a32a5cd894ee42a848407fe20bf1daa06
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-12-04 10:42:49 +01:00
Mateusz Jablonski
3e1b15c31d Move initialization of AubCenter to RootDeviceEnvironment
make RootDeviceEnvironments vector of unique_ptr

Related-To: NEO-3857

Change-Id: I23998502198307c8535cdd5c9c4af5223a5d69a5
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-19 11:30:16 +01:00
Filip Hazubski
5f021afd6d Move HwHelper to core directory
Change-Id: I2c78a8b737ee8e61b917b4918da37e77bbd9fe34
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-15 14:06:40 +01:00
Mateusz Jablonski
5a8f455a84 Remove csrsContainer from root device environment
improve mocking:
- add method to create RootDevice in Platform
- add method to create SubDevice in RootDevice
- add method to create CommandStreamReceiver in Device

Related-To: NEO-3691

Change-Id: Ie9fe3de260492604333c8ca93796bfbffae518c4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-13 10:05:09 +01:00
Mateusz Jablonski
d408b82a19 Move aub center and command stream receivers to root device environment
resize root device environments to 1 by default

Related-To: NEO-3691, NEO-3857

Change-Id: Idf3d61e84f8265f30381c18216632d0ffb2a16de
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-28 14:40:43 +01:00
Jaroslaw Chodor
28464ab2d4 [N/N] compiler interface refactor - move to core
Change-Id: I029e3cd7a6adde9df97a0a7760ecbf5d25d8f501
2019-10-22 19:14:09 +02:00
Mateusz Jablonski
b93817fe7c Use DeviceHelper to calculate number of sub devices
Related-To: NEO-3691

Change-Id: I390b7919fe8960b74cf290923f5daf128d824674
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-21 15:40:18 +02:00
Mateusz Jablonski
0a44dfcce4 Rename debug variable CreateMultipleDevices -> CreateMultipleRootDevices
Related-To: NEO-3691

Change-Id: I30eae4c5595e6e94aab726f8de2ae9b647406c91
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-17 17:57:58 +02:00
Mateusz Jablonski
af80a61db3 Add debug flag to create multiple sub devices
Related-To: NEO-3691

Change-Id: Ia3554424221e102094c40cdd5941680c6a253b18
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-09-11 10:25:21 +02:00
Jobczyk, Lukasz
882a216688 Move Debug helpers to the core dir
Related-To: NEO-3677

Change-Id: I2c98595190fadfa8ffd9e378e774c0d4485cbf9e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-05 16:00:35 +02:00
Mateusz Jablonski
c7c6068d1f Add classes for sub devices concept
Related-To: NEO-3007

Change-Id: I27dd4b91e286ba1b75f4b50bec96d98df37983e1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-08-27 15:38:10 +02:00
Raiyan Latif
ca74489172 Move string.h to core helpers
Change-Id: Ibaaab077ef2867b5e0db3bd215c261de9294063f
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2019-07-19 07:21:00 +02:00
Dunajski, Bartosz
0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
Dunajski, Bartosz
bb80d327c7 Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 16:11:01 +02:00
Maciej Plewka
9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
Jobczyk, Lukasz
9ecb3193af Reverse logic of creating Memory Manager - part 3
-Move a Device::getEnabled64kbPages method's logic
 to the Memory Manager constructor

Change-Id: Ide88898000e5817a79f9a6ad5dfc9d680bec0533
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-25 14:42:16 +01:00
Dunajski, Bartosz
7f2bf217f1 Refactor DeviceFactory::getDevices
Change-Id: If3b20cc8ed74bdb1c32ae17c23374b7c267933a3
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-20 15:25:36 +01:00
Stefanowski, Adam
341fcfc091 [1/n] Move Hardware Info to Execution Environment
- remove gmm_environment_fixture
- remove hwInfo parameter from ExecutionEnvironment methods

Change-Id: Ieb0f9b5b89191fbbaf7676685c77644d42d69c26
Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
2019-03-12 08:39:26 +01:00
Jobczyk, Lukasz
878fd43a1a Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method
-create MM from platform before creating devices

Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 09:47:29 +01:00
Filip Hazubski
8b57d28116 clang-format: enable sorting includes
Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-02-27 11:50:07 +01:00
Dunajski, Bartosz
ba681035f8 Add new CSR to ExecutionEnvironment
Change-Id: I5d6b58b5c185bf283ae529ebb21a4cbc8e9f198c
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-02-18 11:39:09 +01:00
Hoppe, Mateusz
0f36265f55 Pass CsrType to initAubCenter
- create AubManager with correct mode

Change-Id: I89c9c3c7edf553854b8b82788cec3dec53a62d79
2019-02-13 09:48:05 +01:00
Piotr Fusik
f014f27370 Support the EnableLocalMemory debug variable in CSR.
Change-Id: I902b06ab0b4a3df477d12804ba74b2727d8863f6
2019-02-12 13:09:23 +01:00
Mateusz Jablonski
ec18d7fee6 Add debug break in case of no synchronization between devices
Change-Id: If10ed848725b1101d67dbbac318f0aa283db1e2f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-01-10 13:23:06 +01:00