diff --git a/aksetup_helper.py b/aksetup_helper.py index 8fd58f2b9bae4a0141cd5d3e0ba6fd9144160df4..de3ae069e651c178a258a7f2b49890150aaf5b6c 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -936,7 +936,7 @@ def has_flag(compiler, flagname): def cpp_flag(compiler): """Return the -std=c++[11/14] compiler flag. - The c++14 is prefered over c++11 (when it is available). + The c++14 is preferred over c++11 (when it is available). """ if has_flag(compiler, "-std=gnu++14"): return "-std=gnu++14" diff --git a/doc/types.rst b/doc/types.rst index dbd9794947c9188c008742e0d93b3324abcdf66b..e22e88036b4af55b682e52279bca303cdfd45db7 100644 --- a/doc/types.rst +++ b/doc/types.rst @@ -23,7 +23,7 @@ see that a cl_long is 64 bit unsigned integer. Use the module as follows: .. note:: - The OpenCL type ``bool`` does not have a correpsonding :mod:`numpy` type defined here, + The OpenCL type ``bool`` does not have a corresponding :mod:`numpy` type defined here, because OpenCL does not specify the in-memory representation (or even the storage size) for this type. diff --git a/examples/black-hole-accretion.py b/examples/black-hole-accretion.py index e4cdbbbe612299e8d63aec2f46359f06cdc706ea..45e164685e324db108605aa46b44d6704c2c5030 100644 --- a/examples/black-hole-accretion.py +++ b/examples/black-hole-accretion.py @@ -23,7 +23,7 @@ # - Herve Aussel for his part of code of black body spectrum # - Didier Pelat for his help to perform this work # - Jean-Pierre Luminet for his article published in 1979 -# - Numerical Recipies for Runge Kutta recipies +# - Numerical Recipes for Runge Kutta recipes # - Luc Blanchet for his disponibility about my questions in General Relativity # - Pierre Lena for his passion about science and vulgarisation diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 5b7a5e8e30f065ae27b5ec6d656349183b43e09c..afc3007078d3a6685da7f4b217be2a3c21b92278 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -1634,7 +1634,7 @@ def enqueue_copy(queue, dest, src, **kwargs): The size of the transfer is controlled by the size of the of the host-side buffer. If the host-side buffer is a :class:`numpy.ndarray`, you can control the transfer size by - transfering into a smaller 'view' of the target array, like this:: + transferring into a smaller 'view' of the target array, like this:: cl.enqueue_copy(queue, large_dest_numpy_array[:15], src_buffer) @@ -1960,7 +1960,7 @@ def enqueue_svm_memfill(queue, dest, pattern, byte_count=None, wait_for=None): def enqueue_svm_migratemem(queue, svms, flags, wait_for=None): """ :arg svms: a collection of Python buffer objects (e.g. :mod:`numpy` - arrrays), optionally wrapped in :class:`SVM` objects. + arrays), optionally wrapped in :class:`SVM` objects. :arg flags: a combination of :class:`mem_migration_flags` |std-enqueue-blurb| diff --git a/pyopencl/cl/pyopencl-random123/array.h b/pyopencl/cl/pyopencl-random123/array.h index 8af5a4f4520686e0bec582e80c901257ec287bad..242761241ccb46f04760020091358a37983eaabe 100644 --- a/pyopencl/cl/pyopencl-random123/array.h +++ b/pyopencl/cl/pyopencl-random123/array.h @@ -146,7 +146,7 @@ inline R123_CUDA_DEVICE value_type assemble_from_u32(uint32_t *p32){ constant-folded/optimized away by the compiler, so only the \ overflow tests (!!v[i]) remain to be done at runtime. For \ small values of N, it would be better to do this as an \ - uncondtional sequence of adc. An experiment/optimization \ + unconditional sequence of adc. An experiment/optimization \ for another day... \ N.B. The weird subscripting: v[_N>3?3:0] is to silence \ a spurious error from icpc \