Commit Graph

76 Commits

Author SHA1 Message Date
a9da118e11 Support gtpin when gtpin headers dir exists
Change-Id: Ib61ba3280d4780d13bef511ff10ba6c7e3ac6c9e
2018-08-17 01:48:37 -07:00
956ee41c71 Fix including gtpin headers
Change-Id: I6b39bee0398a74671b91a6109c7c390273decf54
2018-08-16 15:14:59 +02:00
5e9066170d Change include location of gtpin headers
Change-Id: Idd1e85b1946bad3af950cb9041d25ff5bc1aaf03
2018-08-16 12:06:22 +02:00
815bd9e027 Cmake: Remove Windows requirement when copying gmm dynamic lib
Change-Id: Ieba2f37fbb5aeca855a5ca3790efdaafe544b982
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-08-14 12:51:07 +02:00
571babf1d5 Add new macro _RELEASE_BUILD_WITH_REGKEYS
Change-Id: I679a17e99d7928b3caf10f80a581fb386aaf7751
2018-08-10 11:17:22 +02:00
16b7cd1a75 Move debug variables to new location
Change-Id: I2311f9b3f7bbe1a319c25ae3a99e5c41452faf90
2018-07-30 11:22:02 +02:00
142e52224d Upgrade c++ version with 14
Change-Id: Idbb80f1208a06dfbf91f6214929719833a622004
2018-07-23 13:53:54 +02:00
49d5ebef0d Simplify definition of I915 include path
Change-Id: Ic682452b399b6fd50e10af07b83eaa6730407214
2018-07-19 11:15:01 +02:00
36db75da28 Create gmm client context wrapper, reduce mock_gmm
Change-Id: I4eec4366afeb175fea4bf7934e3046b50fe30fe9
2018-07-17 11:46:04 +02:00
2589286d42 Change gmm_memory.h location
Change-Id: Ie4ebde5829794c37281034971639d166b128d755
2018-07-10 15:59:58 +02:00
e8424f242b don't enforce igc version from CMakeLists.txt
moving this requirement to .spec file. CMake should try building with
any IGC version installed in system. More strict requirement should be
defined at package level.

Change-Id: Ieae656fa0eac4069ee8870a829fe116e66ee5ced
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-07 10:16:54 +02:00
d83ff8f245 igc revision update
Change-Id: I9505f44274ffcc8b916fc5580bf76c8aa280d968
2018-07-04 16:09:21 +02:00
cb44a28f8e version.cmake improvements
- dynamically calculate NEO_DRIVER_VERSION for non-UNIX
- remove fixed NEO_DRIVER_VERSION from main cmake file

Change-Id: Ifab6182b1895086c1399f70112a4c9ad4cc66a0f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-04 13:06:59 +02:00
0a91c1e3a9 automatically detect driver major and minor version
Change-Id: Ibdf187ca336855ceca960dab1486cc668654495f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-03 11:49:30 +02:00
561cdb7df5 allow gmmlib to be detected using pkg-config
Change-Id: I9f706f100c9902b71a6bfa6465e17a68d26be49e
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:55:36 +02:00
97e5632eba Define Wddm version number
Change-Id: I177a689b1e282a8e185afac2865f369fede52b3e
2018-06-22 10:59:05 +02:00
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
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
b659d270ae Revert "Create wrapper for GmmClientContext"
This reverts commit 50c31872d8.

Change-Id: Id154ca2d217e5e45623750f641ebad5dc5e840a2
2018-06-21 16:14:45 +02:00
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
50c31872d8 Create wrapper for GmmClientContext
reduce mock gmm to implementation of OpenGmm function

Change-Id: I657412af2d11486c9924cf3ab9a8b4f51e603964
2018-06-21 10:17:46 +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
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
cc9e5a7943 Restore using compiler.config.h
define source level debugger dll name when it has empty implementation

Change-Id: I2a0938c8418da161f214735644f00f7873540f75
2018-06-12 17:02:51 +02:00
5007c60a03 Generate dll names to lib_names.h
Remove some not needed ifdef blocks

Change-Id: I29f787bde819a2f19312dd5713df0d4534a47cd8
2018-06-11 18:00:56 +02:00
98b8b4b6a4 Prepare to use gmm as dll on Windows
Since this commit neo on Windows can use static or shared gmm lib

Change-Id: I7db70d7f9bc969e8193ac77e8b6d65ecc57d0093
2018-06-08 17:35:01 +02:00
1e045e3e76 don't force IGC shared library name when building full-source
We respect library name passed from IGC cmakes

Change-Id: I030f0b473b51e6522613a19e00d84d0f2b254daa
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-30 15:45:27 +02:00
6abcc4a2a9 allow to build Neo with most recent version of Khronos headers
The structure of https://github.com/KhronosGroup/OpenCL-Headers.git has
changed recently and we have to adjust to new layout.
New flow is:
1. try old layout with opencl21 folder in repo, continue compilation
   if successful
2. try with new layout

Change-Id: Ia8c3eb76655aeef70512e9a03d74c72ba776fd4f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-17 11:21:32 +02:00
10e5b71111 dependencies cleanup
move gmock/gtest to third party

