File: typos.patch

package info (click to toggle)
libgpuarray 0.7.6-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,176 kB
  • sloc: ansic: 19,235; python: 4,591; makefile: 208; javascript: 71; sh: 15
file content (110 lines) | stat: -rw-r--r-- 4,298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Description: Fix spelling

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Origin: lintian (mostly)
Forwarded: https://github.com/Theano/libgpuarray/pull/582 https://github.com/Theano/libgpuarray/pull/584

--- a/pygpu/gpuarray.pyx
+++ b/pygpu/gpuarray.pyx
@@ -76,10 +76,10 @@ def cuda_wrap_ctx(size_t ptr, bint own):
     Wrap an existing CUDA driver context (CUcontext) into a GpuContext
     class.
 
-    If `own` is true, libgpuarray is now reponsible for the context and
+    If `own` is true, libgpuarray is now responsible for the context and
     it will be destroyed once there are no references to it.
     Otherwise, the context will not be destroyed and it is the calling
-    code's reponsability.
+    code's responsibility.
     """
     cdef gpucontext *(*cuda_make_ctx)(void *, int)
     cdef int flags
@@ -876,7 +876,7 @@ def from_gpudata(size_t data, offset, dt
 
     Notes
     -----
-    This function might be deprecated in a later relase since the only
+    This function might be deprecated in a later release since the only
     way to create gpudata pointers is through libgpuarray functions
     that aren't exposed at the python level. It can be used with the
     value of the `gpudata` attribute of an existing GpuArray.
@@ -940,7 +940,7 @@ def array(proto, dtype=None, copy=True,
     match its properties and `copy` is False.
 
     The properties of the resulting array depend on the input data
-    except if overriden by other parameters.
+    except if overridden by other parameters.
 
     This function is similar to :meth:`numpy.array` except that it returns
     GpuArrays.
@@ -1561,7 +1561,7 @@ cdef class GpuArray:
 
     To create instances of this class use
     :meth:`~pygpu.gpuarray.zeros`, :meth:`~pygpu.gpuarray.empty` or
-    :meth:`~pygpu.gpuarray.array`.  It cannot be instanciated
+    :meth:`~pygpu.gpuarray.array`.  It cannot be instantiated
     directly.
 
     You can also subclass this class and make the module create your
@@ -2278,7 +2278,7 @@ cdef class GpuKernel:
 
     The `have_*` parameter are there to tell libgpuarray that we need
     the particular type or feature to work for this kernel.  If the
-    request can't be satified a :class:`.UnsupportedException` will be
+    request can't be satisfied a :class:`.UnsupportedException` will be
     raised in the constructor.
 
     Once you have the kernel object you can simply call it like so::
@@ -2335,7 +2335,7 @@ cdef class GpuKernel:
 
         If you do not set the `have_` flags properly, you will either
         get a device-specific error (the good case) or silent
-        completly bogus data (the bad case).
+        completely bogus data (the bad case).
 
 
     """
--- a/src/gpuarray_blas_cuda_cublas.c
+++ b/src/gpuarray_blas_cuda_cublas.c
@@ -31,7 +31,7 @@ static const char *estr(cublasStatus_t e
   case CUBLAS_STATUS_NOT_INITIALIZED:
     return "(cublas) Library not initialized.";
   case CUBLAS_STATUS_ALLOC_FAILED:
-    return "(cublas) GPU ressource allocation failed.";
+    return "(cublas) GPU resource allocation failed.";
   case CUBLAS_STATUS_INVALID_VALUE:
     return "(cublas) Invalid value.";
   case CUBLAS_STATUS_ARCH_MISMATCH:
--- a/src/gpuarray_blas_opencl_clblas.c
+++ b/src/gpuarray_blas_opencl_clblas.c
@@ -75,7 +75,7 @@ static const char *estr(clblasStatus err
   case clblasInsufficientMemVecY:
     return "memory object for vector Y is too small";
   default:
-    return "Unknow error";
+    return "Unknown error";
   }
 }
 
--- a/src/gpuarray_blas_opencl_clblast.c
+++ b/src/gpuarray_blas_opencl_clblast.c
@@ -85,7 +85,7 @@ static const char *estr(CLBlastStatusCod
   case CLBlastUnexpectedError:
     return "Unexpected error";
   default:
-    return "Unknow error";
+    return "Unknown error";
   }
 }
 
--- a/src/gpuarray_buffer_opencl.c
+++ b/src/gpuarray_buffer_opencl.c
@@ -275,7 +275,7 @@ gpudata *cl_make_buf(gpucontext *c, cl_m
   CL_CHECKN(ctx->err, clGetMemObjectInfo(buf, CL_MEM_CONTEXT, sizeof(buf_ctx),
                                          &buf_ctx, NULL));
   if (buf_ctx != ctx->ctx) {
-    error_set(ctx->err, GA_VALUE_ERROR, "Requested context doesn't macth object context");
+    error_set(ctx->err, GA_VALUE_ERROR, "Requested context doesn't match object context");
     return NULL;
   }