Skip to content

Commit cd977dc

Browse files
committed
xe: conv_v2: fix clang-tidy hits
1 parent 76a5f62 commit cd977dc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/gpu/intel/jit/gemm/generator/pieces/layout_utils.cpp

+1-1
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.

src/gpu/intel/jit/v2/conv/gen_convolution.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ status_t gen_convolution_fwd_t::pd_t::init(impl::engine_t *engine) {
192192
}
193193

194194
status_t gen_convolution_fwd_t::init(impl::engine_t *engine) {
195-
impl_.reset(new gen_convolution_t());
195+
impl_ = std::make_shared<gen_convolution_t>();
196196
return impl_->init(this, engine);
197197
}
198198

@@ -205,7 +205,7 @@ status_t gen_convolution_bwd_data_t::pd_t::init(impl::engine_t *engine) {
205205
}
206206

207207
status_t gen_convolution_bwd_data_t::init(impl::engine_t *engine) {
208-
impl_.reset(new gen_convolution_t());
208+
impl_ = std::make_shared<gen_convolution_t>();
209209
return impl_->init(this, engine);
210210
}
211211

@@ -219,7 +219,7 @@ status_t gen_convolution_bwd_weights_t::pd_t::init(impl::engine_t *engine) {
219219
}
220220

221221
status_t gen_convolution_bwd_weights_t::init(impl::engine_t *engine) {
222-
impl_.reset(new gen_convolution_t());
222+
impl_ = std::make_shared<gen_convolution_t>();
223223
return impl_->init(this, engine);
224224
}
225225

src/gpu/intel/jit/v2/conv/kernel_desc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ void kernel_desc_t::show_help() {
10381038

10391039
grid_t create_thread_group_grid(const kernel_desc_t &desc) {
10401040
grid_t grid(jit::ir_builder_t::tg_idx);
1041-
auto set = [&](const pvar_t dim, int idx) {
1041+
auto set = [&](const pvar_t &dim, int idx) {
10421042
grid.add_mapping(dim, desc.use_stream_k ? 0 : idx);
10431043
};
10441044
switch (desc.prop) {

0 commit comments

Comments
 (0)