PROCESSOR-SDK-J784S4: vxlib

Part Number: PROCESSOR-SDK-J784S4

Tool/software:

How to use vxlib for my c7x dsp? I want to dilate an image, however the includes in the source code (vxlib.h) checks c66 and it returns invalid target. Is there any way to use vxlib with c7x dsp?

  • Hi Teknik,

    Are you needing to use a particular SDK version? Would you be needing OpenVX integration?

    Best,

    Asha

  • Processor SDK RTOS j784s4 09_01_00

    Should I use tiovx source codes for dilation? Or like using dsplib can I use vxlib directly on dsp c7x?

    Actually, I can summarize the problem. I am new with these stuff and trying to find a way that lets say dilate an image cpp code run on c7x using some libraries. Could you guide me?

    Thanks

  • Hi Teknik,

    Yes, thank you for the clarifications regarding what stage you are in your project. Let me clarify some of the options below - 

    Option 1 - If you are looking for functionality that is similar to DSPLIB in the sense that you are simply looking for a standalone library (baremetal library that does not built in integration to the rest of the SDK) that is accelerated for C7x for VXLIB, then this functionality is within SDKs starting from 9.2 SDK and onward. If this is what you are looking for this functionality, then for the 9.2 SDK you should look at the vxlib_09_02_00_04 folder and for the 10.0 SDK (preferably, this is our newest code) this is vxlib_10_00_00_02. Both will have a VXLIB_dilate function which is what you are looking for. 

    Option 2 - Otherwise if you are looking to run within the TIOVX environment, then the vxlib (note the no numbers) will have to be used. There should be a library within that which is compiled for C7x. The difference here, other than the TIOVX integration, is that this library is C66x code that has then compiled for the C7x core - meaning you won't achieve full performance on the C7x core with using this version, but you should get the correct functionality. 

    Or like using dsplib can I use vxlib directly on dsp c7x?

    So maybe to answer your question directly, what I have given in option 1 would be what you are looking for I'd imagine. 

    Best,

    Asha

  • Hi Asha,

    Thank you very much for your responses, they are very helpful.

    Let me check whether my understanding is correct. For option 1, I can get maximum performance for c7x dsp cores with vxlib (newer versions), right?. I have checked the mentioned sdk and seen some example codes for such purposes. I could not try them yet, but that was exactly what I asked for.

    For option 2, you are talking about the sdk version that I have, right? I am not familiar with tiovx environment, and as I see there is no example codes provided. Can you suggest any guide or tutorial for me to write my code? And how different this option from the other one in terms of coding, one includes vxlib, other tiovx files?

    Thanks

  • Hi Teknik,

    Let me check whether my understanding is correct. For option 1, I can get maximum performance for c7x dsp cores with vxlib (newer versions), right?. I have checked the mentioned sdk and seen some example codes for such purposes. I could not try them yet, but that was exactly what I asked for.

    Yes, and yes I believe this is what you are looking for.

    For option 2, you are talking about the sdk version that I have, right? I am not familiar with tiovx environment, and as I see there is no example codes provided. Can you suggest any guide or tutorial for me to write my code? And how different this option from the other one in terms of coding, one includes vxlib, other tiovx files?

    Essentially, this would be something that is similar to what is demonstrated in this vision_apps demo here

    Best,

    Asha