Closed
Description
When trying to follow the basic instructions on the README
, I get a core dump the moment I try to do any calculation:
from numpy_quaddtype import QuadPrecDType
import numpy as np
a = np.array([1,2,3], dtype=QuadPrecDType())
a
array([QuadPrecision('1.0e+000', backend='sleef'),
QuadPrecision('2.0e+000', backend='sleef'),
QuadPrecision('3.0e+000', backend='sleef')],
dtype=QuadPrecDType(backend='sleef')
b = a+a
Illegal instruction (core dumped)
Things do seem to work with the longdouble
backend.
I tried to install the source code (i.e., also compile sleef on my machine), but that gives the same error.
In case it helps, my numpy runtime:
import numpy; numpy.show_runtime()
[{'numpy_version': '2.1.0',
'python': '3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]',
'uname': uname_result(system='Linux', node='swan.astro.utoronto.ca', release='6.1.0-30-amd64', version='#1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12)', machine='x86_64')},
{'simd_extensions': {'baseline': ['SSE', 'SSE2', 'SSE3'],
'found': ['SSSE3', 'SSE41', 'POPCNT', 'SSE42', 'AVX'],
'not_found': ['F16C',
'FMA3',
'AVX2',
'AVX512F',
'AVX512CD',
'AVX512_KNL',
'AVX512_KNM',
'AVX512_SKX',
'AVX512_CLX',
'AVX512_CNL',
'AVX512_ICL']}},
{'architecture': 'Sandybridge',
'filepath': '/data/mhvk/packages/numpy-user-dtypes/quaddtype/temp/lib/python3.11/site-packages/numpy.libs/libscipy_openblas64_-ff651d7f.so',
'internal_api': 'openblas',
'num_threads': 4,
'prefix': 'libscipy_openblas',
'threading_layer': 'pthreads',
'user_api': 'blas',
'version': '0.3.27'}]
Metadata
Metadata
Assignees
Labels
No labels