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

[REQUEST] AMD/Metal GPU Support #35

Open
mrplants opened this issue Jun 20, 2023 · 8 comments
Open

[REQUEST] AMD/Metal GPU Support #35

mrplants opened this issue Jun 20, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@mrplants
Copy link

I noticed in the readme.md that there is work going into supporting AMD GPUs. How can I help with this? I have some hardware of my own and would love to be able out.

@piotroxp
Copy link

Seconding this notion, even if for the thrill of getting hands dirty.

@pvl-bot
Copy link
Collaborator

pvl-bot commented Jun 21, 2023

Hello, we would love your guys' help, we do not have an AMD machine to test ourselves. Your goal is to just get blender to render on an AMD gpu, getting gpu-enabled terrain to run is likely too hard (so you should leave out the enable_gpu config always, this actually enables_gpu for the terrain so isnt relevant to you and will be renamed)

All you should need to do is edit worldgen/rendering/render.py in the enable_gpu function to add an extra option corresponding to AMD GPUs, then test and see if it works. we will be actively accepting PRs starting hopefully tonight. I'd love to get apple GPUs ("METAL") in here too, but found it crashed for mac users when I left that option in.

Once done, just edit your guys' platform spec into the supported list in the README then PR :)

@pvl-bot
Copy link
Collaborator

pvl-bot commented Jun 21, 2023

These docs may be relevant https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html. I believe the correct config string for AMD may be "HIP", but am not sure. You can find out for sure by opening a blender UI, setting device to AMD in the preferences somewhere, then inspecting this same value we're setting in enable_gpu to see what the correct value is.

@laposheureux
Copy link

laposheureux commented Jun 23, 2023

I restored METAL to the array and ran it on an M1 Max laptop with 32GB of ram with a non-simple scene setup and it's running fine (it's been running the third step of going from the fine output folder to frames output folder for over 3 hours now and has another 3 and a half to go...). The time estimate with a CPU-only approach was almost 20 hours.
Screenshot 2023-06-22 at 9 54 51 PM
Screenshot 2023-06-22 at 9 54 58 PM

8 or 16GB of ram may just not be enough for it to run successfully. As it is it's not exactly light memory usage on my system.
Screenshot 2023-06-22 at 9 57 22 PM

@laposheureux
Copy link

laposheureux commented Jun 23, 2023

Oh worth noting the final step ("Render again for accurate ground-truth") errors from running out of GPU memory as it tries to use 117GB 🥲 and it also can't complete using the CPU as that uses 132GB before it dies.

@araistrick araistrick changed the title AMD GPU Support [REQUEST] AMD/Metal GPU Support Jul 6, 2023
@araistrick araistrick added the enhancement New feature or request label Jul 6, 2023
@dboggs95
Copy link

dboggs95 commented Jul 13, 2023

I don't have time to provide much support on development, and I don't want to mess with compiling the program either. But if you want a tester, send me a version of the program compiled for Windows 11 x64. I can test with these specs.
CPU: R9 5900X
GPU: RX 7900 XT
RAM: 64 GB

@araistrick
Copy link
Contributor

Hello all! I have done some initial tinkering to try and provide AMD support for mac/linux/WSL. Would appreciate any testers or PR's into the amd_support branch, but be warned its nearly entirely untested so far. I have also updated the infinigen_gpl submodule to point to a branch of that repo to allow me to change the relevant enable_gpu code

@Faycal88
Copy link

Hello

No GPU here only AMD Ryzen 9 7900x3D

Windows 11 Pro 64bits

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

No branches or pull requests

7 participants