From 947c600a3586805130b6104dcd6ac3bec280e76a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 11 May 2020 13:00:57 -0500 Subject: [PATCH 1/5] ppc64le and aarch64 wheels --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.travis.yml b/.travis.yml index c02ba146..b1404dfa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,28 @@ 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: aarch64 + env: + - DOCKER_IAMGE=quay.io/pypa/manylinux2014_aarch64 install: - docker pull $DOCKER_IMAGE script: -- GitLab From 98791d7f9632ce93bea3dbf0d3b68251d26e308f Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 11 May 2020 13:52:17 -0500 Subject: [PATCH 2/5] Fix typo and add s390x --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b1404dfa..8ec989e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,13 @@ matrix: - docker arch: aarch64 env: - - DOCKER_IAMGE=quay.io/pypa/manylinux2014_aarch64 + - 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: -- GitLab From 7e407706ff9082a8c35978b03ce07cd93bd03e09 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 11 May 2020 13:55:12 -0500 Subject: [PATCH 3/5] Travis calls it arm64 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8ec989e1..060b725f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ matrix: - sudo: required services: - docker - arch: aarch64 + arch: arm64 env: - DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64 - sudo: required -- GitLab From cc05b79af82aa18e129831b4c6c1d7956ce938a0 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 11 May 2020 14:47:50 -0500 Subject: [PATCH 4/5] Disable doc and rdoc for temp ruby install --- travis/build-wheels.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/build-wheels.sh b/travis/build-wheels.sh index 3d92524c..422597e6 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 .. -- GitLab From a47fb61c6b31bc046fe2f4895e1fbe427f8d886b Mon Sep 17 00:00:00 2001 From: "[6~" Date: Mon, 11 May 2020 17:03:21 -0500 Subject: [PATCH 5/5] Placate flake8 3.8 --- pyopencl/__init__.py | 2 +- pyopencl/algorithm.py | 4 ++-- pyopencl/capture_call.py | 4 ++-- pyopencl/invoker.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 7f276a81..0f302343 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 430199b9..4b0e293c 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 09d483a5..527d8cae 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 b580c537..4d01888f 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" -- GitLab