Skip to content

Commit c4bb047

Browse files
committed
xe: align header guards to file names
1 parent 3e14243 commit c4bb047

17 files changed

+66
-36
lines changed

src/gpu/gpu_reduction_pd.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 Intel Corporation
2+
* Copyright 2020-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_REDUCTION_PD_HPP
18-
#define GPU_REDUCTION_PD_HPP
17+
#ifndef GPU_GPU_REDUCTION_PD_HPP
18+
#define GPU_GPU_REDUCTION_PD_HPP
1919

2020
#include "common/reduction_pd.hpp"
2121

src/gpu/intel/compute/zero_pool.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2023-2024 Intel Corporation
2+
* Copyright 2023-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_INTEL_JIT_GEMM_ZERO_POOL_HPP
18-
#define GPU_INTEL_JIT_GEMM_ZERO_POOL_HPP
17+
#ifndef GPU_INTEL_COMPUTE_ZERO_POOL_HPP
18+
#define GPU_INTEL_COMPUTE_ZERO_POOL_HPP
1919

2020
#include <array>
2121
#include <mutex>

src/gpu/intel/jit/conv/lookup_table.hpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2023-2024 Intel Corporation
2+
* Copyright 2023-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17+
#ifndef GPU_INTEL_JIT_CONV_LOOKUP_TABLE_HPP
18+
#define GPU_INTEL_JIT_CONV_LOOKUP_TABLE_HPP
19+
1720
#include <iostream>
1821
#include <unordered_map>
1922

@@ -59,3 +62,5 @@ conv_lookup_table_t &conv_lookup_table();
5962
} // namespace gpu
6063
} // namespace impl
6164
} // namespace dnnl
65+
66+
#endif

src/gpu/intel/jit/conv/model.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17+
#ifndef GPU_INTEL_JIT_CONV_MODEL_HPP
18+
#define GPU_INTEL_JIT_CONV_MODEL_HPP
19+
1720
#include <functional>
1821
#include <iostream>
1922
#include <numeric>
@@ -1126,3 +1129,5 @@ class gradient_boost_regressor_t {
11261129
} // namespace gpu
11271130
} // namespace impl
11281131
} // namespace dnnl
1132+
1133+
#endif

src/gpu/intel/jit/conv/model_bridge.hpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2023-2024 Intel Corporation
2+
* Copyright 2023-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17+
#ifndef GPU_INTEL_JIT_CONV_MODEL_BRIDGE_HPP
18+
#define GPU_INTEL_JIT_CONV_MODEL_BRIDGE_HPP
19+
1720
namespace dnnl {
1821
namespace impl {
1922
namespace gpu {
@@ -33,3 +36,5 @@ float get_score(const conv_config_t &cfg, const blocking_params_t &params);
3336
} // namespace gpu
3437
} // namespace impl
3538
} // namespace dnnl
39+
40+
#endif

src/gpu/intel/ocl/concat_utils.hpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2024 Intel Corporation
2+
* Copyright 2024-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
#pragma once
16+
17+
#ifndef GPU_INTEL_OCL_CONCAT_UTILS_HPP
18+
#define GPU_INTEL_OCL_CONCAT_UTILS_HPP
19+
1720
#include <algorithm>
1821
#include <numeric>
1922

@@ -387,3 +390,5 @@ struct prb_info_t {
387390
} // namespace gpu
388391
} // namespace impl
389392
} // namespace dnnl
393+
394+
#endif

src/gpu/intel/ocl/lnorm_utils.hpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2023-2024 Intel Corporation
2+
* Copyright 2023-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17+
#ifndef GPU_INTEL_OCL_LNORM_UTILS_HPP
18+
#define GPU_INTEL_OCL_LNORM_UTILS_HPP
19+
1720
#include "common/c_types_map.hpp"
1821
#include "common/type_helpers.hpp"
1922
#include "gpu/intel/compute/dispatch_reusable.hpp"
@@ -67,3 +70,5 @@ static compute::named_buffer_t get_ss_buffer(
6770
} // namespace gpu
6871
} // namespace impl
6972
} // namespace dnnl
73+
74+
#endif

src/gpu/intel/ocl/micro_sdpa.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_OCL_MICRO_SDPA_HPP
18-
#define GPU_OCL_MICRO_SDPA_HPP
17+
#ifndef GPU_INTEL_OCL_MICRO_SDPA_HPP
18+
#define GPU_INTEL_OCL_MICRO_SDPA_HPP
1919

2020
#include <assert.h>
2121

src/gpu/intel/ocl/ocl_generic_vector_ops.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2024 Intel Corporation
2+
* Copyright 2024-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_INTEL_OCL_GENERIC_VECTOR_OPS_H
18-
#define GPU_INTEL_OCL_GENERIC_VECTOR_OPS_H
17+
#ifndef GPU_INTEL_OCL_OCL_GENERIC_VECTOR_OPS_H
18+
#define GPU_INTEL_OCL_OCL_GENERIC_VECTOR_OPS_H
1919

