Skip to content

Commit 87e948e

Browse files
gmmlib revision update
use new interface from gmmlib 19.4.1 Change-Id: Ie07bd9e9533c01ef06c67a4059a278850e365f07 Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
1 parent ff5546d commit 87e948e

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -8,5 +8,5 @@
88
#include "gmm_client_context.h"
99

1010
namespace NEO {
11-
GmmClientContext::GmmClientContext(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmDestroy) destroyFunc) : GmmClientContextBase(osInterface, hwInfo, initFunc, destroyFunc){};
11+
GmmClientContext::GmmClientContext(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmAdapterDestroy) destroyFunc) : GmmClientContextBase(osInterface, hwInfo, initFunc, destroyFunc){};
1212
} // namespace NEO

core/gmm_helper/client_context/gmm_client_context.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -11,6 +11,6 @@
1111
namespace NEO {
1212
class GmmClientContext : public GmmClientContextBase {
1313
public:
14-
GmmClientContext(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmDestroy) destroyFunc);
14+
GmmClientContext(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmAdapterDestroy) destroyFunc);
1515
};
1616
} // namespace NEO

core/gmm_helper/client_context/gmm_client_context_base.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -14,7 +14,7 @@
1414
#include "runtime/os_interface/os_interface.h"
1515

1616
namespace NEO {
17-
GmmClientContextBase::GmmClientContextBase(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmDestroy) destroyFunc) : destroyFunc(destroyFunc) {
17+
GmmClientContextBase::GmmClientContextBase(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmAdapterDestroy) destroyFunc) : destroyFunc(destroyFunc) {
1818
_SKU_FEATURE_TABLE gmmFtrTable = {};
1919
_WA_TABLE gmmWaTable = {};
2020
SkuInfoTransfer::transferFtrTableForGmm(&gmmFtrTable, &hwInfo->featureTable);

core/gmm_helper/client_context/gmm_client_context_base.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -25,7 +25,7 @@ class GmmClientContextBase {
2525
MOCKABLE_VIRTUAL void destroyResInfoObject(GMM_RESOURCE_INFO *pResInfo);
2626
GMM_CLIENT_CONTEXT *getHandle() const;
2727
template <typename T>
28-
static std::unique_ptr<GmmClientContext> create(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmDestroy) destroyFunc) {
28+
static std::unique_ptr<GmmClientContext> create(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmAdapterDestroy) destroyFunc) {
2929
return std::make_unique<T>(osInterface, hwInfo, initFunc, destroyFunc);
3030
}
3131

@@ -34,7 +34,7 @@ class GmmClientContextBase {
3434

3535
protected:
3636
GMM_CLIENT_CONTEXT *clientContext;
37-
GmmClientContextBase(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmDestroy) destroyFunc);
38-
decltype(&GmmDestroy) destroyFunc;
37+
GmmClientContextBase(OSInterface *osInterface, HardwareInfo *hwInfo, decltype(&InitializeGmm) initFunc, decltype(&GmmAdapterDestroy) destroyFunc);
38+
decltype(&GmmAdapterDestroy) destroyFunc;
3939
};
4040
} // namespace NEO

core/gmm_helper/gmm_helper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2019 Intel Corporation
2+
* Copyright (C) 2017-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -39,7 +39,7 @@ class GmmHelper {
3939

4040
GmmClientContext *getClientContext() const;
4141

42-
static std::unique_ptr<GmmClientContext> (*createGmmContextWrapperFunc)(OSInterface *, HardwareInfo *, decltype(&InitializeGmm), decltype(&GmmDestroy));
42+
static std::unique_ptr<GmmClientContext> (*createGmmContextWrapperFunc)(OSInterface *, HardwareInfo *, decltype(&InitializeGmm), decltype(&GmmAdapterDestroy));
4343

4444
protected:
4545
void loadLib();
@@ -49,6 +49,6 @@ class GmmHelper {
4949
std::unique_ptr<OsLibrary> gmmLib;
5050
std::unique_ptr<GmmClientContext> gmmClientContext;
5151
decltype(&InitializeGmm) initGmmFunc;
52-
decltype(&GmmDestroy) destroyGmmFunc;
52+
decltype(&GmmAdapterDestroy) destroyGmmFunc;
5353
};
5454
} // namespace NEO

