Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoelfe committed Nov 16, 2022
1 parent d9a5daf commit dd8a66a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
with:
name: 'Wheel for Python ${{ matrix.python }}'
path: dist/pycistem*.whl
- name: Publish
if: contains(github.ref, 'tags')
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish
Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
wxlibflags = wxlibflags.strip()

# This code pulls come key compile info out of the config.log file
__version__ = "0.0.1"
__version__ = "0.1.3"
__compiler__ = "icpc"
__WX_FLAGS__ = wxflags + " -DwxUSE_GUI=0 -IcisTEM/build/icpc"
__CPP_FLAGS__ = "-fPIC -O3 -no-prec-div -no-prec-sqrt -w2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DEXPERIMENTAL -DMKL -mkl=sequential -fopenmp"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pycistem"
version = "0.1.0"
version = "0.1.3"
description = ""
authors = ["Johannes Elferich <[email protected]>"]
build = "build.py"
Expand Down
34 changes: 34 additions & 0 deletions tests/generate_runprofile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from pycistem.core import *

hosts= [
"prague",
"helsinki",
"budapest",
"palermo",
"istanbul",
"kyiv",
"bucharest",
"warsaw",
"barcelona",
"milano",
"manchester",
"sofia"
]

manager_command = "/groups/cryoadmin/software/CISTEM/2.0.0-alpha-70-d11eb1e/$command"
program_command = "/groups/elferich/cistem_binaries/$command"
num_threads =2
delay=100
rpm = RunProfileManager()
# 96 GPus
rp = RunProfile()
rp.name = "96GPUs"
rp.manager_command = manager_command
rp.RemoveAll()

for host in hosts:
for igpu in range(0,8):
rp.AddCommand(f'ssh -f {host} "unset CUDA_VISIBLE_DEVICES && export CUDA_VISIBLE_DEVICES={igpu} && {program_command}"',1,num_threads,False,0,delay)

rpm.AddProfile(rp)
rpm.WriteRunProfilesToDisk("/tmp/rr.txt",[0])

0 comments on commit dd8a66a

Please sign in to comment.