Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
cyberfoxmeow's avatar
cyberfoxmeow
Explorer
2 years ago

clGetPlatformIDs() failed by Adreno OpenCL sdk

Hello,

I am developing on Meta Quest 3 using Adreno OpenCL SDK for programs running on GPU. However, when I try to run the OpenCL examples on Android Studio, there is an error of function clGetPlatformIDs() with error code -1001, saying that the function cannot find the platform on the device.

I have searched this problem online, and linked libOpenCL.so and other related libraries to the source, but the problem still exists.

How should I solve this problem? 

Thanks. 

Adreno OpenCL SDK v2.0: https://developer.qualcomm.com/software/adreno-gpu-sdk/tools 

1 Reply

  • I know this doesn't help, but I'm have a similar problem trying to use V-Sekai/godot-whisper:

    Can't open dynamic library: .../addons/godot_whisper/bin/libgodot_whisper.android.template_release.arm64.so.  
    Error: dlopen failed: cannot locate symbol "clGetPlatformIDs" referenced by ".../addons/godot_whisper/bin/libgodot_whisper.android.t
    emplate_release.arm64.so

    The library appears to be on disk (/system/vendor/lib/libOpenCL.so) and strings seems to indicates it contains the entry but somehow it is just not happy.