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

Fedora 40 with Nvidia - Performance #147

Closed
cmuench opened this issue Jul 3, 2024 · 10 comments
Closed

Fedora 40 with Nvidia - Performance #147

cmuench opened this issue Jul 3, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@cmuench
Copy link

cmuench commented Jul 3, 2024

Describe the bug
If I start zwift on my Fedora Linux machine the GPU is not used.
Maybe a regression bug.
I know that the NVIDIA_DRIVER_CAPABILITIES is set in the Dockerfile.

Expected behavior
I can use my Nvidia GPU

Additional context
If I add -e NVIDIA_DRIVER_CAPABILITIES=all the problem is fixed.

That's my patched file:

#########################
##### RUN CONTAINER #####
CONTAINER=$($CONTAINER_TOOL run ${GENERAL_FLAGS[@]} \
        $ZWIFT_CONFIG_FLAG \
        $ZWIFT_USER_CONFIG_FLAG \
        $VGA_DEVICE_FLAG \
        -e NVIDIA_DRIVER_CAPABILITIES=all \
        ${DBUS_CONFIG_FLAGS[@]} \
        ${WM_FLAGS[@]} \
        ${PODMAN_FLAGS[@]} \
        $IMAGE:$VERSION $@
)
@sHedC
Copy link
Collaborator

sHedC commented Jul 4, 2024

Are you running the nvidia driver or Nouveau? I assume Nvidia?

@sHedC sHedC self-assigned this Jul 4, 2024
@cmuench
Copy link
Author

cmuench commented Jul 4, 2024

Proprietary nvidia driver. I am on the 555 which is really fresh.

@sHedC
Copy link
Collaborator

sHedC commented Jul 4, 2024

I'll look into it currently using Nouveau as not got round to setting up the proprietary but have to for another project.

@sHedC sHedC added the bug Something isn't working label Jul 4, 2024
@cmuench
Copy link
Author

cmuench commented Jul 5, 2024

No worry. I am able to fix this issues from my side. I opened this issue for other people with the same problem.
I just had a view to the Dockerfile.

The ENV var was introduced there.

ENV NVIDIA_DRIVER_CAPABILITIES=all

In the meantime we have multi step build there.
In the last step the ENV var is missing.
If we move the env var after the FROM wine-base it may be fixed.

@sHedC
Copy link
Collaborator

sHedC commented Jul 5, 2024

If you can give that a go :) if not I will try it out once I get my driver switched over.

@sHedC
Copy link
Collaborator

sHedC commented Jul 8, 2024

Hi, I switched to the nvidia drivers, after some issues with resiable bar and the /dev/card changing sorted. I don't have this issue but I only have an NVIDIA card in mine no other capable device.

Do you have an intel chip with video?
And do you think it might be related to #21

@cmuench
Copy link
Author

cmuench commented Jul 8, 2024

@sHedC I have a AMD based system (AMD Ryzen 9 7950X) with a NVIDIA 4060 TI.

sHedC added a commit that referenced this issue Jul 14, 2024
Some additional fixes below, this requires a rebuild of the docker.

- #89 Added the abiltiy to map a directory for custom zwo files to a local directory using an environment parameter, updated readme.
- Minor Fix to Docker to make the entrypoint and other files rx by default (from just x)
- Minor Fix for Podman Build to set ipc host temporarily, can cause failures on laptops
- #147 - Attempt to fix issue by moving the Enviornment Variables for NVIDIAa
- Update Readme to point to new Nvidia-container-toolkit not the deprecated one
@sHedC
Copy link
Collaborator

sHedC commented Jul 14, 2024

@cmuench - Can you try with the latest zwift.sh and container, I have moved relevant flags to the correct location so hopfully works.

@cmuench
Copy link
Author

cmuench commented Jul 15, 2024

@sHedC Works on my machine :-)

@cmuench cmuench closed this as completed Jul 15, 2024
@cmuench
Copy link
Author

cmuench commented Jul 15, 2024

@sHedC Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants