Open Gamination opened 6 months ago
If you have more than a single GPU a CUDA (or any HIP or OpenCL or anything else) must choose which GPU to use. On CUDA it's easy for an application because CUDA sorts the GPUs so the first one is the fastest. Most single-GPU CUDA applications will use the first GPU. HIP and by extension ZLUDA does not order the GPUs and sometimes the first one will be integrated GPU.
If you are using an application that is multi-GPU aware and allows you to select the GPU you don't have to do anything. If it happens that HIP sorts your GPUs so that dedicated GPU is the first one you don't have to do anything.
HIP_VISIBLE_DEVICES=1
makes it so that only the second device is visible (indexing starts at 0 here). If hiding the first GPU with HIP_VISIBLE_DEVICES=1
leaves you with just the integrated GPU then I recommend removing HIP_VISIBLE_DEVICES=1
and doing nothing
removing HIP_VISIBLE_DEVICES=1 also gives same result as if HIP_VISIBLE_DEVICES=1 was still enabled
That shouldn't happen. In the HIP tab in blender can you see both integrated and dedicated GPU?
Normally without ZLUDA I can see both dedicated GPU and integrated GPU but with ZLUDA, only integrated graphics are recognized
Extremally weird and I have no idea why it'd be so. I can only suggest double checking with Sysinternals Process Explorer if the process in question doesn't get HIP_VISIBLE_DEVICES
set from some other source
what name of program in image?
I have a Dell G5 SE with two GPUs:
AMD Radeon RX 5600M (Dedicated) AMD Radeon(TM) Graphics (Integrated)
There is no way to disable the iGPU as the dGPU outputs to the iGPU first and then the iGPU outputs to the monitor. If I disable the iGPU in the device manager, applications like Blender and Keyshot refuse to open because the OpenGL version is too low.
So, with this, I tried to use the second solution which involves setting the environment variable. However, setting the environment variable HIP_VISIBLE_DEVICES=1 does not work as the applications only show the iGPU as being recognized.
I have checked the https://github.com/vosen/ZLUDA/blob/master/TROUBLESHOOTING.md but to no avail.