Not sure if that's going to help you, and I can't test on my side cause
I converted everything to guix system, but:

try in a

guix shell --pure <packages...>


that way the env vars that point to your host's vulkan are no longer
there, and guix may talk to its own, or at least tell you they are
missing.

For further isolation you may want to use a container, but talking to a
GPU through a container is hard. I managed it with something like:

guix shell --network --container --emulate-fhs  --share=/dev/dri \
                            --share=/dev/kfd \
                            --expose=/sys \

and that lets me use rocm acceleration for linear algebra. I don't know
if it'll work for graphics applications.

cheers,

Edouard.



Andy Tai <[email protected]> writes:

> Hi, I installed vulkan-tools in GNU Guix which is on top of foreigh
> distribution (x86-64, Ubuntu) although which exact foreign
> distribution is used may not matter for the question
>
> The host/foreign distribution has its own Vulkan implementation not
> the Mesa one.
>
> when I run
>
> vulkaninfo
>
> in GNU Guix it shows errors, which might not be unexpected.
>
> In any case, is there a procedure to enable accelerated Vulkan
> graphics for Guix applications in this context, where the host/foreign
> distribution may have a non-Mesa-based Vulkan implementation?   Thanks
> for any info on this.

Reply via email to