numpy-quaddtype 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of numpy-quaddtype might be problematic. Click here for more details.
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/PKG-INFO +1 -1
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/meson.build +19 -4
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/casts.cpp +3 -3
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/matmul.cpp +0 -3
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/pyproject.toml +1 -1
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/reinstall.sh +1 -1
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/LICENSE +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/README.md +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/__init__.py +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/casts.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/dragon4.c +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/dragon4.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/dtype.c +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/dtype.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/ops.hpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/quad_common.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/quadblas_interface.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/quadblas_interface.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/quaddtype_main.c +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/scalar.c +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/scalar.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/scalar_ops.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/scalar_ops.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/binary_ops.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/binary_ops.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/comparison_ops.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/comparison_ops.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/matmul.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/promoters.hpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/umath.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/umath.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/unary_ops.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/unary_ops.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/unary_props.cpp +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/unary_props.h +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/release_tracker.md +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/sdist_test.sh +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/subprojects/packagefiles/qblas/meson.build +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/subprojects/packagefiles/sleef/meson.build +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/subprojects/qblas.wrap +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/subprojects/sleef.wrap +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/tests/test_dot.py +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/tests/test_quaddtype.py +0 -0
- {numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/tests/utils.py +0 -0
|
@@ -15,9 +15,24 @@ endif
|
|
|
15
15
|
|
|
16
16
|
qblas_dep = dependency('qblas', fallback: ['qblas', 'qblas_dep'])
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
sleef_dep =
|
|
20
|
-
|
|
18
|
+
# Try to find SLEEF system-wide first, fall back to subproject if not found
|
|
19
|
+
sleef_dep = dependency('sleef', fallback: ['sleef', 'sleef_dep'], required: false)
|
|
20
|
+
|
|
21
|
+
if sleef_dep.found() and sleef_dep.type_name() != 'internal'
|
|
22
|
+
# SLEEF found system-wide - both sleef and sleefquad are typically in the same installation
|
|
23
|
+
cpp = meson.get_compiler('cpp')
|
|
24
|
+
sleefquad_lib = cpp.find_library('sleefquad', required: true)
|
|
25
|
+
sleefquad_dep = declare_dependency(
|
|
26
|
+
dependencies: [sleef_dep, sleefquad_lib]
|
|
27
|
+
)
|
|
28
|
+
message('Using system-wide SLEEF installation')
|
|
29
|
+
else
|
|
30
|
+
# Fall back to subproject which provides both dependencies
|
|
31
|
+
sleef_subproj = subproject('sleef')
|
|
32
|
+
sleef_dep = sleef_subproj.get_variable('sleef_dep')
|
|
33
|
+
sleefquad_dep = sleef_subproj.get_variable('sleefquad_dep')
|
|
34
|
+
message('Using SLEEF subproject')
|
|
35
|
+
endif
|
|
21
36
|
|
|
22
37
|
incdir_numpy = run_command(py,
|
|
23
38
|
['-c', 'import numpy; print(numpy.get_include())'],
|
|
@@ -30,7 +45,7 @@ npymath_lib = c.find_library('npymath', dirs: npymath_path)
|
|
|
30
45
|
dependencies = [py_dep, qblas_dep, sleef_dep, sleefquad_dep, npymath_lib]
|
|
31
46
|
|
|
32
47
|
# Add OpenMP dependency (optional, for threading)
|
|
33
|
-
openmp_dep = dependency('openmp', required: false)
|
|
48
|
+
openmp_dep = dependency('openmp', required: false, static: false)
|
|
34
49
|
if openmp_dep.found()
|
|
35
50
|
dependencies += openmp_dep
|
|
36
51
|
endif
|
|
@@ -31,9 +31,6 @@ quad_to_quad_resolve_descriptors(PyObject *NPY_UNUSED(self),
|
|
|
31
31
|
{
|
|
32
32
|
NPY_CASTING casting = NPY_NO_CASTING;
|
|
33
33
|
|
|
34
|
-
if (given_descrs[0]->backend != given_descrs[1]->backend)
|
|
35
|
-
casting = NPY_UNSAFE_CASTING;
|
|
36
|
-
|
|
37
34
|
Py_INCREF(given_descrs[0]);
|
|
38
35
|
loop_descrs[0] = given_descrs[0];
|
|
39
36
|
|
|
@@ -44,6 +41,9 @@ quad_to_quad_resolve_descriptors(PyObject *NPY_UNUSED(self),
|
|
|
44
41
|
else {
|
|
45
42
|
Py_INCREF(given_descrs[1]);
|
|
46
43
|
loop_descrs[1] = given_descrs[1];
|
|
44
|
+
if (given_descrs[0]->backend != given_descrs[1]->backend) {
|
|
45
|
+
casting = NPY_UNSAFE_CASTING;
|
|
46
|
+
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
*view_offset = 0;
|
|
@@ -396,9 +396,6 @@ init_matmul_ops(PyObject *numpy)
|
|
|
396
396
|
PyArray_DTypeMeta *dtypes[3] = {&QuadPrecDType, &QuadPrecDType, &QuadPrecDType};
|
|
397
397
|
|
|
398
398
|
#ifndef DISABLE_QUADBLAS
|
|
399
|
-
// set threading to max
|
|
400
|
-
int num_threads = _quadblas_get_num_threads();
|
|
401
|
-
_quadblas_set_num_threads(num_threads);
|
|
402
399
|
|
|
403
400
|
PyType_Slot slots[] = {
|
|
404
401
|
{NPY_METH_resolve_descriptors, (void *)&quad_matmul_resolve_descriptors},
|
|
@@ -10,7 +10,7 @@ build-backend = "mesonpy"
|
|
|
10
10
|
[project]
|
|
11
11
|
name = "numpy_quaddtype"
|
|
12
12
|
description = "Quad (128-bit) float dtype for numpy"
|
|
13
|
-
version = "0.2.
|
|
13
|
+
version = "0.2.2"
|
|
14
14
|
readme = 'README.md'
|
|
15
15
|
license = { file = "LICENSE" }
|
|
16
16
|
authors = [{name = "Swayam Singh", email = "singhswayam008@gmail.com"}]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{numpy_quaddtype-0.2.0 → numpy_quaddtype-0.2.2}/numpy_quaddtype/src/umath/comparison_ops.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|