LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   AI Roguelite from Steam with NVIDIA GPU acceleration? (https://www.linuxquestions.org/questions/linux-games-33/ai-roguelite-from-steam-with-nvidia-gpu-acceleration-4175721646/)

273 02-03-2023 05:18 PM

AI Roguelite from Steam with NVIDIA GPU acceleration?
 
I have purchased and installed AI Roguelite from Steam and I can generate one of the built-in story types and play. But, it seems to be using my CPU not my GPU to generate despite my selecting the relevant option for NVIDIA GPU.
Has anyone got this working on Linux with NVIDIA GPU acceleration?
I have stable-diffusion-ui and Blender working on my GPU so I know [well am pretty sure] my drivers etc. are in place.

vmelkon 02-12-2023 10:44 AM

There is very little information on Steam about its system requirements.
If it is using DirectX then maybe it is using DirectCompute, which would mean that PROTON or is it VKD3D would have to convert the DirectCompute function calls to OpenCL.
Does PROTON do it? I do not know. Games don’t typically use DirectCompute.

There are 3 versions of this technology:
1. There is DirectCompute of Microsoft.
2. There is CUDA from nVidia. (This is bc nVidia typically does not wait for the Khronos group. They quickly develop their own API.)
3. There is OpenCL from the Khronos group (This is the group that handles the specifications for OpenGL, OpenCL, OpenGL ES (for embedded devices), WebGL (OpenGL for the web. I imagine this is a lightweight version of OpenGL), Vulkan.

The drivers for OpenGL, Vulkan, OpenCL should come from your video card driver maker. So I think it is already installed on your OS.

According to
https://linuxhandbook.com/setup-opencl-linux-docker/
you can just run clinfo from the command line and it will give you info about your system’s OpenCL.


For example, I have a AMD Radeon 6800 and Kubuntu 22.04 and I am using the open source drivers. I did not do anything special. I just had to install clinfo which is a 100 KB file.

and it gives a very long list, starting with the first 5 lines:
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 22.0.5
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA


Are you using the nVidia driver or the open source nVidia driver?

273 02-12-2023 10:54 AM

Thanks vmelkon, I am using the NVIDIA proprietary drivers and installed CUDA and tested Blender using it to make sure it was installed - I like to have things installed "just in case" :D
I'm wondering whether, as you mention, Proton would need to convert the system calls and it's not set up to do so. Usually I can just google and find something to install or, at least, a complicated set of instructions to attempt to get it working but in this case I'm not seeing anything.
It looks like I have OpenCL installed:
Code:

$ clinfo
Number of platforms                              1
  Platform Name                                  NVIDIA CUDA
  Platform Vendor                                NVIDIA Corporation
  Platform Version                                OpenCL 3.0 CUDA 12.0.139
  Platform Profile                                FULL_PROFILE

...


All times are GMT -5. The time now is 03:52 AM.