Skip to content

Commit 2d7556b

Browse files
authored
remove MKL word from sources (#120)
1 parent beae23d commit 2d7556b

File tree

12 files changed

+25
-157
lines changed

12 files changed

+25
-157
lines changed

dpnp/backend/backend_iface.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* This header file is for interface Cython with C++.
28-
* It should not contains any backend specific headers (like SYCL or MKL) because
28+
* It should not contains any backend specific headers (like SYCL or math library) because
2929
* all included headers will be exposed in Cython compilation procedure
3030
*
3131
* We would like to avoid backend specific things in higher level Cython modules.
@@ -173,7 +173,7 @@ INP_DLLEXPORT void custom_prod_c(void* array, void* result, size_t size);
173173

174174
/**
175175
* @ingroup BACKEND_API
176-
* @brief MKL implementation of eig function
176+
* @brief math library implementation of eig function
177177
*
178178
* @param [in] array1 Input array.
179179
*
@@ -187,7 +187,7 @@ INP_DLLEXPORT void mkl_lapack_syevd_c(void* array1, void* result1, size_t size);
187187

188188
/**
189189
* @ingroup BACKEND_API
190-
* @brief MKL implementation of argsort function
190+
* @brief math library implementation of argsort function
191191
*
192192
* @param [in] array Input array with data.
193193
*
@@ -201,7 +201,7 @@ INP_DLLEXPORT void custom_argsort_c(void* array, void* result, size_t size);
201201

202202
/**
203203
* @ingroup BACKEND_API
204-
* @brief MKL implementation of sort function
204+
* @brief math library implementation of sort function
205205
*
206206
* @param [in] array Input array with data.
207207
*
@@ -215,7 +215,7 @@ INP_DLLEXPORT void custom_sort_c(void* array, void* result, size_t size);
215215

216216
/**
217217
* @ingroup BACKEND_API
218-
* @brief Custom implementation of cov function with MKL and PSTL
218+
* @brief Custom implementation of cov function with math library and PSTL
219219
*
220220
* @param [in] array Input array.
221221
*
@@ -231,7 +231,7 @@ INP_DLLEXPORT void custom_cov_c(void* array1_in, void* result1, size_t nrows, si
231231

232232
/**
233233
* @ingroup BACKEND_API
234-
* @brief MKL implementation of max function
234+
* @brief math library implementation of max function
235235
*
236236
* @param [in] array Input array with data.
237237
*
@@ -252,7 +252,7 @@ INP_DLLEXPORT void
252252

253253
/**
254254
* @ingroup BACKEND_API
255-
* @brief MKL implementation of mean function
255+
* @brief math library implementation of mean function
256256
*
257257
* @param [in] array Input array with data.
258258
*
@@ -273,7 +273,7 @@ INP_DLLEXPORT void
273273

274274
/**
275275
* @ingroup BACKEND_API
276-
* @brief MKL implementation of median function
276+
* @brief math library implementation of median function
277277
*
278278
* @param [in] array Input array with data.
279279
*
@@ -294,7 +294,7 @@ INP_DLLEXPORT void
294294

295295
/**
296296
* @ingroup BACKEND_API
297-
* @brief MKL implementation of min function
297+
* @brief math library implementation of min function
298298
*
299299
* @param [in] array Input array with data.
300300
*
@@ -315,7 +315,7 @@ INP_DLLEXPORT void
315315

316316
/**
317317
* @ingroup BACKEND_API
318-
* @brief MKL implementation of argmax function
318+
* @brief math library implementation of argmax function
319319
*
320320
* @param [in] array Input array with data.
321321
*
@@ -329,7 +329,7 @@ INP_DLLEXPORT void custom_argmax_c(void* array, void* result, size_t size);
329329

330330
/**
331331
* @ingroup BACKEND_API
332-
* @brief MKL implementation of argmin function
332+
* @brief math library implementation of argmin function
333333
*
334334
* @param [in] array Input array with data.
335335
*
@@ -343,7 +343,7 @@ INP_DLLEXPORT void custom_argmin_c(void* array, void* result, size_t size);
343343

344344
/**
345345
* @ingroup BACKEND_API
346-
* @brief MKL implementation of std function
346+
* @brief math library implementation of std function
347347
*
348348
* @param [in] array Input array with data.
349349
*
@@ -366,7 +366,7 @@ INP_DLLEXPORT void custom_std_c(
366366

367367
/**
368368
* @ingroup BACKEND_API
369-
* @brief MKL implementation of var function
369+
* @brief math library implementation of var function
370370
*
371371
* @param [in] array Input array with data.
372372
*
@@ -441,7 +441,7 @@ INP_DLLEXPORT void custom_elemwise_transpose_c(void* array1_in,
441441

442442
/**
443443
* @ingroup BACKEND_API
444-
* @brief MKL implementation of random number generator (gaussian continious distribution)
444+
* @brief math library implementation of random number generator (gaussian continious distribution)
445445
*
446446
* @param [in] size Number of elements in `result` arrays.
447447
*
@@ -453,7 +453,7 @@ INP_DLLEXPORT void mkl_rng_gaussian(void* result, size_t size);
453453

454454
/**
455455
* @ingroup BACKEND_API
456-
* @brief MKL implementation of random number generator (uniform distribution)
456+
* @brief math library implementation of random number generator (uniform distribution)
457457
*
458458
* @param [in] low Left bound of array values.
459459
*

dpnp/backend/backend_iface_fptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* This header file is for interface Cython with C++.
28-
* It should not contains any backend specific headers (like SYCL or MKL) because
28+
* It should not contains any backend specific headers (like SYCL or math library) because
2929
* all included headers will be exposed in Cython compilation procedure
3030
*
3131
* Also, this file should contains documentation on functions and types

dpnp/backend/backend_iface_fptr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* This header file is for interface Cython with C++.
28-
* It should not contains any backend specific headers (like SYCL or MKL) because
28+
* It should not contains any backend specific headers (like SYCL or math library) because
2929
* all included headers will be exposed in Cython compilation procedure
3030
*
3131
* We would like to avoid backend specific things in higher level Cython modules.

dpnp/backend/custom_kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void custom_blas_gemm_c(void* array1_in, void* array2_in, void* result1, size_t
5353

5454
if constexpr (std::is_same<_DataType, double>::value || std::is_same<_DataType, float>::value)
5555
{
56-
// using std::max for these ldx variables is required by MKL
56+
// using std::max for these ldx variables is required by math library
5757
const std::int64_t lda = std::max<size_t>(1UL, size_k); // First dimensions of array_1
5858
const std::int64_t ldb = std::max<size_t>(1UL, size_n); // First dimensions of array_2
5959
const std::int64_t ldc = std::max<size_t>(1UL, size_n); // Fast dimensions of result

dpnp/dpnp_iface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def matmul(in_array1, in_array2, out=None):
181181
cost_size = 4096 # 2D array shape(64, 64)
182182
if ((in_array1.dtype == numpy.float64) or (in_array1.dtype == numpy.float32)):
183183
"""
184-
Floating point types are handled via original MKL better than SYCL MKL
184+
Floating point types are handled via original math library better than SYCL math library
185185
"""
186186
cost_size = 262144 # 2D array shape(512, 512)
187187

dpnp/linalg/linalg.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cpdef tuple dpnp_eig(dparray in_array1):
5858
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_EIG, param1_type, param1_type)
5959

6060
result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
61-
# this array is used as input for MKL and will be overwritten with eigen vectors
61+
# this array is used as input for math library and will be overwritten with eigen vectors
6262
res_vec = in_array1.astype(result_type)
6363
# ceate result array with type given by FPTR data
6464
cdef dparray res_val = dparray((size1,), dtype=result_type)

dpnp/mkl/__init__.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

dpnp/mkl/inumpy_mkl.pxd

Lines changed: 0 additions & 75 deletions
This file was deleted.

dpnp/mkl/inumpy_mkl.pyx

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/example1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def run_dgemm(executor, name, size, test_type, repetition):
7777
print(f"...Test data type is {test_type}, each test repetitions {test_repetition}")
7878

7979
for size in [16, 32, 64, 128]: # , 256, 512, 1024, 2048, 4096]:
80-
times_python, result_python = run_dgemm(numpy, " <NumPy>", size, test_type, test_repetition)
81-
times_sycl, result_mkl = run_dgemm(dpnp, "<Intel MKL>", size, test_type, test_repetition)
80+
times_python, result_python = run_dgemm(numpy, "<NumPy>", size, test_type, test_repetition)
81+
times_sycl, result_mkl = run_dgemm(dpnp, " <DPNP>", size, test_type, test_repetition)
8282

8383
verification = False
8484
if result_mkl == result_python:

examples/example7.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def run_function(executor, name, size, test_type, repetition):
7373
print(f"...Test data type is {test_type}, each test repetitions {test_repetition}")
7474

7575
for size in [16, 32, 64, 128, 256, 512, 1024, 2048, 4096]:
76-
time_python, result_python = run_function(numpy, " <NumPy>", size, test_type, test_repetition)
77-
time_mkl, result_mkl = run_function(dpnp, "<Intel MKL>", size, test_type, test_repetition)
76+
time_python, result_python = run_function(numpy, "<NumPy>", size, test_type, test_repetition)
77+
time_mkl, result_mkl = run_function(dpnp, " <DPNP>", size, test_type, test_repetition)
7878

7979
if result_mkl == result_python:
8080
verification = True

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193

194194

195195
"""
196-
Search and set MKL environemnt
196+
Search and set math library environemnt
197197
"""
198198
_mkl_rpath = []
199199
_cmplr_rpath = []

0 commit comments

Comments
 (0)