Skip to content

Commit

Permalink
add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
gongchen618 committed Mar 5, 2024
1 parent ab92c2d commit da2c310
Show file tree
Hide file tree
Showing 8 changed files with 8,400 additions and 13 deletions.
9 changes: 4 additions & 5 deletions accelsim_tracing/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
accelsim_tracing
output/
data/
logs/
v1/
*.log
data/*
*.log

!data/simple-trace-example/
4 changes: 2 additions & 2 deletions accelsim_tracing/accelsim_tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

func main() {
benchmark := new(benchmark.BenchmarkBuilder).
WithTraceDirectory("data/bfs-rodinia-2.0-ft").
// WithTraceDirectory("data/simple").
// WithTraceDirectory("data/bfs-rodinia-2.0-ft").
WithTraceDirectory("data/simple-trace-example").
Build()

platform := new(platform.A100PlatformBuilder).
Expand Down
18 changes: 13 additions & 5 deletions accelsim_tracing/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (

func TestBenchmarkBuild(t *testing.T) {
benchmark := new(benchmark.BenchmarkBuilder).
WithTraceDirectory("../data/bfs-rodinia-2.0-ft").
// WithTraceDirectory("../data/bfs-rodinia-2.0-ft").
WithTraceDirectory("../data/simple-trace-example").
Build()

kernelCount := 0
Expand All @@ -25,10 +26,17 @@ func TestBenchmarkBuild(t *testing.T) {
}
}

if kernelCount != 16 {
t.Errorf("Expected 16 kernel, got %d", kernelCount)
// if kernelCount != 16 {
// t.Errorf("Expected 16 kernel, got %d", kernelCount)
// }
// if memcpyCount != 14 {
// t.Errorf("Expected 14 memcpy, got %d", memcpyCount)
// }

if kernelCount != 3 {
t.Errorf("Expected 3 kernel, got %d", kernelCount)
}
if memcpyCount != 14 {
t.Errorf("Expected 14 memcpy, got %d", memcpyCount)
if memcpyCount != 3 {
t.Errorf("Expected 3 memcpy, got %d", memcpyCount)
}
}
Loading

0 comments on commit da2c310

Please sign in to comment.