cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BradleyB9
Observer
Observer
1,558 Views
Registered: ‎09-25-2020

Thread local storage is not supported for the current target

Jump to solution

I am getting the following error when trying to compile my application:

 

 

ERROR: [v++ 207-3640] thread-local storage is not supported for the current target: /opt/Xilinx/Vivado/2020.1/tps/lnx64/gcc-6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../include/c++/6.2.0/mutex:580:10

 

 

I am getting this error when compiling my application using the following command flags:

 

 

-t ${TARGET} --platform ${PLATFORM} -R 1 --nk fpga_hash:${CU_NUM} -I${KERNEL_SRC_H_DIR} --temp_dir ${BUILD_DIR} --log_dir ${BUILD_DIR} --profile_kernel data:all:all:all:all -DBASELINE_ADD -DHOST_CODE_OPT -DLOCAL_BUF_OPT -DDF_OPT -DFP_OPT

 

 

please let me know if you have any suggestions or if I can provide any additional info. Thank you!

  

0 Kudos
1 Solution

Accepted Solutions
preusser
Adventurer
Adventurer
1,507 Views
Registered: ‎05-19-2014

I experienced the same issue when including the OpenCL headers on the side of the kernel code.
Make sure to have:

#include <CL/cl2.hpp>

or similar only on the host side.

View solution in original post

3 Replies
preusser
Adventurer
Adventurer
1,508 Views
Registered: ‎05-19-2014

I experienced the same issue when including the OpenCL headers on the side of the kernel code.
Make sure to have:

#include <CL/cl2.hpp>

or similar only on the host side.

View solution in original post

BradleyB9
Observer
Observer
1,472 Views
Registered: ‎09-25-2020

Thank you!

0 Kudos
khareashish_trimble
Adventurer
Adventurer
526 Views
Registered: ‎10-17-2017

@preusser - Thanks this fixed it for me as well

0 Kudos