mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Reduce binaries sizes 2/n
Observed about 50MB reduction in overall binaries size (directory build)) when building all targets with MSVC (Visual Studio 2022 17.3.0 preview 6) using Debug 64 configuration. Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
75c0a2f7ee
commit
6993ed5c52
@@ -14,24 +14,24 @@ namespace EBuiltInOps {
|
||||
|
||||
using Type = uint32_t;
|
||||
|
||||
constexpr Type AuxTranslation{0};
|
||||
constexpr Type CopyBufferToBuffer{1};
|
||||
constexpr Type CopyBufferToBufferStateless{2};
|
||||
constexpr Type CopyBufferRect{3};
|
||||
constexpr Type CopyBufferRectStateless{4};
|
||||
constexpr Type FillBuffer{5};
|
||||
constexpr Type FillBufferStateless{6};
|
||||
constexpr Type CopyBufferToImage3d{7};
|
||||
constexpr Type CopyBufferToImage3dStateless{8};
|
||||
constexpr Type CopyImage3dToBuffer{9};
|
||||
constexpr Type CopyImage3dToBufferStateless{10};
|
||||
constexpr Type CopyImageToImage1d{11};
|
||||
constexpr Type CopyImageToImage2d{12};
|
||||
constexpr Type CopyImageToImage3d{13};
|
||||
constexpr Type FillImage1d{14};
|
||||
constexpr Type FillImage2d{15};
|
||||
constexpr Type FillImage3d{16};
|
||||
constexpr Type QueryKernelTimestamps{17};
|
||||
inline constexpr Type AuxTranslation{0};
|
||||
inline constexpr Type CopyBufferToBuffer{1};
|
||||
inline constexpr Type CopyBufferToBufferStateless{2};
|
||||
inline constexpr Type CopyBufferRect{3};
|
||||
inline constexpr Type CopyBufferRectStateless{4};
|
||||
inline constexpr Type FillBuffer{5};
|
||||
inline constexpr Type FillBufferStateless{6};
|
||||
inline constexpr Type CopyBufferToImage3d{7};
|
||||
inline constexpr Type CopyBufferToImage3dStateless{8};
|
||||
inline constexpr Type CopyImage3dToBuffer{9};
|
||||
inline constexpr Type CopyImage3dToBufferStateless{10};
|
||||
inline constexpr Type CopyImageToImage1d{11};
|
||||
inline constexpr Type CopyImageToImage2d{12};
|
||||
inline constexpr Type CopyImageToImage3d{13};
|
||||
inline constexpr Type FillImage1d{14};
|
||||
inline constexpr Type FillImage2d{15};
|
||||
inline constexpr Type FillImage3d{16};
|
||||
inline constexpr Type QueryKernelTimestamps{17};
|
||||
|
||||
constexpr bool isStateless(Type type) {
|
||||
constexpr std::array<Type, 5> statelessBuiltins{{CopyBufferToBufferStateless, CopyBufferRectStateless, FillBufferStateless, CopyBufferToImage3dStateless, CopyImage3dToBufferStateless}};
|
||||
@@ -43,7 +43,7 @@ constexpr bool isStateless(Type type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
constexpr Type MaxBaseValue{17};
|
||||
constexpr Type COUNT{64};
|
||||
inline constexpr Type MaxBaseValue{17};
|
||||
inline constexpr Type COUNT{64};
|
||||
} // namespace EBuiltInOps
|
||||
} // namespace NEO
|
||||
|
||||
@@ -25,14 +25,14 @@ class Device;
|
||||
class SipKernel;
|
||||
class MemoryManager;
|
||||
|
||||
constexpr ConstStringRef mediaKernelsBuildOptionsList[] = {
|
||||
inline constexpr ConstStringRef mediaKernelsBuildOptionsList[] = {
|
||||
"-D cl_intel_device_side_advanced_vme_enable",
|
||||
"-D cl_intel_device_side_avc_vme_enable",
|
||||
"-D cl_intel_device_side_vme_enable",
|
||||
"-D cl_intel_media_block_io",
|
||||
CompilerOptions::fastRelaxedMath};
|
||||
|
||||
constexpr CompilerOptions::ConstConcatenation<> mediaKernelsBuildOptions{mediaKernelsBuildOptionsList};
|
||||
inline constexpr CompilerOptions::ConstConcatenation<> mediaKernelsBuildOptions{mediaKernelsBuildOptionsList};
|
||||
|
||||
struct BuiltinCode {
|
||||
enum class ECodeType {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
namespace NEO {
|
||||
namespace EBuiltInOps {
|
||||
constexpr Type MaxCoreValue{MaxBaseValue};
|
||||
inline constexpr Type MaxCoreValue{MaxBaseValue};
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user