Skip to content

Commit 41e8612

Browse files
rjourslerkarturov
authored andcommitted
gpu: ocl: remove use of vla in post_ops
1 parent a1e6bc5 commit 41e8612

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/gpu/ocl/ocl_post_ops.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2019-2021 Intel Corporation
2+
* Copyright 2019-2023 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.
@@ -254,15 +254,12 @@ float fwd_Xnary(unsigned kind, unsigned algorithm, float x, float y,
254254
is_burstable; \
255255
})
256256

257-
#define BINARY_ARG_IS_SCALAR(idx) ({ false; })
258-
259257
#define APPLY_PO_BINARY(idx, accumulator, acc_elem_dt, x0, x0_s, x1, x1_s, \
260258
x1_incr, x2, x2_s, x3, x3_s, x4, x4_s, x5, x5_s, is_burst) \
261259
{ \
262-
const unsigned bin_arg_size = BINARY_ARG_IS_SCALAR(idx) \
263-
? 1 \
264-
: sizeof(accumulator) / sizeof(acc_elem_dt); \
265-
float bin_arg[bin_arg_size]; \
260+
const unsigned bin_arg_size \
261+
= sizeof(accumulator) / sizeof(acc_elem_dt); \
262+
float bin_arg[sizeof(accumulator) / sizeof(acc_elem_dt)]; \
266263
float *bin_arg_ptr = &bin_arg[0]; \
267264
const bool use_burst_read = IS_BURSTABLE(idx, x0, x0_s, x1, x1_s, x2, \
268265
x2_s, x3, x3_s, x4, x4_s, x5, x5_s, is_burst); \

0 commit comments

Comments
 (0)