manifests/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ components:
44
dest_dir: gmmlib
55
type: git
66
branch: gmmlib
7-
revision: intel-gmmlib-19.3.4
7+
revision: intel-gmmlib-19.4.1
88
repository: https://github.com/intel/gmmlib.git
99
igc:
1010
clean_on_sync: true

runtime/dll/linux/options_linux.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2019 Intel Corporation
2+
* Copyright (C) 2017-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -16,8 +16,8 @@ const char *frontEndDllName = FCL_LIBRARY_NAME;
1616
const char *igcDllName = IGC_LIBRARY_NAME;
1717
const char *libvaDllName = "libva.so.2";
1818
const char *gmmDllName = GMM_UMD_DLL;
19-
const char *gmmInitFuncName = GMM_INIT_NAME;
20-
const char *gmmDestroyFuncName = GMM_DESTROY_NAME;
19+
const char *gmmInitFuncName = GMM_ADAPTER_INIT_NAME;
20+
const char *gmmDestroyFuncName = GMM_ADAPTER_DESTROY_NAME;
2121

2222
const char *sysFsPciPath = "/sys/bus/pci/devices/";
2323
const char *tbxLibName = "libtbxAccess.so";

runtime/dll/windows/options_windows.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2019 Intel Corporation
2+
* Copyright (C) 2017-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -14,8 +14,8 @@ const char *frontEndDllName = FCL_LIBRARY_NAME;
1414
const char *igcDllName = IGC_LIBRARY_NAME;
1515
const char *gdiDllName = "gdi32.dll";
1616
const char *gmmDllName = GMM_UMD_DLL;
17-
const char *gmmInitFuncName = GMM_INIT_NAME;
18-
const char *gmmDestroyFuncName = GMM_DESTROY_NAME;
17+
const char *gmmInitFuncName = GMM_ADAPTER_INIT_NAME;
18+
const char *gmmDestroyFuncName = GMM_ADAPTER_DESTROY_NAME;
1919

2020
// Os specific Metrics Library name
2121
#if _WIN64

runtime/gmm_helper/gmm_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2019 Intel Corporation
2+
* Copyright (C) 2018-2020 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -21,7 +21,7 @@ void GmmHelper::loadLib() {
2121
gmmLib.reset(OsLibrary::load(Os::gmmDllName));
2222
UNRECOVERABLE_IF(!gmmLib);
2323
initGmmFunc = reinterpret_cast<decltype(&InitializeGmm)>(gmmLib->getProcAddress(Os::gmmInitFuncName));
24-
destroyGmmFunc = reinterpret_cast<decltype(&GmmDestroy)>(gmmLib->getProcAddress(Os::gmmDestroyFuncName));
24+
destroyGmmFunc = reinterpret_cast<decltype(&GmmAdapterDestroy)>(gmmLib->getProcAddress(Os::gmmDestroyFuncName));
2525
UNRECOVERABLE_IF(!initGmmFunc || !destroyGmmFunc);
2626
}
2727
} // namespace NEO

unit_tests/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ int main(int argc, char **argv) {
461461
#endif
462462
if (!useMockGmm) {
463463
Os::gmmDllName = GMM_UMD_DLL;
464-
Os::gmmInitFuncName = GMM_INIT_NAME;
465-
Os::gmmDestroyFuncName = GMM_DESTROY_NAME;
464+
Os::gmmInitFuncName = GMM_ADAPTER_INIT_NAME;
465+
Os::gmmDestroyFuncName = GMM_ADAPTER_DESTROY_NAME;
466466
} else {
467467
GmmHelper::createGmmContextWrapperFunc = GmmClientContextBase::create<MockGmmClientContext>;
468468
}

0 commit comments

Comments
 (0)