imxieyi / waifu2x-ios

iOS Core ML implementation of waifu2x
MIT License
538 stars 58 forks source link

Both GPUs in Mac Pro aren't being used. #64

Open HumerousGorgon opened 1 year ago

HumerousGorgon commented 1 year ago

Hey there! Loving the project, throwing some real_esrgan upscaling at my Mac Pro and I'm noticing that both my 5700XT's aren't being used.

image

As you can see, only a single GPU is being used. Is this a simple scaling error or command line argument I've inputted wrong, or does it require rewriting parts of the app?

Thanks!

imxieyi commented 1 year ago

This is is related to waifu2x-ios on Mac. Transferred here.

Core ML doesn't support using multiple GPUs at the same time.

However, this app has implemented parallel processing for multiple input items. First make sure you have added more than 1 item. Then please turn on Advanced mode and scroll to the bottom. There you will find a section called Parallel Processing where you can enable multiple GPUs.

Unfortunately this option is only available in GUI mode. CLI doesn't support specifying which GPU to run on (but supports ANE vs GPU).