Commit Graph

794 Commits

Author SHA1 Message Date
Jacek Danecki 01fccf26a9 ci: switch Arch build to gcc8 on Semaphore
Change-Id: I764a902b89c84b318429198fa72bd138b4452a49
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-28 13:48:38 +02:00
Artur Harasimiuk 317e6c08f4 use GNUInstallDirs to detect locations
Change-Id: I288a0420caaaa6965e1e7f2f6f1a1491682d407a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:40:10 +02:00
Mrozek, Michal b20bcb8b31 Move platform shutdown to destructor.
Change-Id: Ifeca1c5fe11d8e562b9f4641737b6bf1ac70aac6
2018-06-28 12:36:23 +02:00
Mrozek, Michal b7545f1401 Decrement context ref count as a last action in program destructor.
- There are various calls to device inside destructor.
- Memory manager is protected via device , which is protected by context.
- If context is destroyed it means that device may be destroyed, which means
that memory manager may be destroyed and we have a seg fault.

Change-Id: I2cb6a69790f53bf2c9fba89160078b009e105574
2018-06-28 09:01:51 +02:00
Mrozek, Michal 887df5a90d Add reference on device while creating a context
- Context uses device, it needs to make sure it exists.

Change-Id: I1aeaabc53b6198965dc8f4e6fa37585490774a3f
2018-06-28 08:53:23 +02:00
Zdanowicz, Zbigniew d447c8c951 Add trailing space to compiler extensions string
Change-Id: Ib9e2f33916dd1475defc60bfc297ef36fc87eb03
2018-06-28 00:38:55 +02:00
Jacek Danecki f5baa783de ci: add findutils package to Fedora containers
Change-Id: I04be3d7a40b63ac81265c22796cb39cd11bbe895
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-27 22:57:27 +02:00
Jacek Danecki 934f30fadf ci: find directory containing IGC
Change-Id: I1fa9d3505fe65ac96a1919cf8c2af22abc3544b7
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-27 18:13:48 +02:00
Dunajski, Bartosz e18e9fb94e Move static methods from Gmm to new GmmHelper class
Change-Id: I84fbe94f0e1072324164086b456c71a46ae5040c
2018-06-27 16:46:09 +02:00
Mrozek, Michal a95cca71e4 Device now adds dependencies on ExecutionEnvironment
- This allows for ExecutionEnvironment to live longer then platform after
its global destruction
- Device adds references to ExecutionEnvironment after creation
- When device is destroyed it removes the dependency causing the cleanup
- Platform upon destruction no longer destroys the device, but decrements
the internal ref count.

Change-Id: I22593ea44b2b50e3416575a9e97e3ce0a1f8b5c0
2018-06-27 16:37:29 +02:00
Artur Harasimiuk bc7aa63a37 package: respect CMAKE_INSTALL_PREFIX
don't force /opt/intel/opencl which is location of legacy Intel OpenCL
driver. Use CMAKE_INSTALL_PREFIX to install driver in location where
user wants

Change-Id: I2b55a2ec8129a06ee6a0e97a7adcfa69084e3502
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-27 15:15:45 +02:00
Kamil Diedrich 3b726b76ee Remove enabling preemption watermark
Change-Id: I2de768907193c8b2b104536ce9972743a2af7d92
2018-06-27 15:03:21 +02:00
Hendrik Ranocha 5d357fb646 fixed typo in cl_intel_va_api_media_sharing.md
https://github.com/intel/compute-runtime/pull/56

Change-Id: I8479fa18d17cb4cdd0379de2b52590ec384b4615
2018-06-27 14:03:14 +02:00
Mrozek, Michal a21c0a0074 Add control on platform life cycle.
Change-Id: I5c24b41747d822b71dd57e9a949cf25fcc78a453
2018-06-27 10:09:26 +02:00
Mrozek, Michal 0f91c3bc47 Update internal.
Change-Id: Id9cd2d4016bd32b577c049e504667023a3de75f3
2018-06-27 09:34:53 +02:00
Koska, Andrzej 4a4ad6460c Revert: Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: Ifd0a26f58b748df5e43e57b4e0be6b94c2051890
2018-06-26 17:05:26 +02:00
Mrozek, Michal fc8d3d9ee4 Use locally allocated platform in platform tests.
Change-Id: If69d1d9d09a9bcd1f215dc562d1c15681bef3f41
2018-06-26 15:08:36 +02:00
Mrozek, Michal 686209874a Remove not used parameters in PlatformFixture SetUp function
Change-Id: Ib58c97e377218350cea19373dd1f193c4cc32a45
2018-06-26 15:00:27 +02:00
Koska, Andrzej b563e07394 Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: I4f6afbdd4d86ab2958de29cf49aaed9b8e2ea642
2018-06-26 14:43:08 +02:00
Mrozek, Michal 77ad97d2c5 Do not test global platform.
- change the test to use locally allocated object

Change-Id: Ie0818a4791d03d8f9004aba312f58fa0746c608b
2018-06-26 14:36:59 +02:00
Mrozek, Michal 8672360766 Do not test global platform.
Change-Id: I3d6c1b9e9002d1913867db4930bcfefc5bb4a2fd
2018-06-26 13:00:32 +02:00
Mrozek, Michal aa486c52da Update internal.
Change-Id: I8412478a7ef7f7a46f53723d1ddc1b5d5180a10c
2018-06-26 10:51:22 +02:00
Artur Harasimiuk 993bdc4ea0 added rpm spec file
Change-Id: I33ad32d9a61636dc32b5d06d3143030a7cad953c
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-25 23:39:55 +02:00
Mateusz Jablonski f0c9619919 Start using gmm dll on Windows
Change-Id: I83518f778f1ef7f80a20772941db0ed51ca33d24
2018-06-25 23:25:25 +02:00
Jacek Danecki f3caf5f59a ci: fetch git repository without limits
- default depth=50 is to small to get the latest tag

