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

[BUG] import torch error #256

Open
DanielaBreitman opened this issue Nov 5, 2024 · 0 comments
Open

[BUG] import torch error #256

DanielaBreitman opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DanielaBreitman
Copy link
Collaborator

DanielaBreitman commented Nov 5, 2024

Describe the bug:
Traceback (most recent call last):
File "/home/dbreitman/21CMMC/src/test_21cmmc_H6C_provision_radio.py", line 39, in
c21cmemu = core.CoreRadioEMU()
File "/home/dbreitman/21CMMC/src/py21cmmc/core.py", line 1494, in init
self.emulator = Emulator(emulator = 'radio_background',version=version)
File "/home/dbreitman/.conda/envs/pytorch_env/lib/python3.10/site-packages/py21cmemu/emulator.py", line 60, in init
import torch
File "/home/dbreitman/.conda/envs/pytorch_env/lib/python3.10/site-packages/torch/init.py", line 237, in
from torch._C import * # noqa: F403
ImportError: /home/dbreitman/.conda/envs/pytorch_env/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so: symbol cudaLaunchKernelExC, version libcudart.so.11.0 not defined in file libcudart.so.11.0 with link time reference

Solution is to always make sure torch is imported BEFORE tensorflow...

@DanielaBreitman DanielaBreitman added the bug Something isn't working label Nov 5, 2024
@DanielaBreitman DanielaBreitman self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant