diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f79c22be5c322fdaf2450b2e4dc05a6100858b3a..fb90b51291951d952bf30c24c3fa7c08030a53d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,18 @@ Python 2.7 AMD CPU: - amd-cl-cpu except: - tags +Python 2.6 AMD CPU: + script: + - export PY_EXE=python2.6 + - 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: + - python2.6 + - amd-cl-cpu + except: + - tags Python 3.4 AMD CPU: script: - export PY_EXE=python3.4 diff --git a/loopy/statistics.py b/loopy/statistics.py index 7281cd2b2cc06f3b9d578769609037aafc880e0f..76345f097b9c3100a9a74ece5b65af94ec276454 100755 --- a/loopy/statistics.py +++ b/loopy/statistics.py @@ -60,8 +60,9 @@ class ToCountMap: def __mul__(self, other): if isinstance(other, isl.PwQPolynomial): - return ToCountMap({index: self.dict[index]*other - for index in self.dict.keys()}) + return ToCountMap(dict( + (index, self.dict[index]*other) + for index in self.dict.keys())) else: raise ValueError("ToCountMap: Attempted to multiply " "ToCountMap by {} {}."