On 12 November 2013 15:53, Frank Winter <fwinter at jlab.org> wrote:> .. forcing the vector size to 4 does not prevent using AVX. >Sure. That's more for tests than anything else. So, there are ways of disabling stuf in Clang, for instance "-mattr=-avx" or "-target-feature -avx", but I'm not sure how you're doing it in the JIT. I'm also not sure how to set target parameters in JIT, you'll have to do that by hand. cheers, --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131112/8b869c1f/attachment.html>
On 12/11/13 11:01, Renato Golin wrote:> On 12 November 2013 15:53, Frank Winter <fwinter at jlab.org > <mailto:fwinter at jlab.org>> wrote: > > .. forcing the vector size to 4 does not prevent using AVX. > > > Sure. That's more for tests than anything else. > > So, there are ways of disabling stuf in Clang, for instance > "-mattr=-avx" or "-target-feature -avx", but I'm not sure how you're > doing it in the JIT. I'm also not sure how to set target parameters in > JIT, you'll have to do that by hand. >I don't know that either. I set the CPU via engineBuilder.setMCPU(llvm::sys::getHostCPUName()); and that figures out all target parameters, I assume. I would need to still use this, and then disable just the AVX feature.> cheers, > --renato-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131112/768ec29f/attachment.html>
On 12 November 2013 16:05, Frank Winter <fwinter at jlab.org> wrote:> engineBuilder.setMCPU(llvm::sys::getHostCPUName()); >Try: engineBuilder.setMAttrs("-avx"); --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131112/4b00aed7/attachment.html>