Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to support CPU usage on Windows and Linux #390

Closed
2 tasks done
Wyrdgirn opened this issue Jul 8, 2023 · 8 comments
Closed
2 tasks done

How to support CPU usage on Windows and Linux #390

Wyrdgirn opened this issue Jul 8, 2023 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@Wyrdgirn
Copy link

Wyrdgirn commented Jul 8, 2023

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

@Wyrdgirn Wyrdgirn added the enhancement New feature or request label Jul 8, 2023
@aaronliu0130
Copy link
Member

aaronliu0130 commented Jul 8, 2023

🤯

@github-actions
Copy link

github-actions bot commented Sep 2, 2023

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.

@github-actions github-actions bot added the stale We lack your response. Please reply to re-start the issue label Sep 2, 2023
@aaronliu0130 aaronliu0130 removed the stale We lack your response. Please reply to re-start the issue label Sep 2, 2023
@NayamAmarshe
Copy link
Member

I think we can add this info to the wiki.

@aaronliu0130
Copy link
Member

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?

@NayamAmarshe
Copy link
Member

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.

@NayamAmarshe
Copy link
Member

@aaronliu0130 aaronliu0130 pinned this issue Sep 24, 2023
@aaronliu0130 aaronliu0130 changed the title Option to force CPU usage on machines without Vulkan on Windows How to support CPU usage on Windows and Linux Oct 4, 2023
@aaronliu0130 aaronliu0130 added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Oct 4, 2023
@aaronliu0130 aaronliu0130 mentioned this issue Oct 4, 2023
3 tasks
@ulmemxpoc ulmemxpoc mentioned this issue Oct 15, 2023
2 tasks
@aaronliu0130 aaronliu0130 mentioned this issue Nov 6, 2023
4 tasks
@danielrode
Copy link

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"

@aaronliu0130
Copy link
Member

Sounds like your driver really hates Vulkan. Sorry.

@upscayl upscayl locked and limited conversation to collaborators Nov 27, 2023
@NayamAmarshe NayamAmarshe converted this issue into discussion #580 Nov 27, 2023
@NayamAmarshe NayamAmarshe unpinned this issue Apr 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants