diff --git a/.travis.yml b/.travis.yml index c02ba146db1441958a5cac91da3ecf863bbd1feb..060b725fceb3b3bbf83ce23c3f08eb87d42b64d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,34 @@ matrix: - sudo: required services: - docker + arch: amd64 env: - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 - sudo: required services: - docker + arch: amd64 env: - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 - PRE_CMD=linux32 + - sudo: required + services: + - docker + arch: ppc64le + env: + - DOCKER_IMAGE=quay.io/pypa/manylinux2014_ppc64le + - sudo: required + services: + - docker + arch: arm64 + env: + - DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64 + - sudo: required + services: + - docker + arch: s390x + env: + - DOCKER_IMAGE=quay.io/pypa/manylinux2014_s390x install: - docker pull $DOCKER_IMAGE script: diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 7f276a814ff6e37a9f3854009c8d3bc1f89c55c7..0f30234371d64bb10e465a29e48e61b2e2f6c908 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -161,7 +161,7 @@ if not _PYPY: if get_cl_header_version() >= (1, 1): from pyopencl._cl import ( # noqa - UserEvent, + UserEvent, ) if get_cl_header_version() >= (1, 2): from pyopencl._cl import ( # noqa diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index 430199b98b62b0e14da0f34441384b9d219054e6..4b0e293cf6f616767dd9b6c626080768fe0cfc1f 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -296,9 +296,9 @@ def to_bin(n): return ''.join(digs[::-1]) -def _padded_bin(i, l): +def _padded_bin(i, nbits): s = to_bin(i) - while len(s) < l: + while len(s) < nbits: s = '0' + s return s diff --git a/pyopencl/capture_call.py b/pyopencl/capture_call.py index 09d483a57ad6d87387e519d8a72fea79142f3244..527d8caed96f70264762e75b211f2247b67c2495 100644 --- a/pyopencl/capture_call.py +++ b/pyopencl/capture_call.py @@ -51,8 +51,8 @@ def capture_kernel_call(kernel, filename, queue, g_size, l_size, *args, **kwargs cg("") cg('CODE = r"""//CL//') - for l in source.split("\n"): - cg(l) + for line in source.split("\n"): + cg(line) cg('"""') # {{{ invocation diff --git a/pyopencl/invoker.py b/pyopencl/invoker.py index b580c5375e298ff5d5864c52cebd656af42eac89..4d01888fc2a40297b19ce904ff90ea5072707fd6 100644 --- a/pyopencl/invoker.py +++ b/pyopencl/invoker.py @@ -162,7 +162,7 @@ def generate_specific_arg_handling_body(function_name, "some (but not all) of the target devices mishandle " "struct kernel arguments (hence the workaround is " "disabled".format( - knl_name=function_name, stacklevel=2)) + knl_name=function_name), stacklevel=2) if arg_dtype == np.complex64: arg_char = "f" diff --git a/travis/build-wheels.sh b/travis/build-wheels.sh index 3d92524c41804d7649c4831b6c7c0ad65ac614d5..422597e61b9d7eb1f725e58338dc1106ddd2bff4 100755 --- a/travis/build-wheels.sh +++ b/travis/build-wheels.sh @@ -8,7 +8,7 @@ yum install -y git yum curl -L -O http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -xf ruby-2.1.2.tar.gz cd ruby-2.1.2 -./configure +./configure --disable-install-doc --disable-install-rdoc make -j4 make install cd ..