Skip to content

Commit

Permalink
tests: benchdnn: inputs: eltwise: add large buffer gpu test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoursler authored and vpirogov committed May 12, 2023
1 parent 6ce52eb commit 9a66ac6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/benchdnn/inputs/eltwise/harness_eltwise_large_buffer
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--reset

# Use inplace to reduce memory consumption, most eltwise implementations do not
# use different implementations for inplace. Use smallest supported data type to
# minimize memory usage as well.

--inplace=true

--dt=u8
--dir=FWD_D
--attr-post-ops=,add:f32:per_tensor
--batch=shapes_large_buffer

--reset
--dt=bf16
--dir=BWD_D
--batch=shapes_large_buffer
2 changes: 2 additions & 0 deletions tests/benchdnn/inputs/eltwise/shapes_large_buffer
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Test dimensions with 2 ^ 32 + 1 size to catch integer overflow
4294967297n"large_dim1"
3 changes: 3 additions & 0 deletions tests/benchdnn/inputs/eltwise/test_eltwise_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
# Test layers of some key GPU DL Frameworks
--reset
--batch=option_set_fwks_key_gpu

--reset
--batch=harness_eltwise_large_buffer

0 comments on commit 9a66ac6

Please sign in to comment.