Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gongchen618 committed Mar 5, 2024
1 parent da2c310 commit b07ae3f
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion accelsim_tracing/benchmark/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package benchmark

import (
"github.com/sarchlab/mgpusim/v3/accelsim_tracing/nvidia"
tracereader "github.com/sarchlab/mgpusim/v3/accelsim_tracing/traceReader"
"github.com/sarchlab/mgpusim/v3/accelsim_tracing/tracereader"
)

type BenchmarkBuilder struct {
Expand Down
2 changes: 1 addition & 1 deletion accelsim_tracing/benchmark/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The benchmark package can load trace information and run simulation.
// Package benchmark can load trace information and run simulation.
package benchmark
2 changes: 1 addition & 1 deletion accelsim_tracing/driver/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The driver package provides driver component which arrange kernels for devices.
// Package driver provides driver component which arrange kernels for devices.
package driver
2 changes: 1 addition & 1 deletion accelsim_tracing/gpu/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The gpu package implements the gpu ticking component .
// Package gpu implements the gpu ticking component .
package gpu
2 changes: 1 addition & 1 deletion accelsim_tracing/message/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The message package contains the types for all the sim.msgs.
// Package message contains the types for all the sim.msgs.
package message
2 changes: 1 addition & 1 deletion accelsim_tracing/nvidia/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The nvidia package contains some basic types.
// Package nvidia contains some basic types.
package nvidia
4 changes: 2 additions & 2 deletions accelsim_tracing/platform/A100builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (b *A100PlatformBuilder) Build() *Platform {
return p
}

func (p *A100PlatformBuilder) freqMustBeSet() {
if p.freq == 0 {
func (b *A100PlatformBuilder) freqMustBeSet() {
if b.freq == 0 {
panic("Frequency must be set")
}
}
2 changes: 1 addition & 1 deletion accelsim_tracing/platform/doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// The platform package organizes all the components needed for a simulation.
// Package platform organizes all the components needed for a simulation.
// Including the driver, the GPU, and the simulation engine.
package platform
2 changes: 1 addition & 1 deletion accelsim_tracing/runner/doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// The runner package provides the main entry point for the simulation.
// Package runner provides the main entry point for the simulation.
// It contains platform and benchmarks.
package runner
2 changes: 1 addition & 1 deletion accelsim_tracing/sm/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The sm package implements the SM ticking component.
// Package sm implements the SM ticking component.
package sm
2 changes: 0 additions & 2 deletions accelsim_tracing/subcore/subcore.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func (s *Subcore) Tick(now sim.VTimeInSec) bool {
madeProgress = s.processSMInput(now) || madeProgress
// warps can be switched, but ignore now

// fmt.Println("Subcore tick, time is:", now, "madeProgress:", madeProgress, "unfinishedInstsCount:", s.unfinishedInstsCount, "finishedWarpsCount:", s.finishedWarpsCount)

return madeProgress
}

Expand Down
2 changes: 0 additions & 2 deletions accelsim_tracing/traceReader/doc.go

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions accelsim_tracing/tracereader/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package tracereader provides reader that load benchmarks from trace flie
package tracereader
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/sarchlab/mgpusim/v3/accelsim_tracing/nvidia"
tracereader "github.com/sarchlab/mgpusim/v3/accelsim_tracing/traceReader"
"github.com/sarchlab/mgpusim/v3/accelsim_tracing/tracereader"
)

func TestBuildExecFromText(t *testing.T) {
Expand Down
File renamed without changes.

0 comments on commit b07ae3f

Please sign in to comment.