From 41c0d9ddd09f1989b7af02703f9ed972175504ee Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Wed, 4 Mar 2020 15:49:01 -0600 Subject: [PATCH 1/2] add command to generate akamai purge list --- README.rst | 4 ++++ scripts/oneapi.py | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.rst b/README.rst index f605750efa..09711eab34 100644 --- a/README.rst +++ b/README.rst @@ -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 ------------ diff --git a/scripts/oneapi.py b/scripts/oneapi.py index 738de8833d..61ee1ec0ea 100644 --- a/scripts/oneapi.py +++ b/scripts/oneapi.py @@ -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) @@ -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} From 3dd716b71ca4e6c9fc4a2e78ddd886876ff396ea Mon Sep 17 00:00:00 2001 From: Ekaterina Mekhnetsova Date: Fri, 6 Mar 2020 17:13:14 +0300 Subject: [PATCH 2/2] Update links to oneCCL repo (#74) --- source/elements/oneCCL/source/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/elements/oneCCL/source/introduction.rst b/source/elements/oneCCL/source/introduction.rst index d221398312..674edcb92f 100644 --- a/source/elements/oneCCL/source/introduction.rst +++ b/source/elements/oneCCL/source/introduction.rst @@ -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