This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: OpenCL installation

Part Number: AM5728


Tool/software: Linux

The Processor SDK Linux is new to me. I downloaded the SDK in the ubuntu then I would like to use OpenCL. 

The question is: should I install the OpenCL by myself or it has been included in the Processor SDK?

  • Hello,

    Please check the release notes :
    processors.wiki.ti.com/.../Processor_SDK_Linux_Release_Notes
    This includes what is supported/included in PSDK.

    But if you want to build the PSDK you should follow this guide:
    processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK


    Hope this helps.

    BR
    Margarita
  • Thanks for you reply.
    I try to follow the instructions to build the SDK.
    When it comes to the fianl step of the Build Steps--"$ MACHINE=am57xx-evm bitbake arago-core-tisdk-im"

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm bitbake arago-core-tisdk-image

    There is an error which is
    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'

    I have also tried sudo but it still didn't work.

    What is more, since I have already installed the SDK, why should I still need to build the SDK?
    Where does it show how to install the components in the PSDK?

    Looking forward for your reply.
  • Hello,

    The PSDK contains opencl.
    If you want just to run opencl examples in PSDK just cd /usr/share/ti/examples/opencl/ directory on the board.
    The examples code could be found in ti-processor-sdk-linux-am57xx-evm-04.02.00.09/example-applications/opencl-examples-1.1.14.9 also. If you want you could build this examples by using make opencl-examples but you could build them with MACHINE=am57xx-evm bitbake opencl-examples . This is why I provided you the second link in case that you want to rebuild opencl or other PSDK component like opencl-examples. In fact under chapter "Recipes" you could find exactly example line how opencl can be build. Under chapter "Forced Re-compilation" is the command how you could recompile the code if you make changes in it. Under chapter "Installing Package" is how the new modified and rebuilt package must be install on the board.



    BR
    Margarita

  • Hello,

    Zibin He said:
    There is an error which is
    Unable to create 'pyshtables.py'
    [Errno 13] Permission denied: 'pyshtables.py'

    Regarding the error:

    1.You should not execute the commands with sudo.

    2. There is chapter "host setup" in the guide, click on [expand]. Make sure that you execute the commands from this chapter first. There is information for the host machine in this chapter also.

    3. Check the permission of the tisdk folder.

    Hope this helps.

    BR
    Margarita

  • Thanks for your help, I have executed the steps you said and the error have been fixed.
    However, when it comes to the final step.
    beagleboard@ubuntu:~$ cd tisdk/
    beagleboard@ubuntu:~/tisdk$ cd build/
    beagleboard@ubuntu:~/tisdk/build$ . conf/setenv
    beagleboard@ubuntu:~/tisdk/build$ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    beagleboard@ubuntu:~/tisdk/build$ MACHINE=am57xx-evm bitbake arago-core-tisdk-image
    Parsing recipes: 41% |################# | ETA: 0:29:18

    It took so long time to finish, I have tried several times, it always stuck at about 50%.
  • Hello,

    Try this :
    MACHINE=am57xx-evm bitbake opencl

    and for building demos

    MACHINE=am57xx-evm bitbake opencl-examples

    This is expected to take a long time when you execute MACHINE=am57xx-evm bitbake arago-core-tisdk-image.

    The previous two commands will build opencl, opencl demos(this includes the dependency modules also).

    BR
    Margarita