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

MACE with AMD ROCM #824

Open
jungsdao opened this issue Feb 11, 2025 · 3 comments
Open

MACE with AMD ROCM #824

jungsdao opened this issue Feb 11, 2025 · 3 comments

Comments

@jungsdao
Copy link

I've used MACE only with CUDA so far but we got introduced with AMD GPU which uses ROCM instead of CUDA.
I've changed device="rocm" but it seems to look for CUDA and fails.
Is MACE currently supports only CUDA? Should I install pytorch differently if I want to use ROCM?

@tomdemeyere
Copy link

This can be done by installing the rocm version of torch

torch                     2.3.0+rocm6.0
torch-dftd                0.4.0
torch-ema                 0.3
torchaudio                2.3.0+rocm6.0
torchvision               0.18.0+rocm6.0

device should be set to cuda

@alinelena
Copy link
Contributor

on practical terms

install mace as per usual and then

python3 -m pip uninstall torch
python3 -m pip install torch  --index-url https://download.pytorch.org/whl/rocm6.2.4

but do not hold your breath on performance.

@vbharadwaj-bk
Copy link

Third party here, I can confirm that the steps above work for RocM (and that it is slower than the CUDA version).

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

4 participants