Skip to content

Commit

Permalink
gpu: ocl: binary: enable mixed data types for gen9 kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
kkozlow1 committed Oct 9, 2020
1 parent 2f90d44 commit ac0ae4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/gpu/ocl/gen9_binary.cl
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ __kernel void gen9_binary(__global SRC0_DATA_T *src0,

#if WITH_SUM
#if NVECT == 1
dst_data = CONVERT_FLOAT_T(DST_BLOCK_READ(&src0[0]));
dst_data = CONVERT_FLOAT_T(DST_BLOCK_READ(&dst[0]));
#elif NVECT == 2
dst_data = CONVERT_FLOAT2_T(DST_BLOCK_READ2(&src0[0]));
dst_data = CONVERT_FLOAT2_T(DST_BLOCK_READ2(&dst[0]));
#elif NVECT == 4
dst_data = CONVERT_FLOAT4_T(DST_BLOCK_READ4(&src0[0]));
dst_data = CONVERT_FLOAT4_T(DST_BLOCK_READ4(&dst[0]));
#elif NVECT == 8
dst_data = CONVERT_FLOAT8_T(DST_BLOCK_READ8(&src0[0]));
dst_data = CONVERT_FLOAT8_T(DST_BLOCK_READ8(&dst[0]));
#endif
#endif

Expand Down
1 change: 0 additions & 1 deletion src/gpu/ocl/gen9_binary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ struct gen9_binary_t : public gpu_primitive_t {
|| utils::everyone_is(f16, src_md(0)->data_type,
src_md(1)->data_type, dst_md()->data_type)
|| utils::one_of(src_md(0)->data_type, s8, u8))
&& (src_md(0)->data_type == dst_md()->data_type)
&& IMPLICATION(!attr()->scales_.has_default_values(),
utils::one_of(src_md(0)->data_type, s8, u8)
&& utils::one_of(
Expand Down

0 comments on commit ac0ae4b

Please sign in to comment.