CUDA on TK1 and thrust


I am using CUDA toolchain 6.5 to cross compile CUDA programs for TK1. However, when i include a thrust header (no matter which one) the compilation crashes:

/opt/gcc-linaro/gcc-linaro-5.2.1/arm-linux-gnueabihf/include/c++/5.2.1/bits/locale_classes.h(789) (col. 20): internal error: assertion failed at: "/dvs/p4/build/sw/rel/gpu_drv/r343/r343_00/drivers/compiler/edg/EDG_4.8/src/cp_gen_be.c", line 8408

1 catastrophic error detected in the compilation of "/tmp/tmpxft_0000038a_00000000-4_main.cpp4.ii".
Compilation aborted.
Aborted (core dumped)

What exactly could be the reason for that? Any help would be greatly appreciated.


Could you take a look at this page to check if all the cross-compiler environment are well setup?