Den Fri, 22 Nov 2013 10:24:55 +0200 skrev Re: [pocl-devel] Supporting other languages than OpenCL C for kernels:
> How the kernels are compiled is unclear; whether one is able to use > the standard OpenCL compilation APIs to produce the SPIR binaries > or not. According to SPIR 1.2 (provisional) specification, SPIR is defined as whatever 'clang -target spir-unknown-unknown -S -emit-llvm' spews out, so that should not be an issue - just call clCreateProgramWithBinary with that LLVM IR/BC file as input. I tried this when looking into the AMP compiler, and ran into 'linking libs of different targets' issue - the kernel lib was native-target .bc... Also one thing to look out for is external libraries in the non-OpenCL-C code. If pocl would support C++ as kernel language, I predict a flood of issues from accidental use of std::vector or std::cout in the kernels ;) So yes, I am all in favour of trying this out. But only after 0.9! kalle ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
