Skip to content

Commit

Permalink
src: gpu: ocl: pooling: add f16 support to bwd ocl global pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
hidefromkgb authored and karturov committed Apr 8, 2024
1 parent c8ad13c commit e4737d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gpu/ocl/gen9_global_pooling.cl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2021-2023 Intel Corporation
* Copyright 2021-2024 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 @@ -81,7 +81,7 @@ __kernel void gen9_global_pooling_fwd(

#if IS_BWD

#if DT_BF16
#if DT_BF16 || DT_F16
#define DST_BLOCK_WRITE(dst, val) \
BLOCK_WRITE((__global ushort *)(dst), as_ushort(val))
#endif // DT_BF16
Expand Down
2 changes: 1 addition & 1 deletion tests/benchdnn/inputs/pool/test_pool_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

# Test global pooling
--reset
--dt=f32,bf16,f64
--dt=f32,f16,bf16,f64
--dir=BWD_D
--tag=axb,abx,aBx16b,aBx32b
--alg=max,avg_np,avg_p
Expand Down

0 comments on commit e4737d9

Please sign in to comment.