Commit Graph

32 Commits

Author SHA1 Message Date
50bedb75b2 Add override to SchedulerKernel destructor
Change-Id: Icf1d07dc3f0e9a4595093887995fd1f4c24b6f21
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-06-21 09:40:17 +02:00
0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
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
d4a0c4852b Move EngineType to aub_stream.
Change-Id: Ieaa75aaf4aca4487833754eb38ff709adcbf0f11
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-27 10:06:29 +01:00
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
7a7bb50328 Fix queue casts which cause spirv to die with assert
Fixes: intel/opencl-clang#46

This fixes ocloc build of scheduler.cl which dies with assert from spirv:
  SPIRV-LLVM-Translator/lib/SPIRV/SPIRVWriter.cpp:685

Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>

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

Change-Id: I5c9d4a75321008802b9d77ef4a6bad3812e1b8b4
2019-03-18 13:30:37 +01:00
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
b44c60ddc0 Use GPU addresses when setting up scheduler kernel's SVM args
Change-Id: Ia2d67d031ffce2413dd8c73d87c9d3d8f3d71ede
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-02-14 07:21:31 +01:00
d46969a7f2 Rename offline compiler: cloc -> ocloc
Change-Id: I0595bac4c7266e77bd2ee17588694233547c8315
2018-11-21 13:31:47 +01:00
bf10858f59 Fix SchedulerGWS debug print
- GWS size was not printed

Change-Id: I80347e91cc53f8cb220172e69e1a67404894149f
2018-10-25 23:26:12 +02:00
97c56b9de0 cmake: refactor cloc invocation
Change method used to pass options to cloc when compiling scheduler and
precompiled kernels. Instead of plain variable use list() which is more
convenient and flexible when generating build system.

Change-Id: Ieb90defc24a66932250dd610691650880ba1be76
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-16 10:40:46 +02:00
40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00
8123c8b08f Log and print computed SchedulerKernel GWS
Change-Id: I5781ffc0dcc8cd762d433384f250173b6aee42a4
2018-08-07 13:32:31 +02:00
0a1c4a5e41 Fix double scheduler compilation.
Change-Id: I16814bf4f027df67bf2b518077076aea93c52cf0
2018-07-12 12:22:20 +02:00
0c094c05e5 Limit scheduler kernel GWS to one workgroup in SimulationMode
- add ftrSimulationMode to FeatureTable
- set GWS in computeGws() when isSimulation() is true

Change-Id: Id3fb55ada4c8c5d8216a2b89d0878dc5cd1697ad
2018-07-11 17:20:24 +02:00
f82b88e5bf Device enqueue - fix global pointer increment in scheduler in 32 bits
- global pointer address is stored as ulong so 8 byte increment is
required in 32 bit

Change-Id: I1c3df1c402223ed957124c8d7522570936cbcee3
2018-07-03 12:00:08 +02:00
bc2403acfd allow IGC to be discovered by pkg-config
New detection flow:
1. check for IGC__IGC_TARGETS and respect if defined -> IGC available
2. on Linux try using pkg-config to find IGC
   - package can be part of workspace, in this case we have to tweak
     some variables
3. check whether igc folder contains CMakeLists.txt and do
   add_subdirectory if yes.
4. IGC not available -> fail

other changes:
- rename compiler.config to match name from IGC devel package

Change-Id: I6c2369f8b83db66327d76c9b08af833736e8a3f9
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-20 13:13:58 +02:00
0c849944aa Device Enqueue - fix misaligned reads in scheduler kernel
- scheduler kernel shouldn't read ulong data from addresses
not aligned to 8 bytes,

Change-Id: I90cccefe2db424eff66cdda610321a8170338023
2018-06-19 15:16:34 +02:00
52209b5487 Add SchedulerGWS debug variable
- SchedulerGWS forces gws for scheduler kernel - useful when using
TBX server
- Fix misaligned scattered write in scheduler kernel when
SchedulerSimulationReturnInstance is set to value > 1
- Fix copy_test_files dependecy - modification of files in test_files
triggers copy_test_files targets

