Skip to content

Segmentation fault when juliacall is imported before torch #435

Closed
@fiktor

Description

@fiktor

Minimal example:

$ python -c 'import juliacall; import torch; print("Done.")'
Segmentation fault (core dumped)

The segfault happens at 0x00007fffa673c342 in __kmp_env_blk_init () in libgomp.so.1

Importing only one of the two modules does not result in an error.

Note that this issue is related but different from #215: here juliacall is imported before torch, and there torch is imported before juliacall.

Environment details:

  • Fedora release 37 (Thirty Seven)
  • Python 3.10.11 (installed using a mamba environment)
  • Torch version 1.11.0.post202 (pytorch-gpu, build cuda112py310h68407e5_202)
  • JuliaCall version 0.9.15 (build pypi_0)
  • Julia version 1.9.4

Similar issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions