diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ea075d194a9da75a1c18d180c65239be83eb85e..2ea56e3645e2c4cb85fc8d7d8a75508e58ccd63b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,18 +85,18 @@ Python 3.6 POCL: except: - tags -# PyPy AMD CPU: -# script: -# - export PY_EXE=pypy -# - export PYOPENCL_TEST="amd:pu" -# - export EXTRA_INSTALL="numpy mako" -# - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh -# - ". ./build-and-test-py-project.sh" -# tags: -# - pypy -# - amd-cl-cpu -# except: -# - tags +PyPy POCL: + script: + - export PY_EXE=pypy + - export PYOPENCL_TEST="portable" + - export EXTRA_INSTALL="numpy mako" + - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh + - ". ./build-and-test-py-project.sh" + tags: + - pypy + - amd-cl-cpu + except: + - tags CentOS binary: script: diff --git a/loopy/target/cuda.py b/loopy/target/cuda.py index 2bdffb5aa69bdc0f72fe12a58faa6d0e78920e0f..38abc972906ae54d58ebc285069b98267a064946 100644 --- a/loopy/target/cuda.py +++ b/loopy/target/cuda.py @@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +import sys import numpy as np from pytools import memoize_method @@ -45,7 +46,7 @@ class vec: # noqa def _create_vector_types(): field_names = ["x", "y", "z", "w"] - if tuple.__itemsize__ * 8 == 32: + if sys.maxsize == 2**32-1: long_dtype = np.int32 ulong_dtype = np.uint32 else: