Git Product home page Git Product logo

Comments (5)

mkiol avatar mkiol commented on June 8, 2024 1

Just FYI. Yesterday I have pushed Beta8 to flathub-beta. It brings CUDA support for Faster-Whisper STT and Coqui TTS.

from dsnote.

mkiol avatar mkiol commented on June 8, 2024

Thanks for the report.

I'm using EnvyControl and these instructions for installing CUDA + Machine Learning.

Actually, local CUDA installation doesn't really matter. Speech Note flatpak package comes with all needed CUDA libraries. This is an advantage - you don't need to install anything else - and also disadvantage because package size is huge.

This error:

[D] 13:46:29.136 0x7f676e20ed00 add_cuda_devices:227 - scanning for cuda devices
[D] 13:46:29.136 0x7f676e20ed00 add_cuda_devices:236 - cuda version: driver=0, runtime=0
[W] 13:46:29.136 0x7f676e20ed00 add_cuda_devices:241 - cudaGetDeviceCount returned: 35

indicates that NVIDIA card was not detected in your system. I see the same log on my computer with AMD card.

I have to admit I know nothing about PRIME technology and GPU switching on laptops. Most likely I won't tell you anything you already know. NVIDIA card needs to be somehow turn-on before starting an app. As I understand 'EnvyControl' should make this happen.

The Internet mentions also that there is prime-run tool which switches GPU by setting the following env variables:

__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia

so, you might try to do:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia flatpak run net.mkiol.SpeechNote --verbose

or set these variables inside flatpak sandbox using flatpak override:

flatpak override --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia net.mkiol.SpeechNote

flatpak run net.mkiol.SpeechNote --verbose

Please have in mind that I'm just guessing.

from dsnote.

mkiol avatar mkiol commented on June 8, 2024

Maybe this guide: https://askubuntu.com/questions/1316566/how-do-you-offload-a-flatpak-application-to-run-on-the-nvidia-graphics-card-when

from dsnote.

alexschneider avatar alexschneider commented on June 8, 2024

Thanks!

I had tried __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia flatpak run net.mkiol.SpeechNote --verbose and it wasn't working, but your instructions for setting the variables in the flatpak sandbox using flatpak override did actually seem to fix the issue. Really appreciate it!

from dsnote.

mkiol avatar mkiol commented on June 8, 2024

Wow! That is awesome!

from dsnote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.