Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephan Seitz
pystencils
Commits
c3da3241
Commit
c3da3241
authored
6 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Load README in setup.py to appear on PyPI
- updates in readme text - added release script
parent
d01a0422
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-3
5 additions, 3 deletions
README.md
release.sh
+13
-0
13 additions, 0 deletions
release.sh
setup.py
+7
-1
7 additions, 1 deletion
setup.py
with
25 additions
and
4 deletions
README.md
+
5
−
3
View file @
c3da3241
...
...
@@ -7,8 +7,10 @@ pystencils
Run blazingly fast stencil codes on numpy arrays.
*pystencils*
uses sympy to define stencil operations, that can be executed on numpy array.
It runs faster than normal numpy code and even as Cython and numba.
*pystencils*
uses sympy to define stencil operations, that can be executed on numpy arrays.
Exploiting the stencil structure makes
*pystencils*
run faster than normal numpy code and even as Cython and numba,
[
as demonstrated in this notebook
](
http://pycodegen.pages.walberla.net/pystencils/notebooks/demo_benchmark.html
)
.
Here is a code snippet that computes the average of neighboring cells:
```
python
...
...
@@ -48,7 +50,7 @@ pip install pystencils[interactive]
Without
`[interactive]`
you get a minimal version with very little dependencies.
All options:
-
`gpu`
: use this if
nV
idia GPU is available and CUDA is installed
-
`gpu`
: use this if
an Nv
idia GPU is available and CUDA is installed
-
`alltrafos`
: pulls in additional dependencies for loop simplification e.g. libisl
-
`bench_db`
: functionality to store benchmark result in object databases
-
`interactive`
: installs dependencies to work in Jupyter including image I/O, plotting etc.
...
...
This diff is collapsed.
Click to expand it.
release.sh
0 → 100644
+
13
−
0
View file @
c3da3241
#!/bin/bash
echo
"Existing versions"
git tag
-l
|
grep
release
echo
"Enter the next version"
read
new_version
git tag
-s
release/
${
new_version
}
git push origin master release/
${
new_version
}
python setup.py sdist bdist_wheel
rm
-rf
dist
twine upload dist/
*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
7
−
1
View file @
c3da3241
...
...
@@ -47,10 +47,16 @@ class SimpleTestRunner(distutils.cmd.Command):
for
test
in
quick_tests
:
self
.
_run_tests_in_module
(
test
)
def
readme
():
with
open
(
'
README.md
'
)
as
f
:
return
f
.
read
()
setup
(
name
=
'
pystencils
'
,
version
=
version_number_from_git
(),
description
=
'
Python Stencil Compiler based on sympy as numpy
'
,
description
=
'
Speeding up stencil computations on CPUs and GPUs
'
,
long_description
=
readme
(),
long_description_content_type
=
"
text/markdown
"
,
author
=
'
Martin Bauer
'
,
license
=
'
AGPLv3
'
,
author_email
=
'
martin.bauer@fau.de
'
,
...
...
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