aed890a219
Move files between shared/test/unit_test and /common (fixtures, helpers, mocks)
...
unit_test/fixtures/mock_aub_center_fixture.h -> common/fixtures
unit_test/helpers/raii_hw_helper.h -> common/helpers
unit_test/helpers/static_size3.h -> common/helpers
unit_test/helpers/ult_limits.h -> common/helpers
unit_test/memory_manager/mock_prefetch_manager.h -> common/memory_manager
common/mocks/mock_aub_stream.h -> unit_test/mocks
common/mocks/mock_csr_simulated_common_hw.h -> unit_test/mocks
common/mocks/mock_direct_submission_diagnostic_collector.h -> unit_test/mocks
common/mocks/mock_lrca_helper.h -> unit_test/mocks
common/mocks/mock_tbx_stream.h -> unit_test/mocks
common/mocks/linux/mock_os_context_linux.h -> unit_test/mocks/linux
common/mocks/windows/mock_wddm_direct_submission.h -> unit_test/mocks/windows
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-11 12:53:19 +02:00
a6c1d9578e
Move files between shared/test/common/helpers and shared/test/unit_test/helpersi
...
unit_test/helpers/cmd_buffer_validator.h -> common/helpers
unit_test/helpers/gtest_helpers.h -> common/helpers
common/helpers/blit_commands_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests_pvc_and_later.inl -> unit_test/helpers
common/helpers/state_base_address_tests.h -> unit_test/helpers
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-10 15:23:12 +02:00
5a3a39a281
Experimental support for OCL debugging with L0
...
- initial changes
Related-To: NEO-7075
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-07-12 12:57:15 +02:00
819e0f5515
style: configure readability-identifier-naming.LocalVariableCase
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-05-16 12:39:44 +02:00
3d8effcd69
Clean-Up unused code related to GMock
...
This commit:
- Removes usings e.g. ::testing::Return
- Removes unnecessary gmock inclues
- Replaces Gmock macros (e.g. EXPECT_THAT) with our custom implementations
Related-To: NEO-4941
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2022-03-22 16:16:34 +01:00
21ef249961
Move ocl extensions logic to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-11-04 17:38:15 +01:00
3f94399dbb
Cleanup builtins dependencies
...
move builtins builders to ClExecutionEnvironment
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-19 17:29:28 +02:00
bf25853799
Move some mocks to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-12 21:46:53 +02:00
acf3e58a64
Move wddm_fixture.h and releted files from opencl to shared
...
Related-To: NEO-5894
Signed-off-by: Piotr Obst <piotr.obst@intel.com >
2021-07-07 12:30:12 +02:00
3bd4bca911
Copyright header update
...
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com >
2021-05-17 20:38:19 +02:00
86f63bb2ed
Check supportsMediaBlock capability in ocloc
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2021-05-13 18:57:05 +02:00
3759035b4c
Unify size of extern array
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-05-12 10:11:48 +02:00
902cce597a
Add new functionality to load SIP from file
...
Related-To: NEO-5718
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-04-23 13:48:26 +02:00
8a700c5187
Move non-ult shared files to single directory
...
Add SKIP_SHARED_UNIT_TESTS flag
Related-To: NEO-5201
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2021-02-10 21:03:13 +01:00
6c4b1f951c
Do not force cl_khr_3d_image_writes extension when compiling kernels
...
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled.
Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-11-27 17:20:46 +01:00
59b74a8ea3
Do not provide -cl-feature option to the compiler
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-11-17 18:17:34 +01:00
c678f3d9b0
Make DeviceBitfield argument constant
...
Related-To: NEO-5225
Change-Id: I14a5a4cc3394cd2b58a74bda183c734a0d17ac25
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-10-30 13:45:32 +01:00
30a67618f8
Add DeviceBitfield argument to CSR constructor
...
Related-To: NEO-5225
Change-Id: I8cf0aef3ec16314cfb1a787852b6c20ce0f65955
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-10-28 17:10:31 +01:00
7d0f23bfc9
Enable OpenCL 3.0 by default on all devices
...
Change-Id: Ic5e46177c957896c499b7aa6727af48105b664ac
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-10-07 16:44:10 +02:00
60430d79ee
Update OpenCL C features reporting to the compiler
...
Pass features also with -cl-ext option.
Change-Id: I1a1c68b655a2108be51c7d57be771591ee0b14e7
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-10-05 10:27:30 +02:00
f3e9e943a3
Add new feature macros
...
New feature macros are:
__opencl_c_images
__opencl_c_fp64
__opencl_c_int64
Change-Id: Ibe4b01ea9799db1f201dc379a37cb661754795db
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-09-08 12:13:53 +02:00
40d487fa90
Add global destructor of platforms
...
Change-Id: I7f0c9a9a13cae5cbf831e0d4e410c78c001a75d1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-09-01 17:26:17 +02:00
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2020-08-19 16:36:30 +02:00
af556aa65f
Enable cl_khr_il_program on all platforms
...
Change-Id: Ifb05a7768d3c203dd5f8e32dabcf5f8c5bcac3ad
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com >
2020-07-08 17:57:21 +02:00
7fa7654d47
ULT renaming: Platform tests
...
Related-To: NEO-2236
Change-Id: I9989ab1e3bf0dd7197d7cd6ad0f8e5c728b8edb8
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com >
2020-07-06 18:07:48 +02:00
45f0bc56bc
Add options when building the program
...
Report "-ocl-version=300" when OCL 3.0 is enabled.
Report "-cl-feature=" with list of supported features.
Related-To: NEO-4368
Change-Id: I9aee559ed53541a0f0c1a2a004926d9d29a53d94
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-06-18 18:54:50 +02:00
fe13f0b522
Move IFP support flag to RuntimeCapabilityTable
...
Remove HwHelper::isIndependentForwardProgressSupported function.
Related-To: NEO-4368
Change-Id: I97061620ee6e96c4666bb8af5f009129ff0d9175
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-06-18 16:51:58 +02:00
8fd40b090d
Add supportsOcl21Features value to capability table
...
Related-To: NEO-4368
Change-Id: If176d3be7c47d9d9ab70beebe664f2d569997501
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-05-05 15:02:50 +02:00
fd195f0967
LoopAtPlatformInitialize renamed to LoopAtDriverInit and triggers earlier
...
Related-To: NEO-4526
Change-Id: I13067badfbaf9f46c993b08126fb35e53d68f6d3
2020-04-28 13:47:04 +02:00
52704236bd
Disable cl_khr_subgroups extension on gen12.
...
Resolves: NEO-3622
Change-Id: Idab55e5fb6a51ea0a08714f447bb9fce85f1dbcd
Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com >
2020-04-03 11:27:24 +02:00
43dba9de4a
Move MockDevice to shared
...
Change-Id: If3a4ea2bb3f47bcb8176516977a626517f25a49f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-04-03 08:23:06 +02:00
385482e3fc
Move VariableBackup to shared
...
Change-Id: Ib7e316f8d497f1854d977b6420f8c978de58c9ab
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-04-02 13:42:41 +02:00
3b4276c8f7
Move AsyncEventsHandler to ClExecutionEnvironment
...
Related-To: NEO-4207
Change-Id: If859f995aae57ac03de13d57cc5a38c97303bbb4
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com >
2020-03-31 15:42:07 +02:00
9022912a6d
Check for image support in VA media sharing
...
Related-To: NEO-4473
Change-Id: I6015d67215267b1dcde1e885cf3696af10ea5e7d
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2020-03-31 07:29:13 +02:00
b3553c36dc
Revert "Disable cl_khr_subgroups extension on gen12."
...
This reverts commit f99aaf4795
.
Change-Id: Iee3434ecd8b235719ff7e4b6bad9fb0cc2deaf59
Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com >
2020-03-26 09:58:58 +01:00
f99aaf4795
Disable cl_khr_subgroups extension on gen12.
...
Resolves: NEO-3622
Change-Id: Iaf94e262c8342c70c1b8c0f966020b3159a3cccf
Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com >
2020-03-25 17:48:35 +01:00
25aea40e84
Remove platformDevices from os_interface, platform, program, sharings
...
and source_level_debugger
Related-To: NEO-4499
Change-Id: I09c28e8c167b00b80eaff8f86c8e58cea78ed3b1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-03-24 22:09:57 +01:00
7a2310163e
Remove platformDevices [2/n]
...
replace **platformDevices with *defaultHwInfo
replace *platformDevices[0] with *defaultHwInfo
Related-To: NEO-4499
Change-Id: If973ceb44ede2e940969f9c666f85d9a939fbff8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-03-24 15:26:34 +01:00
fe851da327
Rename device directory
...
device directory is renamed to cl_device.
Related-To: NEO-3938
Change-Id: I96794c82632d042da6814550597d805df7bb6436
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-03-24 14:35:21 +01:00
819896bca2
Remove Platform::getDevice function
...
Related-To: NEO-3938
Change-Id: Ib93df97573ef2984913e057d165a84404349fd63
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-03-23 08:28:27 +01:00
a5c4ad1e2e
Remove unnecessary includes from MockDevice files
...
Related-To: NEO-3938
Change-Id: I3805bcedcdd95828b79e9b6a6bd572f20234d7de
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-03-19 21:47:34 +01:00
9cc4d6fba1
Move debugger to root device environment
...
Resolves: NEO-3857
Change-Id: I216ef0cfc4ed7e1ab67261378905c6c0ec40a17f
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-03-13 10:07:17 +01:00
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
4d045a613d
Expose all created platforms
...
Sort devices properly
Related-To: NEO-3691
Change-Id: I23eb3caccb3161fef022ec5ab3674847770226c8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-03-11 07:30:06 +01:00
7cf57e04f9
Move builtins and compiler interface to RootDeviceEnvironment
...
Resolves: NEO-4355
Change-Id: Id1a3365673165d775a60a7e0a3f463e1b8f5a496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-03-05 13:22:22 +01:00
ffed348f3b
Correct accessing cl device from Platform
...
don't use root device index to store cl device in Platform::initialize
Related-To: NEO-3691
Change-Id: I1fc5435e0246e241c4a38060de26f5c0369a1873
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-03-02 09:09:34 -08:00
9dbeeea18f
Clang-format: restore sorting includes
...
Change-Id: I34eb993b562c77f56d8fbd51a02ee266c1f76678
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-02-24 10:22:30 +01:00
ee5ebde417
Add absolute include paths
...
Change-Id: I5b8631603b0f0b2ed8eb1a61f7e7770b27867423
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-02-24 01:21:00 +01:00
7df9945ebe
Add absolute include paths
...
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-02-23 23:49:12 +01:00
370424a1e0
Change core inlcudes
...
Change-Id: Iaec903af420f0a92f7d86e484c83300fb9c531ad
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-02-23 18:46:50 +01:00