Skip to content

Commit

Permalink
remove obsolete -launchtimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed Sep 15, 2016
1 parent a366754 commit 0969ff1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions cmd/mumax3/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func main() {
printVersion()
}

timer.Timeout = *engine.Flag_launchtimeout
if *engine.Flag_launchtimeout != 0 {
cuda.Synchronous = true
}

engine.TestDemag = *engine.Flag_selftest

// used by bootstrap launcher to test cuda
Expand Down
4 changes: 0 additions & 4 deletions timer/timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
var (
clocks map[string]*clock
firstStart time.Time
Timeout time.Duration
)

func Start(key string) {
Expand Down Expand Up @@ -49,9 +48,6 @@ func (c *clock) Stop() {
d := time.Since(c.started)
c.total += d
c.started = time.Time{}
if Timeout != 0 && d > Timeout {
panic("launch timeout: " + d.String())
}
}

// entry for sorted output by Print()
Expand Down

0 comments on commit 0969ff1

Please sign in to comment.