Score:2

Prime-run command not found

us flag

Command prime-run outputs prime-run: command not found. I have Ubuntu 20.04.3 and nvidia-driver-470

france1 avatar
ng flag
What is prime-run? Also on my system the same... Looks like you have to add a repository
N0rbert avatar
zw flag
I suppose you mean `optirun` from [bumblebee package](https://packages.ubuntu.com/search?suite=focal&arch=any&mode=exactfilename&searchon=contents&keywords=bin%2Foptirun)...
Score:6
ru flag

I have the same nvidia driver version and for some reason prime-run command does not exist.

I just solved it by doing the following:

  1. Copy contents of the gist here
    #!/bin/bash
    export __NV_PRIME_RENDER_OFFLOAD=1
    export __GLX_VENDOR_LIBRARY_NAME=nvidia
    export __VK_LAYER_NV_optimus=NVIDIA_only
    export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
    exec "$@"
    
  2. Create a file ~/bin/prime-run ("~" means your home directory)
  3. Paste the contents there.
  4. Run chmod +x "~/bin/prime-run" to make it executable.

You might want to re-open your terminal or restart your session so your terminal could recognize your ~/bin folder and be able to run prime-run command, that is, if the folder is not already there.

ru flag
Nice workaround. prime-run was part of the proprietary nvidia drivers in the past. I assume that the command has been deprecated, for whatever reason and now removed.
Gorgo avatar
vn flag
I installed nvidia 510.60.02 with runfile and I don't have /usr/share/vulkan/icd.d/nvidia_icd.json. Is the file the same as /etc/vulkan/icd.d/nvidia_icd.json?
cyrusbehr avatar
sx flag
Thanks this worked with 535.54.03
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.