Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dot function gives SegFault in the end of program execution (freeing resources) #563

Closed
Alexander-Makaryev opened this issue Feb 2, 2021 · 1 comment
Labels
bug Something isn't working GPU reproduces on GPU

Comments

@Alexander-Makaryev
Copy link
Contributor

Looks like root cause in MKL

$ DPNP_QUEUE_GPU=1 pytest tests/test_dot.py
============================================================================================================ test session starts ============================================================================================================
platform linux -- Python 3.7.7, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /localdisk/work/amakarye/git/dpnp, inifile: setup.cfg
plugins: hypothesis-6.1.1
collecting ...
DPNP: current queue is CPU: 0
DPNP: version: 0.5.0

collected 12 items

tests/test_dot.py .....s......                                                                                                                                                                                                        [100%]

======================================================================================================= 11 passed, 1 skipped in 1.03s =======================================================================================================
Segmentation fault (core dumped)
@vlad-perevezentsev
Copy link
Collaborator

dpnp.dot implementation was updated in #1669 and this issue is not reproduced in the latest MKL versions.

DPNP_QUEUE_GPU=1 pytest -v tests/test_product.py::TestDot
============================================== 261 passed in 6.85s ===============================================

Environment details

conda list

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
_sysroot_linux-64_curr_repodata_hack 3                   h69a702a_14    conda-forge
astroid                   3.2.2                    pypi_0    pypi
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
attrs                     23.2.0             pyh71513ae_0    conda-forge
backports.zoneinfo        0.2.1           py310hff52083_8    conda-forge
black                     24.4.0                   pypi_0    pypi
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.28.1               hd590300_0    conda-forge
ca-certificates           2024.6.2             hbcca054_0    conda-forge
cfgv                      3.4.0                    pypi_0    pypi
clang-format              12.0.1                   pypi_0    pypi
click                     8.1.7           unix_pyh707e725_0    conda-forge
cmake                     3.29.4               h91dbaaa_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
cython                    3.0.10          py310hc6cd4ac_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
dill                      0.3.8                    pypi_0    pypi
distlib                   0.3.8                    pypi_0    pypi
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
dpcpp-cpp-rt              2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
dpcpp_cpp_rt              2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
dpcpp_impl_linux-64       2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
dpcpp_linux-64            2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
dpctl                     0.17.0          py310h1493ef0_0    http://satpkgserver.an.intel.com:8081
dpnp                      0.16.0.dev0+26.gedcaaa592e           dev_0    <develop>
exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
filelock                  3.14.0                   pypi_0    pypi
hypothesis                6.103.2            pyha770c72_0    conda-forge
icc_rt                    2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
identify                  2.5.36                   pypi_0    pypi
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
intel-cmplr-lib-rt        2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intel-cmplr-lib-ur        2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intel-cmplr-lic-rt        2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intel-opencl-rt           2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intel-openmp              2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intel-sycl-rt             2024.2.0              intel_960    http://satpkgserver.an.intel.com:8081
intelpython               2024.2.0                      0    http://satpkgserver.an.intel.com:8081
ipython                   8.25.0             pyh707e725_0    conda-forge
isort                     5.13.2                   pypi_0    pypi
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
kernel-headers_linux-64   4.18.0               he073ed8_2    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.2               h659d440_0    conda-forge
level-zero                1.17.6               h297d8ca_1    conda-forge
libcurl                   8.8.0                hca28451_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.2.0               h77fa898_7    conda-forge
libgomp                   13.2.0               h77fa898_7    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsqlite                 3.45.3               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.2.0               hc0a3c3a_7    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.48.0               hd590300_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libzlib                   1.2.13               h4ab18f5_6    conda-forge
matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
mccabe                    0.7.0                    pypi_0    pypi
mkl                       2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
mkl-devel                 2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
mkl-devel-dpcpp           2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
mkl-dpcpp                 2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
mkl-include               2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
mkl-service               2.4.1           py310h1e356de_0    http://satpkgserver.an.intel.com:8081
mkl_fft                   1.3.8           py310h977b55c_72    http://satpkgserver.an.intel.com:8081
mkl_random                1.2.4           py310hae8aba8_92    http://satpkgserver.an.intel.com:8081
mkl_umath                 0.1.1           py310h9ab9c7e_102    http://satpkgserver.an.intel.com:8081
mypy-extensions           1.0.0                    pypi_0    pypi
ncurses                   6.5                  h59595ed_0    conda-forge
ndindex                   1.8                pyhd8ed1ab_1    conda-forge
ninja                     1.12.1               h297d8ca_0    conda-forge
nodeenv                   1.9.1                    pypi_0    pypi
numpy                     1.26.4          py310h689b997_3    http://satpkgserver.an.intel.com:8081
numpy-base                1.26.4          py310h913173e_3    http://satpkgserver.an.intel.com:8081
onedpl-devel              2022.6.0              intel_514    http://satpkgserver.an.intel.com:8081
onemkl-sycl-blas          2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-datafitting   2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-dft           2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-lapack        2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-rng           2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-sparse        2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-stats         2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
onemkl-sycl-vm            2024.2.0              intel_654    http://satpkgserver.an.intel.com:8081
openssl                   3.3.1                h4ab18f5_0    conda-forge
packaging                 24.0               pyhd8ed1ab_0    conda-forge
parso                     0.8.4              pyhd8ed1ab_0    conda-forge
pathspec                  0.12.1                   pypi_0    pypi
pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
platformdirs              4.2.2                    pypi_0    pypi
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
pre-commit                3.7.1                    pypi_0    pypi
prompt-toolkit            3.0.46             pyha770c72_0    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pylint                    3.2.3                    pypi_0    pypi
pytest                    8.2.2              pyhd8ed1ab_0    conda-forge
pytest-json-report        1.5.0              pyhd8ed1ab_0    conda-forge
pytest-metadata           3.1.1              pyhd8ed1ab_0    conda-forge
python                    3.10.14              h16b9217_1    http://satpkgserver.an.intel.com:8081
python_abi                3.10                    2_cp310    conda-forge
pyyaml                    6.0.1                    pypi_0    pypi
readline                  8.2                  h8228510_1    conda-forge
rhash                     1.4.4                hd590300_0    conda-forge
scikit-build              0.17.6             pyh4af843d_0    conda-forge
setuptools                70.0.0             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
sysroot_linux-64          2.28                 he073ed8_2    conda-forge
tbb                       2021.13.0             intel_598    http://satpkgserver.an.intel.com:8081
tbb-devel                 2021.13.0             intel_598    http://satpkgserver.an.intel.com:8081
tbb4py                    2021.13.0       py310_intel_598    http://satpkgserver.an.intel.com:8081
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.12.5                   pypi_0    pypi
traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
virtualenv                20.26.2                  pypi_0    pypi
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

