Skip to content

Commit 1116428

Browse files
authored
Revert "Merge master to gold/2021 (#662)"
This reverts commit 6c8d202.
1 parent 6c8d202 commit 1116428

File tree

75 files changed

+2953
-8559
lines changed

Some content is hidden

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

75 files changed

+2953
-8559
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
[![Build Sphinx](https://github.com/IntelPython/dpnp/workflows/Build%20Sphinx/badge.svg)](https://intelpython.github.io/dpnp)
44

55
# DPNP: NumPy-like API accelerated with SYCL
6-
[API coverage summary](https://intelpython.github.io/dpnp/reference/comparison.html#summary)
76

8-
[Full documentation](https://intelpython.github.io/dpnp/)
7+
Full documentation: https://intelpython.github.io/dpnp/
98

10-
[DPNP C++ backend documentation](https://intelpython.github.io/dpnp/backend_doc/)
9+
DPNP C++ backend documentation: https://intelpython.github.io/dpnp/backend_doc/
1110

1211
The project contains:
1312
- Python interface with NumPy-like API

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ requirements:
1010
- setuptools
1111
- numpy-devel >=1.18
1212
- cython
13-
- cmake >=3.16.5
13+
- cmake
1414
- dpctl >=0.5.0a0
1515
- mkl-devel >=2021.1.1
1616
- wheel

doc/comparison_generator.py

Lines changed: 9 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
import inspect
33

44

5-
def calc_totals(base_mod, ref_mods, cls):
6-
base_obj, _ = import_mod(base_mod, cls)
7-
base_funcs = get_functions(base_obj)
8-
9-
totals = [len(base_funcs)]
10-
for ref_mod in ref_mods:
11-
ref_obj, _ = import_mod(ref_mod, cls)
12-
ref_funcs = get_functions(ref_obj)
13-
14-
totals.append(len(ref_funcs & base_funcs))
15-
16-
return totals
17-
18-
195
def get_functions(obj):
206
funcs = []
217
for n, _ in inspect.getmembers(obj):
@@ -45,11 +31,19 @@ def import_mod(mod, cls):
4531

4632

4733
def generate_totals(base_mod, ref_mods, base_type, ref_types, cls):
34+
base_obj, _ = import_mod(base_mod, cls)
35+
base_funcs = get_functions(base_obj)
36+
4837
all_types = [base_type] + ref_types
4938
header = ', '.join('**{} Total**'.format(t) for t in all_types)
5039
header = ' {}'.format(header)
5140

52-
totals = calc_totals(base_mod, ref_mods, cls)
41+
totals = [len(base_funcs)]
42+
for ref_mod in ref_mods:
43+
ref_obj, _ = import_mod(ref_mod, cls)
44+
ref_funcs = get_functions(ref_obj)
45+
46+
totals.append(len(ref_funcs & base_funcs))
5347

5448
cells = ', '.join(str(t) for t in totals)
5549
total = ' {}'.format(cells)
@@ -93,93 +87,6 @@ def section(header, base_mod, ref_mods, base_type, ref_types, cls=None):
9387
return [header, '~' * len(header), ''] + comparison_rst + ['']
9488

9589

96-
def generate_totals_numbers(header, base_mod, ref_mods, cls=None):
97-
base_obj, _ = import_mod(base_mod, cls)
98-
base_funcs = get_functions(base_obj)
99-
100-
counter_funcs = [len(base_funcs)]
101-
for ref_mod in ref_mods:
102-
ref_obj, _ = import_mod(ref_mod, cls)
103-
ref_funcs = get_functions(ref_obj)
104-
105-
counter_funcs.append(len(ref_funcs & base_funcs))
106-
107-
totals = [header] + calc_totals(base_mod, ref_mods, cls)
108-
109-
cells = ', '.join(str(t) for t in totals)
110-
total = ' {}'.format(cells)
111-
112-
return total, counter_funcs
113-
114-
115-
def generate_table_numbers(base_mod, ref_mods, base_type, ref_types, cls=None):
116-
all_types = ['Name'] + [base_type] + ref_types
117-
header = ', '.join('**{}**'.format(t) for t in all_types)
118-
header = ' {}'.format(header)
119-
120-
rows = []
121-
counters_funcs = []
122-
123-
totals = []
124-
totals_, counters_funcs_ = generate_totals_numbers('Module-Level', base_mod, ref_mods)
125-
totals.append(totals_)
126-
counters_funcs.append(counters_funcs_)
127-
cells = ', '.join(str(t) for t in totals)
128-
total = ' {}'.format(cells)
129-
rows.append(total)
130-
131-
totals = []
132-
totals_, counters_funcs_ = generate_totals_numbers('Multi-Dimensional Array', base_mod, ref_mods, cls='ndarray')
133-
totals.append(totals_)
134-
counters_funcs.append(counters_funcs_)
135-
cells = ', '.join(str(t) for t in totals)
136-
total = ' {}'.format(cells)
137-
rows.append(total)
138-
139-
totals = []
140-
totals_, counters_funcs_ = generate_totals_numbers('Linear Algebra', base_mod + '.linalg',
141-
[m + '.linalg' for m in ref_mods])
142-
totals.append(totals_)
143-
counters_funcs.append(counters_funcs_)
144-
cells = ', '.join(str(t) for t in totals)
145-
total = ' {}'.format(cells)
146-
rows.append(total)
147-
148-
totals = []
149-
totals_, counters_funcs_ = generate_totals_numbers('Discrete Fourier Transform', base_mod + '.fft',
150-
[m + '.fft' for m in ref_mods])
151-
totals.append(totals_)
152-
counters_funcs.append(counters_funcs_)
153-
cells = ', '.join(str(t) for t in totals)
154-
total = ' {}'.format(cells)
155-
rows.append(total)
156-
157-
totals = []
158-
totals_, counters_funcs_ = generate_totals_numbers('Random Sampling', base_mod + '.random',
159-
[m + '.random' for m in ref_mods])
160-
totals.append(totals_)
161-
counters_funcs.append(counters_funcs_)
162-
cells = ', '.join(str(t) for t in totals)
163-
total = ' {}'.format(cells)
164-
rows.append(total)
165-
166-
counter_functions = []
167-
for i in range(len(counters_funcs[0])):
168-
counter = 0
169-
for j in range(len(counters_funcs)):
170-
counter += counters_funcs[j][i]
171-
counter_functions.append('{}'.format(counter))
172-
173-
summary = ['Total'] + counter_functions
174-
cells = ', '.join(str(t) for t in summary)
175-
summary_total = ' {}'.format(cells)
176-
rows.append(summary_total)
177-
178-
comparison_rst = ['.. csv-table::', ''] + [header] + rows
179-
180-
return ['Summary', '~' * len('Summary'), ''] + comparison_rst + ['']
181-
182-
18390
def generate():
18491
ref_mods = []
18592
ref_types = []
@@ -212,8 +119,6 @@ def generate():
212119
header = ' / '.join([base_ver] + ref_vers) + ' APIs'
213120
buf = ['**{}**'.format(header), '']
214121

215-
buf += generate_table_numbers(
216-
base_mod, ref_mods, base_type, ref_types)
217122
buf += section(
218123
'Module-Level',
219124
base_mod, ref_mods, base_type, ref_types)

doc/reference/creation.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Basic creation routines
2020
dpnp.zeros_like
2121
dpnp.full
2222
dpnp.full_like
23-
dpnp.vander
2423

2524

2625
Creation from other data

doc/reference/math.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,9 @@ Sums, products, differences
6767
dpnp.sum
6868
dpnp.cumprod
6969
dpnp.cumsum
70-
dpnp.nancumprod
71-
dpnp.nancumsum
7270
dpnp.nansum
7371
dpnp.nanprod
74-
dpnp.cross
7572
dpnp.diff
76-
dpnp.ediff1d
77-
dpnp.gradient
78-
dpnp.trapz
7973

8074

8175
Exponents and logarithms

dpnp/backend/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ else()
4242
if(UNIX)
4343
set(DPNP_ONEAPI_ROOT "/opt/intel/oneapi" CACHE PATH "Folder contains oneapi tool set")
4444
elseif(WIN32)
45-
set(DPNP_ONEAPI_ROOT "C:/Program Files (x86)/Intel/oneAPI" CACHE PATH "Folder contains oneapi tool set")
45+
set(DPNP_ONEAPI_ROOT "C:\Program Files (x86)\Intel\oneAPI" CACHE PATH "Folder contains oneapi tool set")
4646
else()
4747
message(FATAL_ERROR "Unsupported system ${CMAKE_SYSTEM}")
4848
endif()
@@ -54,10 +54,6 @@ option(DPNP_INSTALL_STRUCTURED "if FALSE, install package files into same direct
5454
option(DPNP_SYCL_QUEUE_MGR_ENABLE "Use external manager for SYCL queue" FALSE)
5555
option(DPNP_BACKEND_TESTS "Enable DPNP tests" FALSE)
5656

57-
if(DEFINED ENV{DPNP_DEBUG})
58-
set(DPNP_DEBUG_ENABLE $ENV{DPNP_DEBUG})
59-
endif()
60-
6157
message(STATUS "CMAKE_VERSION: ${CMAKE_VERSION}")
6258
message(STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}")
6359
message(STATUS "CMAKE_HOST_SYSTEM_NAME: ${CMAKE_HOST_SYSTEM_NAME}")
@@ -175,7 +171,6 @@ set(DPNP_SRC
175171
kernels/dpnp_krnl_fft.cpp
176172
kernels/dpnp_krnl_indexing.cpp
177173
kernels/dpnp_krnl_linalg.cpp
178-
kernels/dpnp_krnl_logic.cpp
179174
kernels/dpnp_krnl_manipulation.cpp
180175
kernels/dpnp_krnl_mathematical.cpp
181176
kernels/dpnp_krnl_random.cpp

dpnp/backend/examples/example9.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* to calculate sum of the given elements vector
3131
*
3232
* Possible compile line:
33-
* clang++ dpnp/backend/examples/example9.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example9
33+
* clang++ -g -fPIC examples/example9.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example9
3434
*
3535
*/
3636

@@ -54,7 +54,7 @@ int main(int, char**)
5454
result_verification += i;
5555
}
5656

57-
dpnp_sum_c<long, long>(&result, array, &size, 1, NULL, 0, NULL, NULL);
57+
dpnp_sum_c<long>(array, &result, size);
5858

5959
std::cout << "SUM() value: " << result << " verification value: " << result_verification << std::endl;
6060

0 commit comments

Comments
 (0)