Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C66 DSP programming with OpenCL compile errors #20

Open
jomoengineer opened this issue Dec 30, 2019 · 1 comment
Open

C66 DSP programming with OpenCL compile errors #20

jomoengineer opened this issue Dec 30, 2019 · 1 comment

Comments

@jomoengineer
Copy link

I'm attempting to go through the "C66 DSP programming with OpenCL" examples that are listed under Cloud9 AI->c66->README.md but I am running into compile errors when doing. I've gone through the Introduction_to_OpenCL_slides.pdf listed in the README and copied the examples to my home folder, but I am seeing the following errors for some of the examples.

Ex:
`cp -r /usr/share/ti/examples/opencl .

make`

I was able to get passed the SDL errors by installing SDL 1.2 (would have preferred SDL2), but the RTOS one I can not find info on.


=============== mandelbrot =================
Compiling main.cpp
main.cpp:30:21: fatal error: SDL/SDL.h: No such file or directory
#include <SDL/SDL.h>
^
compilation terminated.
../make.inc:238: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
=============== simple =======

Installing SDL 1.2 as follows resolves this:
sudo apt-get install libsdl1.2-dev

This one I do not know.


=============== mandelbrot =================
Compiling main.cpp
=============== simple =================
=============== matmpy =================
=============== sgemm =================
/usr/bin/ld: libcblas_atlas_arm/libcblas.a(cblas_errprn.o): relocation R_ARM_THM_MOVW_ABS_NC against `stderr' can not be used when making a shared object; recompile with -fPIC
libcblas_atlas_arm/libcblas.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'sgemm' failed
make[1]: *** [sgemm] Error 1

Also, I am not sure what to set PSDK_RTOS to to resolve these issues.


=============== persistent_kernel_timeout =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_task_concurrent =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_messageq_concurrent =================
../../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
Makefile:5: recipe for target 'persistent_messageq_concurrent' failed
make[1]: *** [persistent_messageq_concurrent] Error 2
=============== persistent_clock_concurrent =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_clock_spanning =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
=============== persistent_task_spanning =================
../make.inc:205: *** Environment variable PSDK_RTOS is not defined; set PSDK_RTOS to point at the target RTOS PSDK for automatic configuration or set XDC_DIR to the corresponding package directories. Stop.
Makefile:43: recipe for target 'all' failed
make: *** [all] Error 2

Cheers,

Jon

@silver2row
Copy link

Hello @jomoengineer ,

Seth here. I have gone through the items you are describing. I am stuck at the PSDK_RTOS too. Are you still having this issue?

Seth

P.S. I am still currently and actively approaching this topic on the AI. Please send some guidance if you have "conquered" this effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants