dpnp icon indicating copy to clipboard operation
dpnp copied to clipboard

Segfault running test_linalg and linalg.eig

Open reazulhoque opened this issue 4 years ago • 0 comments

The following reproducer segfaults with dpnp 0.4.0

import numpy as np
import dpnp

size = 3
type = np.int32
a = np.ones((size, size), dtype=type)
symm_orig = np.tril(a) + np.tril(a, -1).T + np.diag(np.full((size,), size * size, dtype=type))
symm = symm_orig


dpnp_symm = dpnp.array(symm)
print(dpnp.linalg.eig(dpnp_symm))

Here is the output:

DPNP: Module NumPy found. Please load DPNP module before NumPy.

  warnings.warn("\nDPNP: Module NumPy found. Please load DPNP module before NumPy.\n")
Running on: Intel(R) Graphics Gen9 [0x9bca]
DPCtrl SYCL queue used
SYCL kernels link time: 0.20342 (sec.)

(<DPNP DParray:name=dparray: mem=0x565458c60000: size=3: shape=(3,): type=float64>, <DPNP DParray:name=dparray: mem=0x56545c665000: size=9: shape=(3, 3): type=float64>)
Segmentation fault (core dumped)

Also running the following command ends up in a segfault too:

pytest dpnp/tests/test_linalg.py

Here is the output:

platform linux -- Python 3.7.8, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: dpnp/dpnp, configfile: setup.cfg
collecting ...
DPNP: current queue is CPU: 0
collected 276 items

../../dpnp/dpnp/tests/test_linalg.py ..................ssss........ssssss.....................ssssss.......................ssss....ssssssss........ssss....sssssssss.ss.s [ 47%]
.sssss.s.s....ssss..ssssssssssssssss..ssssssss......ss..ssssssss......ss..ssssssss......ss....ss..ssssssss......ss..ssssssss......ss..ssssssss..                          [100%]

======================================================================= 145 passed, 131 skipped in 2.89s ========================================================================Segmentation fault (core dumped)

@shssf @Alexander-Makaryev

reazulhoque avatar Dec 09 '20 17:12 reazulhoque