mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
refactor: cleanup around options files
This patchset improves handling of library names for NEO's dynamic dependencies. Related-To: NEO-12747 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8b7aa340ad
commit
d1ab846a5a
@@ -1,26 +1,8 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "igc.opencl.h"
|
||||
|
||||
namespace Os {
|
||||
// Compiler library names
|
||||
const char *frontEndDllName = FCL_LIBRARY_NAME;
|
||||
const char *igcDllName = IGC_LIBRARY_NAME;
|
||||
const char *libvaDllName = "libva.so.2";
|
||||
const char *gdiDllName = "/usr/lib/wsl/lib/libdxcore.so";
|
||||
const char *dxcoreDllName = "/usr/lib/wsl/lib/libdxcore.so";
|
||||
|
||||
const char *sysFsPciPathPrefix = "/sys/bus/pci/devices/";
|
||||
const char *pciDevicesDirectory = "/dev/dri/by-path";
|
||||
const char *sysFsProcPathPrefix = "/proc";
|
||||
|
||||
// Metrics Library name
|
||||
const char *metricsLibraryDllName = "libigdml.so.1";
|
||||
} // namespace Os
|
||||
#include "options_linux.inl"
|
||||
|
||||
26
shared/source/dll/linux/options_linux.inl
Normal file
26
shared/source/dll/linux/options_linux.inl
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "igc.opencl.h"
|
||||
|
||||
namespace Os {
|
||||
// Compiler library names
|
||||
const char *frontEndDllName = FCL_LIBRARY_NAME;
|
||||
const char *igcDllName = IGC_LIBRARY_NAME;
|
||||
const char *libvaDllName = "libva.so.2";
|
||||
const char *gdiDllName = "/usr/lib/wsl/lib/libdxcore.so";
|
||||
const char *dxcoreDllName = "/usr/lib/wsl/lib/libdxcore.so";
|
||||
|
||||
const char *sysFsPciPathPrefix = "/sys/bus/pci/devices/";
|
||||
const char *pciDevicesDirectory = "/dev/dri/by-path";
|
||||
const char *sysFsProcPathPrefix = "/proc";
|
||||
|
||||
// Metrics Library name
|
||||
const char *metricsLibraryDllName = "libigdml.so.1";
|
||||
} // namespace Os
|
||||
@@ -1,23 +1,8 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "igc.opencl.h"
|
||||
|
||||
namespace Os {
|
||||
|
||||
const char *frontEndDllName = FCL_LIBRARY_NAME;
|
||||
const char *igcDllName = IGC_LIBRARY_NAME;
|
||||
const char *gdiDllName = "gdi32.dll";
|
||||
const char *dxcoreDllName = "dxcore.dll";
|
||||
|
||||
// Os specific Metrics Library name
|
||||
#if _WIN64
|
||||
const char *metricsLibraryDllName = "igdml64.dll";
|
||||
#else
|
||||
const char *metricsLibraryDllName = "igdml32.dll";
|
||||
#endif
|
||||
} // namespace Os
|
||||
#include "options_windows.inl"
|
||||
|
||||
23
shared/source/dll/windows/options_windows.inl
Normal file
23
shared/source/dll/windows/options_windows.inl
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "igc.opencl.h"
|
||||
|
||||
namespace Os {
|
||||
|
||||
const char *frontEndDllName = FCL_LIBRARY_NAME;
|
||||
const char *igcDllName = IGC_LIBRARY_NAME;
|
||||
const char *gdiDllName = "gdi32.dll";
|
||||
const char *dxcoreDllName = "dxcore.dll";
|
||||
|
||||
// Os specific Metrics Library name
|
||||
#if _WIN64
|
||||
const char *metricsLibraryDllName = "igdml64.dll";
|
||||
#else
|
||||
const char *metricsLibraryDllName = "igdml32.dll";
|
||||
#endif
|
||||
} // namespace Os
|
||||
Reference in New Issue
Block a user