Skip to content

Commit af0655d

Browse files
committed
use GCAllocator by default
1 parent a13e9c9 commit af0655d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cudavec.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func NewHandle(ctx *cuda.Context, all cuda.Allocator) (h *Handle, err error) {
7979
if err != nil {
8080
return err
8181
}
82+
h.allocator = cuda.GCAllocator(h.allocator, 0)
8283
}
8384
return nil
8485
})

0 commit comments

Comments
 (0)