Skip to content

Commit 3c88005

Browse files
committed
merge from master
2 parents 61a21a8 + ee4340a commit 3c88005

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

scripts/oneapi.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
sys.path.insert(0, os.path.abspath(join('source','conf')))
4848
import common_conf
4949

50+
oneapi_spec_version = common_conf.env['oneapi_version']
5051
args = None
5152

5253

@@ -237,11 +238,11 @@ def stage_publish(root, target=None):
237238
root_only(root)
238239
local_top = 'site'
239240
local_versions = join(local_top, 'versions')
240-
local_versions_x = join(local_versions, common_conf.oneapi_spec_version)
241+
local_versions_x = join(local_versions, oneapi_spec_version)
241242
local_versions_latest = join(local_versions, 'latest')
242243
s3_top = 's3://%s' % (staging_host)
243244
s3_versions = '%s/versions' % s3_top
244-
s3_versions_x = '%s/%s' % (s3_versions,common_conf.oneapi_spec_version)
245+
s3_versions_x = '%s/%s' % (s3_versions, oneapi_spec_version)
245246
s3_versions_latest = '%s/latest' % s3_versions
246247

247248
# Sync everything but versions
@@ -299,7 +300,7 @@ def site(root, target=None):
299300
# Build the site. It will have everything but the older versions
300301
site = 'site'
301302
versions = join(site,'versions')
302-
versions_x = join(versions, common_conf.oneapi_spec_version)
303+
versions_x = join(versions, oneapi_spec_version)
303304
pdf = join('build','latex','oneAPI-spec.pdf')
304305
html = join('build','html')
305306
rm(site)

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
author = u'Intel'
2727

2828
# The short X.Y version
29-
version = u'0.7'
29+
version = env['oneapi_version']
3030
# The full version, including alpha/beta/rc tags
3131
release = version
3232

source/conf/common_conf.py

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import string
2+
13
extensions = [
24
'notfound.extension',
35
'sphinx.ext.autodoc',
@@ -15,36 +17,44 @@
1517
'breathe',
1618
]
1719

18-
rst_prolog = """
20+
env = {
21+
'oneapi_version': '0.7',
22+
'l0_version': '0.91',
23+
}
24+
25+
prolog_template = string.Template("""
1926
.. |dpcpp_full_name| replace:: oneAPI Data Parallel C++
20-
.. |dpcpp_version| replace:: 0.7
27+
.. |dpcpp_version| replace:: $oneapi_version
2128
.. |dpl_full_name| replace:: oneAPI DPC++ Library
22-
.. |dpl_version| replace:: 0.7
29+
.. |dpl_version| replace:: $oneapi_version
2330
.. |ccl_full_name| replace:: oneAPI Collective Communications Library
24-
.. |ccl_version| replace:: 0.7
31+
.. |ccl_version| replace:: $oneapi_version
2532
.. |dal_full_name| replace:: oneAPI Data Analytics Library
2633
.. |dal_short_name| replace:: oneDAL
27-
.. |dal_version| replace:: 0.7
34+
.. |dal_version| replace:: $oneapi_version
2835
.. |dal_namespace| replace:: daal
2936
.. |dnn_full_name| replace:: oneAPI Deep Neural Network Library
30-
.. |dnn_version| replace:: 0.7
37+
.. |dnn_version| replace:: $oneapi_version
3138
.. |l0_full_name| replace:: oneAPI Level Zero
32-
.. |l0_version| replace:: 0.91
39+
.. |l0_version| replace:: $l0_version
3340
.. |tbb_full_name| replace:: oneAPI Threading Building Blocks
34-
.. |tbb_version| replace:: 0.7
41+
.. |tbb_version| replace:: $oneapi_version
3542
.. |vpl_full_name| replace:: oneAPI Video Processing Library
36-
.. |vpl_version| replace:: 0.7
43+
.. |vpl_version| replace:: $oneapi_version
3744
.. |mkl_full_name| replace:: oneAPI Math Kernel Library
38-
.. |mkl_version| replace:: 0.7
39-
"""
45+
.. |mkl_version| replace:: $oneapi_version
46+
.. _`Level Zero Specification`: https://spec.oneapi.com/versions/$oneapi_version/oneL0/index.html
47+
""")
48+
49+
rst_prolog = prolog_template.substitute(env)
50+
4051

4152
# for substitutions in code blocks and sphinx-prompts:
4253
substitutions = [
4354
('|dal_short_name|', 'oneDAL'),
4455
('|daal_in_code|', 'daal')
4556
]
4657

47-
oneapi_spec_version = '0.6.0'
4858

4959
primary_domain = 'cpp'
5060

source/elements/l0/source/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,5 @@ architectures, such as FPGAs.
4141
Detailed API Descriptions
4242
-------------------------
4343

44-
The detailed specification for Level Zero is available `online`_.
45-
46-
.. _`online`: https://spec.oneapi.com/versions/latest/oneL0/index.html
44+
The detailed specification can be found online in the `Level Zero
45+
Specification`_.

source/versions.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ updates.
1717
Version Date View
1818
======== ========== =========
1919
`0.7`_ 03/26/2020 `HTML <https://spec.oneapi.com/versions/0.7/>`__ `PDF <https://spec.oneapi.com/versions/0.7/oneAPI-spec.pdf>`__
20-
`0.6`_ 01/31/2020 `HTML <https://spec.oneapi.com/versions/0.6.0/>`__ `PDF <https://spec.oneapi.com/versions/0.6.0/oneAPI-spec.pdf>`__
2120
`0.5`_ 11/17/2019 `HTML <https://spec.oneapi.com/versions/0.5.0/>`__
2221
======== ========== =========
2322

@@ -31,8 +30,6 @@ between oneAPI version and component versions.
3130
+=========+============+========+========+========+========+========+========+========+========+
3231
| `0.7`_ | .91 | 0.7 |
3332
+---------+------------+--------+--------+--------+--------+--------+--------+--------+--------+
34-
| `0.6`_ | .91 | 0.6 |
35-
+---------+------------+--------+--------+--------+--------+--------+--------+--------+--------+
3633
| `0.5`_ | 0.5 |
3734
+---------+------------+--------+--------+--------+--------+--------+--------+--------+--------+
3835

@@ -42,9 +39,6 @@ Release Notes
4239
0.7
4340
---
4441

45-
0.6
46-
---
47-
4842
0.5
4943
---
5044

0 commit comments

Comments
 (0)