Change-Id: I96b43a3de2b6f2151659a9b2eed27eb58db5ce48
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-11 15:04:45 +02:00
7ddc571a11 Add build directory path for configured driver_version header
Change-Id: Ic092c2156b158377dc00c5c754827515ee2d290b
2018-04-27 10:17:05 +02:00
d71b46bdae Use configure_file for NEO_DRIVER_VERSION instead of source file property
Change-Id: I76888a7eb2a2c6e228306b5c740c55c6abff93da
2018-04-27 10:13:28 +02:00
82c9acddde Improve including common reg_configs header
Change-Id: I7fa22c2caffd0004269eb0d4f4fcdfd7621572af
2018-04-26 14:48:50 +02:00
5fbdad88c6 refactor config.h usage
- add defines to command line
- remove most occurences of include "config.h"

Change-Id: I19d65d83c895fc6143d319d057a50e5ae3e78830
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-04-26 10:02:15 +02:00
efda64eb4a Source Level Debugger - debugger library interface
- interface to debugger dynamic library
- code is included when source level debugger header exists,
otherwise implementation is exluded from build
- unit tests do not load real dynamic library,
instead test version (DebbugerLibrary) of OsLibrary is used.

Change-Id: Id3229c77963352e8001043ee41b7d48c6b180a59
2018-04-23 11:31:37 +02:00
12843c5eba use externally provided names of compiler shared libraries
Intel Graphics Compiler is preparing change to unify compiler naming.
They will expose two variables which we should use when loading compiler
libraries.

Change-Id: If6edcb7541452b3cd429a8b4f7c26f6d43169035
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-04-17 12:07:58 +02:00
1504d89571 switch to libva 2.x
- support for libva 1.x has been dropped

Change-Id: Ie5361b98cdd36144c9cd2a413c5fc2871655f333
2018-04-13 11:16:33 +02:00
a8597ac162 remove dependency on librt
- clock_gettime is provided by glibc

Change-Id: Ic76c272d31581538ef4c2ad7adc22f836437c642
2018-03-29 23:51:00 +02:00
9f5f0f64cb Revert "use externally provided names of compiler shared libraries"
This reverts commit 73e6846cda.

Change-Id: I2b39bb5b3186f14f1077c06adca8db242abf1e6b
2018-03-28 13:10:06 +02:00
73e6846cda use externally provided names of compiler shared libraries
Intel Graphics Compiler is preparing change to unify compiler naming.
They will expose two variables which we should use when loading compiler
libraries.

Change-Id: I49ea2ce9f4bb705ccd3fb8d2b19c61c0622e6c09
2018-03-28 10:35:53 +02:00
b93a208886 build system improvements
Change-Id: I7f43535f01638f9aef1b7b80a01d10b74cc8e0fd
2018-03-22 17:35:32 +01:00
9ce3a10248 Set custom build types for multi-configuration generators
Change-Id: Iae3fd3422a3b128a29ca11dab30c87dd546e05ab
2018-03-22 11:53:04 +01:00
c4c75e542e Set CMAKE_CONFIGURATION_TYPES only for MSBuild
Change-Id: I03edd2aef10d8aa6479f9209c67464658732c34a
2018-03-21 15:48:31 +01:00
507544a999 add i915 uapi headers
Change-Id: I8b19ebc56c5aa394758177641b2946f7fca13eff
2018-03-16 17:30:48 +01:00
e21e220540 Cmake refactor part 16
igdrcl_tests: define gen specific sources in subdirectories
libult: append gen specific sources needed to link hw tests

Change-Id: I72505729f1ff27439cd43904688de9c2cfbe080f
2018-03-16 14:07:37 +01:00
dede44f0dd cmake refactor to allow sub components to use the same settings
Change-Id: I7e8a1e51d27406e0a8f1eeb227374c2f938f028b
2018-03-15 09:30:58 +01:00
6674e93b69 further cleanup on ARTIFACTS_DIR
Change-Id: Iec2a5fed2e1626300425c09574a388806d4746e1
2018-03-09 08:37:11 +01:00
8c8b47026d Cmake refactor part 13
Cleanup offline_compiler/CMakeLists.txt
Cleanup unit_tests/offline_compiler/CMakeLists.txt

Change-Id: I1f4a2384ca64abd068b30a33ec643fa294ebaae3
2018-03-08 21:39:34 +01:00
50e17af9aa cmake: remove support for building icd as a part of our workspace
ICD is external component and is expected to be installed in OS. No need
to build it

Change-Id: Ibd9fda204e296d46a25133a7a512a786c3643809
2018-03-08 17:40:38 +01:00
a93154db1b remove ARTIFACTS_DIR support
not used anymore

Change-Id: I05adf3d0ac60ac425758df1480709d2e85076669
2018-03-05 21:49:00 +01:00
e6a956d7c9 update method to find Instrumentation library
search order is:
1. check if variable INSTRUMENTATION_LIB_NAME is set. if yes it will
provide lib name and target have to be present
2. check if source location was given. use it if yes
3. check if folder in workspace exists

When library is found then dependency is added to ensure build order
When none of above found support in Neo will be disabled (stub is used)

Change-Id: I9151f4002997ab5cfd1a397794f11cc18dfe44fa
2018-03-02 08:12:02 +01:00