upscayl / upscayl

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Home Page:https://upscayl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to support CPU usage on Windows and Linux

Wyrdgirn opened this issue Β· comments

Checklist

  • I have checked that this issue isn't addressed in the Wiki.
  • I have checked that this issue isn't addressed in any other issue or pull request.

Description

The program does not work on machines without Vulkan, but it works if emulated, so it would be very helpful if they added the option to force the use of swiftshader. This can be done by modifying Upscayl's files on Windows and Linux. On the former, it is in C:\Program Files\Upscayl by default.

I have tried deleting the vulkan-1.dll library and renaming a copy of vk_swiftshader.dll to vulkan-1.dll, then setting the GPU ID to 0 or leaving it blank and the app works correctly, I have already tried all the models and they work (although slow) even on an Intel Atom N455 with 2gb of ram and Windows 10 🀯

So I would consider an option in settings (or automatically) to force CPU usage only for those systems without Vulkan useful... and even if it supports it it can become a quick fix for those with driver issues, etc. πŸ€”

Oh, you can also post in the documentation how to convert the app to CPU only by renaming and replacing the libraries as I mentioned before if the option is not useful for you, then at least more people will have access to this great tool πŸ˜ŽπŸ‘Œ You decide πŸ˜‰

Greetings πŸ˜ƒβœŒοΈ

Oh, by the way, excuse my English, my native language is Spanish πŸ˜…

Related Problem(s)

The app does not work if the machine does not support Vulkan

Alternatives

Renaming the vk_swiftshader.dll library to vulkan-1.dll

🀯

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still happening, please reply to indicate so.

I think we can add this info to the wiki.

I assume the same can be done on Linux by renaming libvk_swiftshader.so to libvulkan.so.1 . Not sure about Mac.

Maybe we should make a separate distribution for such builds?

No, I think it'd be too much work for what's basically a smart hack.

I think it'd be better to let hacks stay in the wiki.

I assume the same can be done on Linux by renaming libvk_swiftshader.so to libvulkan.so.1 . Not sure about Mac.

Maybe we should make a separate distribution for such builds?

When I try this on Void Linux using the AppImage version of Upscayl, I get an error:

"BACKEND REPORTED: image upscayl: /tmp/.mount_upscay64N2F7/resources/bin/upscayl-bin: symbol lookup error: /tmp/.mount_upscay64N2F7/resources/bin/upscayl-bin: undefined symbol: vkAllocateDescriptorSets"

Sounds like your driver really hates Vulkan. Sorry.