Driver versions

$ python -m dpctl -f
Platform  0 ::
  Name        Intel(R) OpenCL
  Version     OpenCL 3.0 LINUX
  Vendor      Intel(R) Corporation
  Backend     opencl
  Num Devices 1
    # 0
      Name                12th Gen Intel(R) Core(TM) i7-1270P
      Version             2024.18.6.0.02_160000
      Filter string       opencl:cpu:0
Platform  1 ::
  Name        Intel(R) OpenCL Graphics
  Version     OpenCL 3.0 
  Vendor      Intel(R) Corporation
  Backend     opencl
  Num Devices 1
    # 0
      Name                Intel(R) Graphics [0x46a6]
      Version             23.26.26690.22
      Filter string       opencl:gpu:0
Platform  2 ::
  Name        Intel(R) Level-Zero
  Version     1.3
  Vendor      Intel(R) Corporation
  Backend     ext_oneapi_level_zero
  Num Devices 1
    # 0
      Name                Intel(R) Graphics [0x46a6]
      Version             1.3.26690
      Filter string       level_zero:gpu:0

WSL info

$ uname -a
Linux vperevez-mobl2 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I will close this ticket because this issue is old and irrelevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GPU reproduces on GPU
Projects
None yet
Development

No branches or pull requests

2 participants