Change-Id: Ieee2ddec67f6c61ab942d764c7ad076b3b6ca887
2018-06-06 13:38:37 +02:00
abbc0a5471 Compile kernels per platform type (core/lp)
compiled kernels are in (binary dir)/(family name with type) folder

Change-Id: Ied1827ab7f4ecc5c1de4c3535b1c0ba3b5cd86ee
2018-04-26 16:47:15 +02:00
e3b1ba2112 Cmake refactor part 21
Add macro to simplify iteration for gens, platforms and test configs
Common usage:
1. Write macro "macro_for_each_platform", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER, PLATFORM_IT, PLATFORM_IT_LOWER
2. Write macro "macro_for_each_gen", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER
3. In macro "macro_for_each_gen" call "apply_macro_for_each_platform"
4. Call "apply_macro_for_each_gen" with gen type (SUPPORTED/TESTED)

When needed iterate over test configurations:
1. Write macro "macro_for_each_test_config", you can use variables from
   parent macro and SLICES, SUBSLICES and EU_PER_SS
2. In macro "macro_for_each_platform" call "apply_macro_for_each_test_config"
   with specified type (AUB_TESTS/MT_TESTS/UNIT_TESTS)

Change-Id: Icd537f409a224a1ffade1874065f8fee66189350
2018-03-26 17:51:34 +02:00
575d1bf381 Cmake refactor part 20
set global properties with runtime sources, libult sources and
os interface tests

Change-Id: I9a84edf2f021b4581a16c19c7dbb0b2f94c33f4d
2018-03-23 15:51:12 +01:00
029094437a Change identification of gen families from number to type
Change-Id: I780528aeb2572fc95d8cd9a20eba26687156726b
2018-03-21 19:22:46 +01:00
059104adef Fix for double scheduler compilation.
Change-Id: Ia265686354b288dc4817909f58680e1824079ad2
2018-03-15 15:55:35 +01:00
d6cc695c9c cmake: properly set variable inside function
Change-Id: I6a7060077dd9deced16ac031b8242c3e5a78e679
2018-03-15 08:50:40 +01:00
a78111c892 cmake cleanup
- remove unused cmake code
- small cleanup around scheduler compilaiton
- remove misleading message related to compiler copying
  message is generated before copy_if_different operation and may be
  incorrect when such copy doesn't happen

Change-Id: Ia419d1ea26e9149b4282dc4883ddda0232ffd3f4
2018-03-06 08:04:40 +01:00
d1aa5f978d Cmake refactor part 6
Add macro to add all subdirectories
Add macro to create project source tree based on target sources
Small cleanup runtime/CMakeLists.txt

Change-Id: I9b99145c544f648c4c3fe7421752d0c5d9504edf
2018-03-02 00:39:41 +01:00
e3268f8a9c Revert "Allow custom props settings."
This reverts commit f43a04d3b2.

Change-Id: Ib4cd854c19fe96b0ea9d5e3782d1247c265927c9
2018-02-23 16:01:31 +01:00
f43a04d3b2 Allow custom props settings.
Change-Id: Idd442f429e8f413cde67781995e0c1b1c010bcee
2018-02-21 12:16:35 +01:00
430c991179 Cmake refactor part 4:
Move scheduler binary target definition to scheduler/scheduler_binary.cmake
Move builtins binary target definition to built_ins/builtins_binary.cmake
Move builtins and scheduler sources definition to CMakeLists.txt files

Change-Id: Ieb71133f4238b4db66a46c1bd01d6a8e5abaf0f7
2018-02-16 11:43:20 +01:00
b0a41b81bb cmake cleanup
moving build targets for better layout in solution explorer.

Change-Id: I6514f321f15991f88833e02b3c8af6327d35b74b
2017-12-21 10:29:13 +01:00
7e9ad41290 Initial commit
Change-Id: I4bf1707bd3dfeadf2c17b0a7daff372b1925ebbd
2017-12-21 00:45:38 +01:00