Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed project to charm4py. Added 0.11 release notes
- Loading branch information
1 parent
fa28ce1
commit 13c6887
Showing
90 changed files
with
462 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
#ignore build files | ||
# ignore build files | ||
docs/_build/ | ||
build/ | ||
charm_src/ | ||
charmpy/charmlib/*.o | ||
charmpy/charmlib/*.so | ||
charmpy/charmlib/charmlib_cython.c | ||
charmpy/charmlib/_charmlib_cffi.c | ||
charmpy/charmlib/build/ | ||
charm4py/_version.py | ||
charm4py/charmlib/*.o | ||
charm4py/charmlib/*.so | ||
charm4py/charmlib/charmlib_cython.c | ||
charm4py/charmlib/_charmlib_cffi.c | ||
charm4py/charmlib/build/ | ||
__pycache__ | ||
|
||
#ignore some common tmp files | ||
# ignore some common tmp files | ||
*.swp | ||
*.pyc | ||
|
||
#ignore binaries | ||
charmpy/.libs/ | ||
# ignore binaries | ||
charm4py/.libs/ | ||
charmrun/charmrun | ||
|
||
#ignore macOS specific files | ||
# ignore macOS specific files | ||
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import sys | ||
if sys.version_info < (2, 7, 0): | ||
raise RuntimeError("charm4py requires Python 2.7 or higher") | ||
import atexit | ||
import os | ||
import subprocess | ||
|
||
|
||
charm4py_version = "unknown" | ||
try: | ||
from ._version import version as charm4py_version | ||
except: | ||
try: | ||
charm4py_version = subprocess.check_output(['git', 'describe'], | ||
cwd=os.path.dirname(__file__)).rstrip().decode() | ||
except: | ||
pass | ||
|
||
if os.environ.get('CHARM_NOLOAD', '0') == '0': | ||
from .charm import charm, readonlies, Options | ||
Reducer = charm.reducers | ||
|
||
CkMyPe = charm.myPe | ||
CkNumPes = charm.numPes | ||
CkExit = charm.exit | ||
CkAbort = charm.abort | ||
|
||
from .entry_method import when, threaded | ||
|
||
from .chare import Chare, Group, Array, ArrayMap | ||
|
||
|
||
def checkCharmStarted(): | ||
if not charm.started: | ||
print('Program is exiting but charm was not started: charm.start() was not ' | ||
'called or error happened before start') | ||
|
||
|
||
atexit.register(checkCharmStarted) |
Oops, something went wrong.