Forum Discussion

DorianL's avatar
DorianL
Icon for New Contributor rankNew Contributor
1 year ago

Functor kernel calling function

Hi everyone,

I wanted to know if it was possible to call a simple function (to process variable for exemple) in a functor kernel. It would be very efficient to be able to call a function in a kernel instead of just writing the snippet of code again and again to process something. Thank you !

DorianL

4 Replies

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi DorianL,


    Are you refering to using the linux-socfpga kernel?


    Thanks.

    Regards,

    Aik Eu


  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi DorianL,


    Any follow up from the previous comment?


    Thanks.

    Regards,

    Aik Eu



    • DorianL's avatar
      DorianL
      Icon for New Contributor rankNew Contributor

      Hi @aikeu,

      I found the solution with the SYCL_EXTERNAL macro and now i can call functions in kernels. Thank you for your help !

      DorianL

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi DorianL,


    Glad to hear that you have found your solution. I will close the thread for now.


    Thanks.

    Regards,

    Aik Eu