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

M1 Mac CUDA error #3

Open
arif-geo opened this issue Feb 10, 2024 · 0 comments
Open

M1 Mac CUDA error #3

arif-geo opened this issue Feb 10, 2024 · 0 comments

Comments

@arif-geo
Copy link

Hello Dr. Zhu,
I was trying this on my M1 Macbook and found the following error. I am not an advanced user by any means. However, I added torch.device('cpu') to EQNet-master/predict.py and searched args.device and in each function added args.device = 'cpu' to use cpu instead of GPU.

File "/Users/arifislam/miniconda3/envs/obspy/lib/python3.10/site-packages/torch/cuda/__init__.py", line 289, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled

It is running now but no picks or polarities (which is my main concern) are being produced.

WARNING:root:Resampling WR.NWFF..HNZ from 200.0 to 100 Hz
Predicting: 100%|██████████| 47/47 [02:20<00:00,  2.98s/it]
Merging picks_phasenet_plus: 0it [00:00, ?it/s]
Merging events_phasenet_plus: 0it [00:00, ?it/s]

Number of picks: 0
Number of event x station: 0

Hopefully that helps for future versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant