Skip to content

Commit

Permalink
[ci] Extend tests with no stalls
Browse files Browse the repository at this point in the history
  • Loading branch information
gamzeisl committed Oct 10, 2024
1 parent 3786b6a commit 4d3294e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
34 changes: 32 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,34 @@ run_sim:
P: 64
F: 64
activation: gelu
no_stalls: 0
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 1
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 1
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 1
script:
- make bender
- make sim VSIM_FLAGS=-c s=$S e=$E p=$P f=$F bias=1 activation=$activation
- make sim VSIM_FLAGS=-c s=$S e=$E p=$P f=$F bias=1 activation=$activation no_stalls=$no_stalls
- ./modelsim/return_status.sh modelsim/build/transcript $S $E $P $F ita_tb

run_hwpe_sim:
Expand All @@ -71,17 +86,32 @@ run_hwpe_sim:
P: 64
F: 64
activation: gelu
no_stalls: 0
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 1
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 1
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 1
script:
- make bender
- make sim VSIM_FLAGS=-c DEBUG=OFF target=sim_ita_hwpe_tb s=$S e=$E p=$P f=$F bias=1 activation=$activation
- make sim VSIM_FLAGS=-c DEBUG=OFF target=sim_ita_hwpe_tb s=$S e=$E p=$P f=$F bias=1 activation=$activation no_stalls=$no_stalls
- ./modelsim/return_status.sh modelsim/build/transcript $S $E $P $F hwpe_tb
2 changes: 1 addition & 1 deletion src/hwpe/tb/ita_hwpe_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module ita_hwpe_tb;

// HWPE Parameters
localparam unsigned ITA_REG_OFFSET = 32'h20;
parameter real PROB_STALL = 0.1;
parameter real PROB_STALL = `ifdef NO_STALLS ((`NO_STALLS == 1) ? 0 : 0.1) `else 0.1 `endif;
parameter MEMORY_SIZE = SEQUENCE_LEN*EMBEDDING_SIZE*4+EMBEDDING_SIZE*PROJECTION_SPACE*4+PROJECTION_SPACE*3*3+EMBEDDING_SIZE*3+SEQUENCE_LEN*PROJECTION_SPACE*4+SEQUENCE_LEN*SEQUENCE_LEN+EMBEDDING_SIZE*FEEDFORWARD_SIZE*2+FEEDFORWARD_SIZE*3+EMBEDDING_SIZE*3;

parameter int unsigned AccDataWidth = ITA_TCDM_DW;
Expand Down

0 comments on commit 4d3294e

Please sign in to comment.