Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
Code is not currently building because of a missing import and a misused
channel in cudevice.go.
  • Loading branch information
jholdstock authored and davecgh committed Sep 16, 2023
1 parent a069683 commit f6eaef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cudevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package main
import "C"

import (
"context"
"fmt"
"math"
"math/bits"
Expand Down Expand Up @@ -368,7 +369,7 @@ func (d *Device) runDevice(ctx context.Context) error {
d.updateCurrentWork(ctx)

select {
case <-ctxDoneCh():
case <-ctxDoneCh:
return nil
default:
}
Expand Down

0 comments on commit f6eaef3

Please sign in to comment.