Skip to content

M1 Mac CUDA error #3

@arif-geo

Description

@arif-geo

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.

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