Change-Id: I108f48865736c5afbd6e1e53648101a5f70701f8
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-25 21:35:55 +02:00
Jacek Danecki c238a4d31e Add support for Cannon Lake (Gen10) platform
Change-Id: I0e63960887cdae9ba74c1ba91ad27101e22b458a
2018-06-25 15:48:12 +02:00
Godek 24ba7a0dbf using mock registry in Wddm23Tests
prevent reading from Windows registry in unit tests

Change-Id: I83f5d6f1db03aac4bc09665f8900606c07e757a5
2018-06-25 13:52:36 +02:00
Zdanowicz, Zbigniew 52d03a110c Reorganize files in GEN8 family
Change-Id: Iafd0e34e8eaa9564a0811235bb513a8ec91b606d
2018-06-25 12:44:45 +02:00
Mrozek, Michal 0edf910d9f Update internal.
Change-Id: Icf6d30c9693a33796c3ffe0ea1cd6c7fcd789d52
2018-06-22 15:08:02 +02:00
Kamil Diedrich d0ff0d5b40 Add check for MidThread preemption in test
Change-Id: I07ddc27cbd964adb992e91f3f3397751a1231ab7
2018-06-22 14:51:44 +02:00
Mrozek, Michal a0e9b96e52 Add execution environment.
- this class will encapsulate common shared state
- platform will create it
- clients will increment ref count
- platform upon destruction will decrement ref counts
- it means that execution environment will be capable of living longer then
platform in case there will be dependencies.

Change-Id: I0ea7f85ea57448c0e641673f1d15851e50b2b8b2
2018-06-22 13:15:10 +02:00
ocldev 8e53a137c4 dependencies update
Change-Id: I4de7209cb75b885331f2df5db5138f101be1fd7d
2018-06-22 12:27:38 +02:00
Mateusz Jablonski 97e5632eba Define Wddm version number
Change-Id: I177a689b1e282a8e185afac2865f369fede52b3e
2018-06-22 10:59:05 +02:00
Artur Harasimiuk 3d43fe6c97 set required version of igc-opencl package
Change-Id: I7b2194bd7c396082a70c4eeff4d78ee74b752258
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-22 10:50:54 +02:00
Artur Harasimiuk fee08985dc properly handle includes when IGC__IGC_TARGETS is defined
Change-Id: I518a33ae97950467965126e55bc93e644e439934
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-22 09:19:29 +02:00
Milczarek, Slawomir fb10f666e9 AUB CSR: Ensured PTE bits be set correctly for Global GTT
This commit fixes the issue with setting reserved bits in PTE for GGTT.

Change-Id: I08582e20914419a3363c9e61085dcf03ba355a61
2018-06-21 22:23:01 +02:00
Mrozek, Michal 3e65a39c62 Move device name to device scope.
Change-Id: If7df4c8f97fa6b0c6f9449ae6802386c639241c2
2018-06-21 17:53:42 +02:00
Jacek Danecki ca87805ba0 ci: fetch all tags before build
Change-Id: I60a0f782dd37ecb3ae1e6282a0ba6de856a0ec3a
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-21 17:34:01 +02:00
Mateusz Jablonski b659d270ae Revert "Create wrapper for GmmClientContext"
This reverts commit 50c31872d8.

Change-Id: Id154ca2d217e5e45623750f641ebad5dc5e840a2
2018-06-21 16:14:45 +02:00
Artur Harasimiuk 8c504c05e6 Infrastructure update
Change-Id: I4026e380a295911b977398b56736c00d47aceb18
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-21 13:45:32 +02:00
Mrozek, Michal 5c0a562a6b Simplify platform initialize.
- Remove not required parameters
- move the logic to ult directories

Change-Id: I913f1048489137a61220d96fa9f2798572cd4f56
2018-06-21 12:46:35 +02:00
Artur Harasimiuk 6540a9c96b do not generate igc.config.h when igc-opencl package was found
this file will be provided by IGC development package when present. We
should generate it only for other cases

Change-Id: Ic11f8c74e4f0a4575b654d0afdfa7336e1fdc7d6
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-21 12:27:51 +02:00
Mateusz Jablonski 50c31872d8 Create wrapper for GmmClientContext
reduce mock gmm to implementation of OpenGmm function

Change-Id: I657412af2d11486c9924cf3ab9a8b4f51e603964
2018-06-21 10:17:46 +02:00
Jacek Danecki 861d001cba overwrite offsets for shared images
Change-Id: Id21eb40bc9a2e067f42094a989291d6339e753ac
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-20 18:48:47 +02:00
Mrozek, Michal e47344ec0e Add debug flag CreateMultipleDevices.
- This flag allows to create multiple devices from the same GPU

Change-Id: I4b80e4759543ca4559549b2d26c5ddef241f9ebb
2018-06-20 18:33:32 +02:00
Artur Harasimiuk 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
Hoppe, Mateusz 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
Artur Harasimiuk a203b0c32e add opencl headers to third party
Change-Id: I8a1a7c3b371ca3aa118d3e4a7e989b0f6c08f374
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-19 13:33:22 +02:00
Jacek Danecki 33ec97148d use image offsets from libva instead of Gmmlib
Change-Id: I6f5fcfa1eb41e53abbc64e52ce38c81b7337e027
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-19 11:11:36 +02:00
mplewka 4e802fdb93 Update GTPin headers revision
Change-Id: Iaca7433bb11b4da129a7d5b3ea837eec20821ac7
2018-06-19 09:57:02 +02:00