Skip to content

Commit

Permalink
build: relocated src/gpu/intel/ngen to third_party
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jan 15, 2025
1 parent d4846fa commit 2d2ec7e
Show file tree
Hide file tree
Showing 60 changed files with 69 additions and 84 deletions.
9 changes: 6 additions & 3 deletions src/gpu/intel/jit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2020-2024 Intel Corporation
# Copyright 2020-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,7 +16,7 @@

set(CMAKE_CXX_CLANG_TIDY "")

set(DIRS "codegen;conv;ir;ngen;pass;pooling;reorder;utils;v2")
set(DIRS "codegen;conv;ir;pass;pooling;reorder;utils;v2")

file(GLOB SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/*.hpp
Expand All @@ -29,7 +29,10 @@ foreach(d ${DIRS})
)
list(APPEND SOURCES "${d_sources}")
endforeach()

file(GLOB_RECURSE NGEN_SOURCES
${PROJECT_SOURCE_DIR}/third_party/ngen/*.cpp
)
list(APPEND SOURCES "${NGEN_SOURCES}")

if(DNNL_EXPERIMENTAL)
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/v2/conv/planner/planner_main.cpp")
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/bank_conflict_allocation.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2021-2024 Intel Corporation
* Copyright 2021-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
#include "gpu/intel/jit/codegen/reg_buf.hpp"
#include "gpu/intel/jit/codegen/register_allocator.hpp"
#include "gpu/intel/jit/ir/ir.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/codegen/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "gpu/intel/jit/ir/eltwise.hpp"
#include "gpu/intel/jit/ir/fma.hpp"
#include "gpu/intel/jit/jit_eltwise_injector.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/codegen.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
#define GPU_INTEL_JIT_CODEGEN_CODEGEN_HPP

#include "gpu/intel/jit/codegen/kernel.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ir/walk_order.hpp"
#include "gpu/intel/jit/jit_generator.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/ngen/ngen_register_allocator.hpp"
#include "ngen/ngen.hpp"
#include "ngen/ngen_register_allocator.hpp"
#include "xpu/utils.hpp"

namespace dnnl {
Expand Down
6 changes: 3 additions & 3 deletions src/gpu/intel/jit/codegen/ngen_helpers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,9 +18,9 @@
#define GPU_INTEL_JIT_CODEGEN_NGEN_HELPERS_HPP

#include "gpu/intel/jit/ir/core.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/ngen/ngen_register_allocator.hpp"
#include "gpu/intel/jit/utils/ngen_proxy.hpp"
#include "ngen/ngen.hpp"
#include "ngen/ngen_register_allocator.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/operand.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,7 @@

#include "gpu/intel/jit/codegen/ngen_helpers.hpp"
#include "gpu/intel/jit/codegen/reg_buf.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/reduce.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
#include "gpu/intel/jit/codegen/register_scope.hpp"
#include "gpu/intel/jit/codegen/reorder.hpp"
#include "gpu/intel/jit/ir/reduce.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/reg_buf.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2021-2024 Intel Corporation
* Copyright 2021-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,8 +23,8 @@
#include "gpu/intel/jit/codegen/register_allocator.hpp"
#include "gpu/intel/jit/ir/core.hpp"
#include "gpu/intel/jit/ir/grf_permutation.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/utils/utils.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
6 changes: 3 additions & 3 deletions src/gpu/intel/jit/codegen/register_allocator.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2021-2024 Intel Corporation
* Copyright 2021-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,9 +18,9 @@
#define GPU_INTEL_JIT_CODEGEN_REGISTER_ALLOCATOR_HPP

#include "common/z_magic.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/ngen/ngen_register_allocator.hpp"
#include "gpu/intel/jit/utils/utils.hpp"
#include "ngen/ngen.hpp"
#include "ngen/ngen_register_allocator.hpp"

namespace dnnl {
namespace impl {
Expand Down
6 changes: 3 additions & 3 deletions src/gpu/intel/jit/codegen/register_scope.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,8 +19,8 @@

#include "gpu/intel/jit/codegen/ngen_helpers.hpp"
#include "gpu/intel/jit/codegen/reg_buf.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/ngen/ngen_register_allocator.hpp"
#include "ngen/ngen.hpp"
#include "ngen/ngen_register_allocator.hpp"

namespace dnnl {
namespace impl {
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/codegen/reorder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include "gpu/intel/jit/codegen/register_scope.hpp"
#include "gpu/intel/jit/ir/reorder.hpp"
#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/utils/iterator.hpp"
#include "gpu/intel/jit/utils/range.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/codegen/send.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@
#include "gpu/intel/jit/codegen/register_scope.hpp"
#include "gpu/intel/jit/ir/message.hpp"
#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/conv/key.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2023-2024 Intel Corporation
* Copyright 2023-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,8 +24,8 @@
#include "common/utils.hpp"
#include "gpu/intel/jit/conv/config.hpp"
#include "gpu/intel/jit/ir/hw.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/utils/utils.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/conv/plan_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2023-2024 Intel Corporation
* Copyright 2023-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,8 +21,8 @@
#include <string>

#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "gpu/intel/jit/utils/utils.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/conv/zero_out.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "gpu/intel/jit/ir/kernel_desc.hpp"
#include "gpu/intel/jit/ir/kernel_info.hpp"
#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/emulated_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#define GPU_INTEL_JIT_EMULATED_GENERATOR_HPP

// Must be included before emulation.hpp
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

#include "gpu/intel/compute/device_info.hpp"
#include "gpu/intel/jit/codegen/register_allocator.hpp"
#include "gpu/intel/jit/emulation.hpp"
#include "gpu/intel/jit/jit_generator.hpp"
#include "gpu/intel/jit/ngen/ngen_core.hpp"
#include "ngen/ngen_core.hpp"

namespace dnnl {
namespace impl {
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/emulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef GPU_INTEL_JIT_EMULATION_HPP
#define GPU_INTEL_JIT_EMULATION_HPP

#include "gpu/intel/jit/ngen/ngen_config.hpp"
#include "ngen/ngen_config.hpp"
#ifdef NGEN_ENABLE_SOURCE_LOCATION
#include <source_location>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/gemm/generator/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2019-2024 Intel Corporation
# Copyright 2019-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/gemm/generator/microkernel_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "generator.hpp"
#include "kernel_selector.hpp"
#include "strategy_parser.hpp"
#include "npack/neo_packager.hpp"
#include "ngen/npack/neo_packager.hpp"

#include "internal/namespace_start.hxx"

Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/gemm/include/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2019-2024 Intel Corporation
# Copyright 2019-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/gpu/intel/jit/gemm/include/internal/ngen_includes.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2024 Intel Corporation
* Copyright 2019-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,5 +16,5 @@

#include "../config.hpp"

# include "gpu/intel/jit/ngen/ngen_opencl.hpp"
# include "gpu/intel/jit/ngen/ngen_register_allocator.hpp"
# include "ngen/ngen_opencl.hpp"
# include "ngen/ngen_register_allocator.hpp"
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/gemm/selector/.clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2019-2024 Intel Corporation
# Copyright 2019-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/ir/fma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string>

#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/ir/slm_reduce_builder.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2022-2024 Intel Corporation
* Copyright 2022-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
#include "gpu/intel/jit/ir/hw.hpp"
#include "gpu/intel/jit/ir/ir.hpp"
#include "gpu/intel/jit/ir/tensor.hpp"
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/jit_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <memory>

// Must be included before emulation.hpp
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "ngen/ngen.hpp"

#include "common/impl_registration.hpp"
#include "common/nstl.hpp"
Expand All @@ -32,7 +32,7 @@
#include "gpu/intel/ocl/ocl_gpu_engine.hpp"
#include "xpu/utils.hpp"

#include "gpu/intel/jit/ngen/ngen_opencl.hpp"
#include "ngen/ngen_opencl.hpp"

namespace dnnl {
namespace impl {
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/jit_reduction_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include "gpu/intel/jit/emulated_generator.hpp"
#include "gpu/intel/jit/jit_generator.hpp"
#include "gpu/intel/jit/jit_reduction_injector.hpp"
#include "gpu/intel/jit/ngen/ngen_core.hpp"
#include "gpu/intel/jit/ngen/ngen_interface.hpp"
#include "gpu/intel/utils.hpp"
#include "ngen/ngen_core.hpp"
#include "ngen/ngen_interface.hpp"

namespace dnnl {
namespace impl {
Expand Down
Loading

0 comments on commit 2d2ec7e

Please sign in to comment.