Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (ctx *BatchedContext) Close() error {
return ctx.Context.Close()
}

// Errors returns any errors that may have occured during a batch processing
// Errors returns any errors that may have occurred during a batch processing
func (ctx *BatchedContext) Errors() error { return ctx.errors() }

// FirstError returns the first error if there was any
Expand Down Expand Up @@ -459,7 +459,7 @@ func (ctx *BatchedContext) AllocAndCopy(p unsafe.Pointer, bytesize int64) (retVa

/* PRIVATE METHODS */

// checkResults returns true if an error has occured while processing the queue
// checkResults returns true if an error has occurred while processing the queue
func (ctx *BatchedContext) checkResults() bool {
for _, v := range ctx.results {
if v != C.CUDA_SUCCESS {
Expand Down
2 changes: 1 addition & 1 deletion ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (ctx *Ctx) Do(fn func() error) error {
// CUDAContext returns the CUDA Context
func (ctx *Ctx) CUDAContext() CUContext { return ctx.CUContext }

// Error returns the errors that may have occured during the calls.
// Error returns the errors that may have occurred during the calls.
func (ctx *Ctx) Error() error { return ctx.err }

// Work returns the channel where work will be passed in. In most cases you don't need this. Use Run instead.
Expand Down
2 changes: 1 addition & 1 deletion ctx_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (ctx *Ctx) Do(fn func() error) error {
// CUDAContext returns the CUDA Context
func (ctx *Ctx) CUDAContext() CUContext { return ctx.CUContext }

// Error returns the errors that may have occured during the calls.
// Error returns the errors that may have occurred during the calls.
func (ctx *Ctx) Error() error { return ctx.err }

// Work returns the channel where work will be passed in. In most cases you don't need this. Use Run instead.
Expand Down