Skip to content

Commit

Permalink
gpu: ocl: fix wino zeropad
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoursler authored and karturov committed Apr 24, 2023
1 parent 51d608d commit 97ac885
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/gpu/ocl/gen9_wino_conv_fwd_data_fused.cl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2020-2021 Intel Corporation
* Copyright 2020-2023 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 Expand Up @@ -615,7 +615,10 @@ gen9_wino_conv_fwd(__global DATA_T *dst, const __global DATA_T *src,
dst[dst_idx
+ dst_off(0, oc_off * COMP_OC_STRIDE, 0,
h_off, w_off)]
= C[oc_off][h_off][w_off];
= (OC_WO_PADDING % OC_BLOCK == 0
|| oc + oc_off < OC_WO_PADDING)
? C[oc_off][h_off][w_off]
: DATA_ZERO;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions tests/benchdnn/inputs/conv/shapes_basic_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ g1ic17oc17_iw5ow5kw3pw1_n"1d_tail_conv:3x3"

# two dimensional shapes
g1ic3oc16_ih5oh5kh3ph1_n"2d_conv:1st"
g1ic3oc17_ih5oh5kh3ph1_n"2d_conv:1st_tail"
g1ic17oc17_ih5oh5kh1ph0_n"2d_tail_conv:1x1"
g1ic16oc16_ih5oh5kh3ph1_n"2d_conv:3x3"
g4ic16oc16_ih5oh5kh3ph1_n"2d_conv:grouped"
Expand Down
2 changes: 1 addition & 1 deletion tests/benchdnn/inputs/conv/test_conv_gpu_ci
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
--stag=any,axb
--alg=wino
--cfg=f16,f32
--attr-post-ops=,sum:0.25+relu:0.5
--attr-post-ops=,add:f32,sum:0.25+relu:0.5
--batch=shapes_basic_gpu

# f64
Expand Down

0 comments on commit 97ac885

Please sign in to comment.