cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

sschuberth
Adept I

Crash when removing AMD GPU from system

Hi,

I'm currently doing a lot of OpenCL benachmarking. I have a PC with an AMD CPU and an AMD GPU running under Vista x64. Both the APP / Stream SDK 2.3 and the regular Catalyst 11.1 driver are installed. That configuration works fine, I'm seeing both CPU and GPU devices.

However, if I remove the AMD GPU (without uninstalling the Catalyst driver, as I'm going to plug-in the AMD GPU again soon) in order to replace it with an NVIDIA GPU, the call to clGetPlatformIDs() crashes. Uninstalling the Catayst driver or manually renaming the AMD OpenCL ICD entries in the registry works around the crash (although the latter also removes the CPU device, obviously).

It seems that a check for the presence of an AMD GPU is missing, and the OpenCL ICD assumes that just because the Catalyst driver files are there, it can use an AMD GPU. Having to uninstall / reinstall the Catalyst drivers really is very inconvenient if you do a lot of GPU swapping for benchmarking. Any chance to get this fixed?

Thanks!

0 Likes
Reply
13 Replies
MicahVillmow
Staff
Staff

Crash when removing AMD GPU from system

Thanks for reporting this issue, we will look into it.
0 Likes
Reply
erwincoumans
Journeyman III

Crash when removing AMD GPU from system

 

I've reported the same issue in the Khronos OpenCL working group half a year ago, with NVIDIA and AMD engineers looking into it, but it never got fixed.

You can workaround the problem by editing the registry, remove the ATI components (ati*.dll) when running NVIDIA GPUs.

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors 
HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors

Save the registry key to revert back when using AMD GPUs.

 

0 Likes
Reply
sschuberth
Adept I

Crash when removing AMD GPU from system

Originally posted by: erwincoumans

You can workaround the problem by editing the registry, remove the ATI components (ati*.dll) when running NVIDIA GPUs.



Thanks, that's what I mean when I was saying "renaming the AMD OpenCL ICD entries in the registry" 😉

0 Likes
Reply
laobrasuca
Journeyman III

Crash when removing AMD GPU from system

does this mean that it's impossible to use 1 AMD CPU + 1 NV GPU (noting else)?. As of now, I'm able to run 1 AMD CPU + 1 AMD GPU (1 platform) or 1 AMD CPU + 1 AMD GPU + 1 NV GPU (2 platforms), but removing the AMD GPU I have that only one platform is detected (the NV one) instead of 2.

0 Likes
Reply
sschuberth
Adept I

Crash when removing AMD GPU from system

No, it's no impossible, I've successfully done it. You just have to make sure that you uninstall / clean the ATI graphics drivers from system, but keep the ATI Stream SDK / AMD APP SDK.

0 Likes
Reply
laobrasuca
Journeyman III

Crash when removing AMD GPU from system

with the AMD CPU and the NV GPU i had the NV SDK and NV display drivers (i had removed all AMD software). Only one platform was detected (NV's). Then I installed the AMD SDK but it was still detecting only one platform (NV's). I then uninstalled both SDK and reinstalled AMD's one. Again, only one platform, but to my surprise it was the NV's (GPU)! Maybe i need to uninstall the NV display driver before installing the SDKs (?) Maybe i need reboot the system? (i can't test the rebooting now)

0 Likes
Reply
sschuberth
Adept I

Crash when removing AMD GPU from system

Well, all I can say is that it worked for me without uninstalling the NV drivers. I can't recall for sure whether a reboot was necessary.

Have you double-checked you're not limiting your device enumeration to GPUs?

0 Likes
Reply
laobrasuca
Journeyman III

Crash when removing AMD GPU from system

maybe I need a reboot then. As for the limit on devices, i don't even come to check devices, as there only the NV platform.

there's a funny thing, though. When connecting to my pc from outside using Windows Remote Desktop, i see only one platform, the AMD one with CPU device! I was expecting to see none since i had no AMD platform and NV platform has GPU only device (and RDP does not support opencl on gpu)!

0 Likes
Reply
jeff_golds
Staff
Staff

Crash when removing AMD GPU from system

I encountered this same issue, but it's fixed with a newer driver.  Should be resolved in an upcoming Catalyst release.

Sorry you encountered the same headache.

Jeff

0 Likes
Reply