2020
typedef half __attribute__((ext_vector_type(1))) half1;
2121
typedef uint __attribute__((ext_vector_type(1))) uint1;

src/gpu/intel/ocl/ocl_philox.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2024 Intel Corporation
2+
* Copyright 2024-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17+
#ifndef GPU_INTEL_OCL_OCL_PHILOX_H
18+
#define GPU_INTEL_OCL_OCL_PHILOX_H
19+
1720
#define DT_UNDEF 1
1821
#include "gpu/intel/ocl/ocl_types.h"
1922

@@ -69,3 +72,5 @@ float stochastic_round_fwd(float s, long idx, uint seed) {
6972
return r;
7073
}
7174
#endif
75+
76+
#endif

src/gpu/intel/ocl/reduction/reduction_utils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2023-2024 Intel Corporation
2+
* Copyright 2023-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_REDUCTION_UTILS_H
18-
#define GPU_REDUCTION_UTILS_H
17+
#ifndef GPU_INTEL_OCL_REDUCTION_REDUCTION_UTILS_HPP
18+
#define GPU_INTEL_OCL_REDUCTION_REDUCTION_UTILS_HPP
1919

2020
#include <assert.h>
2121
#include <sstream>

src/gpu/intel/ocl/ref_sdpa.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_OCL_REF_SDPA_HPP
18-
#define GPU_OCL_REF_SDPA_HPP
17+
#ifndef GPU_INTEL_OCL_REF_SDPA_HPP
18+
#define GPU_INTEL_OCL_REF_SDPA_HPP
1919

2020
#include <assert.h>
2121

src/gpu/intel/ocl/reusable_vectorized_lnorm.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_OCL_REUSABLE_VECTORIZED_LNORM_HPP
18-
#define GPU_OCL_REUSABLE_VECTORIZED_LNORM_HPP
17+
#ifndef GPU_INTEL_OCL_REUSABLE_VECTORIZED_LNORM_HPP
18+
#define GPU_INTEL_OCL_REUSABLE_VECTORIZED_LNORM_HPP
1919

2020
#include "common/c_types_map.hpp"
2121
#include "common/layer_normalization_pd.hpp"

src/gpu/intel/ocl/sdpa_utils.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2024 Intel Corporation
2+
* Copyright 2024-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_OCL_SDPA_UTILS_H
18-
#define GPU_OCL_SDPA_UTILS_H
17+
#ifndef GPU_INTEL_OCL_SDPA_UTILS_H
18+
#define GPU_INTEL_OCL_SDPA_UTILS_H
1919

2020
#define _4D_OFF(tag, x0, x1, x2, x3) \
2121
(((x0) % tag##_B0) * tag##_SB0 + ((x0) / tag##_B0) * tag##_S0 \

src/gpu/intel/ocl/tile_ops.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef GPU_OCL_TILE_OPS_H
18-
#define GPU_OCL_TILE_OPS_H
17+
#ifndef GPU_INTEL_OCL_TILE_OPS_H
18+
#define GPU_INTEL_OCL_TILE_OPS_H
1919

2020
#include "gpu/intel/ocl/ocl_generic_vector_ops.h"
2121
#include "gpu/intel/ocl/ocl_types.h"

src/gpu/intel/sycl/device_info.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2019-2024 Intel Corporation
2+
* Copyright 2019-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef SYCL_DEVICE_INFO_HPP
18-
#define SYCL_DEVICE_INFO_HPP
17+
#ifndef GPU_INTEL_SYCL_DEVICE_INFO_HPP
18+
#define GPU_INTEL_SYCL_DEVICE_INFO_HPP
1919

2020
#include "gpu/intel/compute/device_info.hpp"
2121

@@ -40,4 +40,4 @@ class device_info_t : public gpu::intel::compute::device_info_t {
4040
} // namespace impl
4141
} // namespace dnnl
4242

43-
#endif // SYCL_DEVICE_INFO_HPP
43+
#endif // GPU_INTEL_SYCL_DEVICE_INFO_HPP

src/gpu/intel/sycl/l0/utils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616

17-
#ifndef SYCL_LEVEL_ZERO_UTILS_HPP
18-
#define SYCL_LEVEL_ZERO_UTILS_HPP
17+
#ifndef GPU_INTEL_SYCL_L0_UTILS_HPP
18+
#define GPU_INTEL_SYCL_L0_UTILS_HPP
1919

2020
#include <memory>
2121
#include <string>
@@ -57,4 +57,4 @@ status_t init_gpu_hw_info(impl::engine_t *engine, ze_device_handle_t device,
5757
} // namespace impl
5858
} // namespace dnnl
5959

60-
#endif // SYCL_LEVEL_ZERO_UTILS_HPP
60+
#endif // GPU_INTEL_SYCL_L0_UTILS_HPP

0 commit comments

Comments
 (0)