FLIR One Developer / Blog / Topics / android, gpu, opencl, SDK / OpenCL for Android: or what GPU library is being used by the SDKs?

OpenCL for Android: or what GPU library is being used by the SDKs?

Home Forums FLIR One developer community General discussion OpenCL for Android: or what GPU library is being used by the SDKs?

Tagged: , , ,

This topic contains 7 replies, has 3 voices, and was last updated by Profile photo of Ian Butler Ian Butler 1 year, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)

  • Author

    Posts

  • #5948

    Profile photo of Matthew Mauriello
    Matthew Mauriello

    Participant

    Have any (or all) of the FLIR ONE SDK versions for Android been built on top of OpenCL? I am getting a lot of lag from my camera and the log indicates that something is looking for OpenCL support and not finding an appropriate .so file.

    #5949

    Profile photo of Matthew Mauriello
    Matthew Mauriello

    Participant

    Assuming it is the SDK looking for OpenCL support, is it possible to use OpenGL ES instead?

    #5952

    Profile photo of Dominique
    Dominique

    Moderator

    Hi Matthew,

    Looking into this now.

    Thank you,
    Dominique Strauss

    #5963

    Profile photo of Matthew Mauriello
    Matthew Mauriello

    Participant

    Just curious if there were any updated on this; thanks!

    #5969

    Profile photo of Dominique
    Dominique

    Moderator

    Hi Matthew,

    Would you mind posting the logs you are referencing above?

    Thank you,
    Dominique Strauss

    #6000

    Profile photo of Matthew Mauriello
    Matthew Mauriello

    Participant

    Hi,

    Sorry for the delay. The lines in the log that I think refer to this issue are:

    01-12 05:53:36.755 1076-1076/thermalthing I/SR_V9 ImageProcessing: [TrilateralStartup]: Setup OpenCL
    01-12 05:53:36.768 1076-1076/thermalthing I/ImageProcessing: Failed to load OpenCL library in dlopen call
    01-12 05:53:36.768 1076-1076/thermalthing I/SR_V9 ImageProcessing: [TrilateralStartup]: Failed to get OpenCL platforms
    01-12 05:53:36.769 1076-1076/thermalthing I/SR_V9 ImageProcessing: [TrilateralStartup]: Failed to Setup OpenCL, fall back to the CPU impl.
    01-12 05:53:36.775 1076-1076/thermalthing I/SR_V9 ImageProcessing: [TrilateralStartup]: Done Setup OpenCL
    01-12 05:53:36.903 1076-1118/thermalthing I/thermalthing: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
    01-12 05:53:36.904 1076-1118/thermalthing I/ImageProcessing: EGL Version 1.4
    01-12 05:53:36.905 1076-1118/thermalthing I/ImageProcessing: [Context::InitEGLContext()]: Failed to create context
    01-12 05:53:37.355 1076-1076/thermalthing I/Device: Opening device
    01-12 05:53:37.355 1076-1076/thermalthing I/Device: Opening USB device
    01-12 05:53:37.355 1076-1076/thermalthing D/com.flir.flironesdk.FlirUsbDevice: onCommunicationAvailabilityChange!
    01-12 05:53:37.359 1076-1076/thermalthing D/UsbCommunicator: Result from control transfer: 0
    01-12 05:53:37.363 1076-1138/thermalthing D/configReadRequest: Starting configReadRequest poll loop…
    01-12 05:53:37.363 1076-1076/thermalthing E/UsbCommunicator: Invalid device: Unsupported USB Vendor ID of 2341
    01-12 05:53:37.363 1076-1076/thermalthing E/UsbCommunicator: Invalid device: Unsupported USB Vendor ID of 424
    01-12 05:53:37.409 1076-1076/thermalthing D/Background Service: onStartCommand Called
    01-12 05:53:37.432 1076-1076/thermalthing D/Background Service: onBind Called

    I am running an Android/Raspberry Pi and the GPU does not support OpenCL; I am presently throttling the image speed and, while this isn’t a show stopper for my current application, I am curious if OpenGL support might be in a future SDK?

    #6003

    Profile photo of Dominique
    Dominique

    Moderator

    We’re working on this now.

    Thank you

    #6011

    Profile photo of Ian Butler
    Ian Butler

    Participant

    Matthew,

    OpenGL ES is used extensively in the new 3.0 SDK, with no OpenCL usage, currently. Unfortunately some device compatibility and performance issues are difficult to address for all use cases. If MSX is not a requirement, for the Raspberry Pi I would recommend looking into the Lepton development boards such as https://groupgets.com/manufacturers/getlab/products/purethermal-1-flir-lepton-smart-i-o-module

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.