Skip to content

Commit

Permalink
#7292: TTNN MAJOR_ROW support for exp, acos, cos
Browse files Browse the repository at this point in the history
  • Loading branch information
“Nenad authored and npetrovic-tenstorrent committed Apr 23, 2024
1 parent 94344d8 commit 5c5c4b6
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -25,3 +25,28 @@ test-list:
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_acos_sweep.csv
- ttnn-acos:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: -1
high: 1
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_acos_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -25,3 +25,28 @@ test-list:
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_cos_sweep.csv
- ttnn-cos:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: 0
high: 6.283185307179586
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_cos_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -20,8 +20,33 @@ test-list:
function: comp_pcc
args-gen: gen_dtype_layout_device
args:
data-layout: ["TILE", "ROW_MAJOR"]
data-layout: ["TILE"]
data-type: ["BFLOAT16", "BFLOAT8_B"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_exp_sweep.csv
- ttnn-exp:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: -10
high: 10
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_exp_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -25,3 +25,28 @@ test-list:
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_acos_sweep.csv
- ttnn-acos:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: -1
high: 1
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_acos_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -25,3 +25,28 @@ test-list:
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_cos_sweep.csv
- ttnn-cos:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: 0
high: 6.283185307179586
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_cos_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test-list:
interval: [1, 1, 32, 32]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 128
num-samples: 64
args-sampling-strategy: "all"
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
Expand All @@ -20,8 +20,33 @@ test-list:
function: comp_pcc
args-gen: gen_dtype_layout_device
args:
data-layout: ["TILE", "ROW_MAJOR"]
data-layout: ["TILE"]
data-type: ["BFLOAT16", "BFLOAT8_B"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]
output-file: eltwise_exp_sweep.csv
- ttnn-exp:
shape:
start-shape: [1, 1, 1, 2]
end-shape: [6, 12, 256, 256]
interval: [1, 1, 1, 2]
num-dims: [2, 3, 4]
num-shapes: 1
num-samples: 64
args-sampling-strategy: "all"
datagen:
function: gen_rand
args:
low: -10
high: 10
comparison:
function: comp_pcc
args-gen: gen_dtype_layout_device
output-file: eltwise_exp_sweep.csv
env:
# TT_PCI_DMA_BUF_SIZE: "1048576"
args:
data-layout: ["ROW_MAJOR"]
data-type: ["BFLOAT16"]
buffer-type: ["DRAM", "L1"]
out-buffer-type: ["DRAM", "L1"]

0 comments on commit 5c5c4b6

Please sign in to comment.