Skip to content

Commit a94f957

Browse files
authored
warnings: delete duplicate names (#106)
Co-authored-by: Robert Cohn <[email protected]>
1 parent 5ec7b10 commit a94f957

File tree

310 files changed

+20
-1449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+20
-1449
lines changed

scripts/cleanup-mkl.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from os import walk
2+
from os.path import join
3+
import re
4+
5+
r = re.compile(r'\W+:name: (include-files|note|note-1|note-2|note-3|syntax|description|input-parameters|output-parameters|example)')
6+
7+
for root, dirs, files in walk("."):
8+
for file in files:
9+
if not file.endswith(".rst"):
10+
continue
11+
p = join(root, file)
12+
print(p)
13+
in_lines = open(p).readlines()
14+
with open(p, 'w') as fout:
15+
for line in in_lines:
16+
if r.match(line):
17+
print('omitting:', line)
18+
else:
19+
fout.write(line)
20+

source/elements/oneMKL/source/domains/blas/asum-usm-version.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ asum (USM Version)
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -49,7 +48,6 @@ asum (USM Version)
4948

5049

5150
.. rubric:: Description
52-
:name: description
5351
:class: sectiontitle
5452

5553

@@ -69,7 +67,6 @@ asum (USM Version)
6967

7068

7169
.. rubric:: Input Parameters
72-
:name: input-parameters
7370
:class: sectiontitle
7471

7572

@@ -103,7 +100,6 @@ asum (USM Version)
103100

104101

105102
.. rubric:: Output Parameters
106-
:name: output-parameters
107103
:class: sectiontitle
108104

109105

source/elements/oneMKL/source/domains/blas/asum.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ asum
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -46,7 +45,6 @@ asum
4645

4746

4847
.. rubric:: Description
49-
:name: description
5048
:class: sectiontitle
5149

5250

@@ -66,7 +64,6 @@ asum
6664

6765

6866
.. rubric:: Input Parameters
69-
:name: input-parameters
7067
:class: sectiontitle
7168

7269

@@ -94,7 +91,6 @@ asum
9491

9592

9693
.. rubric:: Output Parameters
97-
:name: output-parameters
9894
:class: sectiontitle
9995

10096

source/elements/oneMKL/source/domains/blas/axpy-usm-version.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ axpy (USM Version)
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -44,7 +43,6 @@ axpy (USM Version)
4443

4544

4645
.. rubric:: Description
47-
:name: description
4846
:class: sectiontitle
4947

5048

@@ -72,7 +70,6 @@ axpy (USM Version)
7270

7371

7472
.. rubric:: Input Parameters
75-
:name: input-parameters
7673
:class: sectiontitle
7774

7875

@@ -122,7 +119,6 @@ axpy (USM Version)
122119

123120

124121
.. rubric:: Output Parameters
125-
:name: output-parameters
126122
:class: sectiontitle
127123

128124

source/elements/oneMKL/source/domains/blas/axpy.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ axpy
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -41,7 +40,6 @@ axpy
4140

4241

4342
.. rubric:: Description
44-
:name: description
4543
:class: sectiontitle
4644

4745

@@ -69,7 +67,6 @@ axpy
6967

7068

7169
.. rubric:: Input Parameters
72-
:name: input-parameters
7370
:class: sectiontitle
7471

7572

@@ -112,7 +109,6 @@ axpy
112109

113110

114111
.. rubric:: Output Parameters
115-
:name: output-parameters
116112
:class: sectiontitle
117113

118114

source/elements/oneMKL/source/domains/blas/copy-usm-version.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ copy (USM Version)
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -44,7 +43,6 @@ copy (USM Version)
4443

4544

4645
.. rubric:: Description
47-
:name: description
4846
:class: sectiontitle
4947

5048

@@ -65,7 +63,6 @@ copy (USM Version)
6563

6664

6765
.. rubric:: Input Parameters
68-
:name: input-parameters
6966
:class: sectiontitle
7067

7168

@@ -103,7 +100,6 @@ copy (USM Version)
103100

104101

105102
.. rubric:: Output Parameters
106-
:name: output-parameters
107103
:class: sectiontitle
108104

109105

source/elements/oneMKL/source/domains/blas/copy.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ copy
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -41,7 +40,6 @@ copy
4140

4241

4342
.. rubric:: Description
44-
:name: description
4543
:class: sectiontitle
4644

4745

@@ -62,7 +60,6 @@ copy
6260

6361

6462
.. rubric:: Input Parameters
65-
:name: input-parameters
6663
:class: sectiontitle
6764

6865

@@ -94,7 +91,6 @@ copy
9491

9592

9693
.. rubric:: Output Parameters
97-
:name: output-parameters
9894
:class: sectiontitle
9995

10096

source/elements/oneMKL/source/domains/blas/dot-usm-version.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dot (USM Version)
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -47,7 +46,6 @@ dot (USM Version)
4746

4847

4948
.. rubric:: Description
50-
:name: description
5149
:class: sectiontitle
5250

5351

@@ -61,7 +59,6 @@ dot (USM Version)
6159

6260

6361
.. rubric:: Note
64-
:name: note
6562
:class: NoteTipHead
6663

6764

@@ -74,7 +71,6 @@ dot (USM Version)
7471

7572

7673
.. rubric:: Input Parameters
77-
:name: input-parameters
7874
:class: sectiontitle
7975

8076

@@ -120,7 +116,6 @@ dot (USM Version)
120116

121117

122118
.. rubric:: Output Parameters
123-
:name: output-parameters
124119
:class: sectiontitle
125120

126121

source/elements/oneMKL/source/domains/blas/dot.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dot
1515

1616

1717
.. rubric:: Syntax
18-
:name: syntax
1918
:class: sectiontitle
2019

2120

@@ -44,7 +43,6 @@ dot
4443

4544

4645
.. rubric:: Description
47-
:name: description
4846
:class: sectiontitle
4947

5048

@@ -58,7 +56,6 @@ dot
5856

5957

6058
.. rubric:: Note
61-
:name: note
6259
:class: NoteTipHead
6360

6461

@@ -71,7 +68,6 @@ dot
7168

7269

7370
.. rubric:: Input Parameters
74-
:name: input-parameters
7571
:class: sectiontitle
7672

7773

@@ -110,7 +106,6 @@ dot
110106

111107

112108
.. rubric:: Output Parameters
113-
:name: output-parameters
114109
:class: sectiontitle
115110

116111

source/elements/oneMKL/source/domains/blas/dotc-usm-version.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dotc (USM Version)
1616

1717

1818
.. rubric:: Syntax
19-
:name: syntax
2019
:class: sectiontitle
2120

2221

@@ -43,7 +42,6 @@ dotc (USM Version)
4342

4443

4544
.. rubric:: Description
46-
:name: description
4745
:class: sectiontitle
4846

4947

@@ -59,7 +57,6 @@ dotc (USM Version)
5957

6058

6159
.. rubric:: Input Parameters
62-
:name: input-parameters
6360
:class: sectiontitle
6461

6562

@@ -105,7 +102,6 @@ dotc (USM Version)
105102

106103

107104
.. rubric:: Output Parameters
108-
:name: output-parameters
109105
:class: sectiontitle
110106

111107

0 commit comments

Comments
 (0)