Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
rscohn2 committed Mar 7, 2020
2 parents 244be55 + 3dd716b commit d17e323
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ production with::

python scripts/oneapi.py prod-publish

Then purge the CDN. Generate a list of URLs with::

python scripts/oneapi.py purge

------------
More Reading
------------
Expand Down
15 changes: 15 additions & 0 deletions scripts/oneapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@ def site(root, target=None):
tar.extractall(versions_x)
copytree(versions_x, join(versions, 'latest'))

def remove_elements(l, elements):
for e in elements:
if e in l:
l.remove(e)
return l

def purge(root, target=None):
root_only(root)
for (r,dirs,files) in os.walk('site', topdown=True):
r = r.replace('site/','')
dirs = remove_elements(dirs,['oneDAL', 'oneL0', 'oneMKL'])
for file in files:
print('http://spec.oneapi.com/%s/%s' % (r, file))

@action
def ci(root, target=None):
root_only(root)
Expand All @@ -324,6 +338,7 @@ def ci(root, target=None):
'latexpdf': build,
'prep': prep,
'prod-publish': prod_publish,
'purge': purge,
'site': site,
'spec-venv': spec_venv,
'stage-publish': stage_publish}
Expand Down
4 changes: 2 additions & 2 deletions source/elements/oneCCL/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ Intel has published an `open source implementation`_ with the Apache
license. The `open source implementation`_ includes a comprehensive
test suite. Consult the `README`_ for directions.

.. _`open source implementation`: https://github.com/intel/oneccl
.. _`README`: https://github.com/intel/oneccl/blob/master/README.md
.. _`open source implementation`: https://github.com/oneapi-src/oneCCL
.. _`README`: https://github.com/oneapi-src/oneCCL/blob/master/README.md

0 comments on commit d17e323

Please sign in to comment.