Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfelder committed Mar 6, 2024
1 parent 7e35f31 commit 139fcab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrappers/golang/cuda_runtime/device_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ func GetDeviceFromPointer(ptr unsafe.Pointer) int {
// size := 1 << power
//
// // This will always print "Inner goroutine device: 0"
// // go func () {
// // go func () {
// // device, _ := cr.GetDevice()
// // fmt.Println("Inner goroutine device: ", device)
// // }()
// // To force the above goroutine to same device as the wrapping function:
// // RunOnDevice(i, func(arg ...any) {
// // RunOnDevice(i, func(arg ...any) {
// // device, _ := cr.GetDevice()
// // fmt.Println("Inner goroutine device: ", device)
// // })
Expand Down

0 comments on commit 139fcab

Please sign in to comment.