Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Sepanski
loopy
Commits
07510967
Commit
07510967
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix, test Python 2.6
parent
957258ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
loopy/statistics.py
+3
-2
3 additions, 2 deletions
loopy/statistics.py
with
15 additions
and
2 deletions
.gitlab-ci.yml
+
12
−
0
View file @
07510967
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
loopy/statistics.py
+
3
−
2
View file @
07510967
...
...
@@ -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 {} {}.
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment