Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Hello, I found a way. For those who had the same problem as me, aocl-clang -cc1 -O3 -emit-llvm-bc -DALTERA_CL -Wuninitialized -triple fpga64 -mllvm -board -mllvm ~/tools/altera/14.1/hld/board/s5_ref/hardware/s5_ref/board_spec.xml -DACL_BOARD_s5_ref=1 -DAOCL_BOARD_s5_ref=1 matrix_mult.cl -o matrix_mult.pre.bc --- Quote End --- May I ask you where did you find such information ? I'm trying the same but with "-v" flag and I'm getting some errors: aocl-clang tries to generate its output in /tmp/<kernel>-xxx.o (<kernel> is the kernel name and XXX is some code generated for temp files) the linker then tries to link the /tmp/<kernel>-xxx.o with other libraries but cannot recognize the /tmp/<kernel>-xxx.o file I've tried to add the "-save-temps" flag, which compiles <kernel>.cl into <kernel>.i and then tries to compile <kernel>.i with aocl-clang, and I get a lots of "error: unknown type name 'half'" and "unknown type name 'size_t'" errors during aocl-clang, what makes me think that it is not generating the /tmp/<kernel>-xxx.o file. I would appreciate any information you could give on where there is some of this stuff documented or any help on the problem.