gpui/blade: Allow forcing use of a specific GPU with ZED_DEVICE_ID env var
#27531
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Workaround for users affected by #25899
Thanks to the work done by @kvark in kvark/blade#210, we have the ability to tell Vulkan (through blade) a specific GPU to use.
This will hopefully allow some of the users affected by #25899 to use Zed by allowing them to use a specific GPU, if the primary/default GPU will not work
Release Notes:
ZED_DEVICE_IDenvironment variable. You can obtain the device ID of your GPU by runninglspci -nn | grep VGAwhich will output each GPU on one line like:2484. This value is in hexadecimal, so to force Zed to use this specific GPU you would set the environment variable like so:.bashrcor similar