Forum Discussion
Altera_Forum
Honored Contributor
7 years agoWell, yes, your code crashes the compiler from v17.0 all the way to v18.0. However, it compiles correctly with v16.1.2. You have a lot of issues in your code reported by the v16.1.2 compiler. If you fix these, it will likely also compile with the newer versions:
Compiler Warning: Auto-unrolled loop at /nfshome/hrz/test.cl:40
Compiler Warning: Auto-unrolled loop at /nfshome/hrz/test.cl:40
Compiler Warning: Auto-unrolled loop at /nfshome/hrz/test.cl:40
/nfshome/hrz/test.cl:130: Compiler Warning: Aggressive compiler optimization: removing unnecessary storage to local memory
/nfshome/hrz/test.cl:133: Compiler Warning: Aggressive compiler optimization: removing unnecessary storage to local memory
Warning: Kernel 'clip_8b_kernel' has unused argument 'v'
Warning: Kernel 'clip_8b_kernel' has unused argument 'clip_8b_return'
Warning: Kernel 'GetSSE_kernel' has unused argument 'a'
Warning: Kernel 'GetSSE_kernel' has unused argument 'b'
Warning: Kernel 'GetSSE_kernel' has unused argument 'w'
Warning: Kernel 'GetSSE_kernel' has unused argument 'h'
Warning: Kernel 'GetSSE_kernel' has unused argument 'GetSSE_return' Specifically, the unnecessary usage of local memory in lines 130 and 133 is very likely the cause of the crash with the new versions of the compiler. If you remove the local memory usage in those lines, it will likely allow the kernel to be compiled correctly.