Nadav Rotem
2013-Nov-14 19:10 UTC
[LLVMdev] Vectorization of loops with conditional dereferencing
Its a good point. We will need to document the semantics of the vectorization pragma well. On Nov 14, 2013, at 10:58 AM, Ralf Karrenberg <Chareos at gmx.de> wrote:> Hi Nadav, > > On 14/11/13 17:38, Nadav Rotem wrote: >> Sure. Vectorization of stores is done by loading the current value from memory, blending the new value and saving it back to memory. > > Just a side note: You may run into trouble with this approach when people start using the loop vectorizer in combination with multi threading. The load/blend/store scheme introduces a race condition in this scenario. > I don't know if this is a valid use case for you, but it may be worth keeping in mind. > > Cheers, > Ralf
Stephen Lin
2013-Nov-22 19:11 UTC
[LLVMdev] Vectorization of loops with conditional dereferencing
Nadav and Arnold, What is the current status of vectorization pragmas? Do you think that's something I might be able to take on if you two are busy with other things? Stephen On Thu, Nov 14, 2013 at 11:10 AM, Nadav Rotem <nrotem at apple.com> wrote:> Its a good point. We will need to document the semantics of the > vectorization pragma well. > > On Nov 14, 2013, at 10:58 AM, Ralf Karrenberg <Chareos at gmx.de> wrote: > > > Hi Nadav, > > > > On 14/11/13 17:38, Nadav Rotem wrote: > >> Sure. Vectorization of stores is done by loading the current value > from memory, blending the new value and saving it back to memory. > > > > Just a side note: You may run into trouble with this approach when > people start using the loop vectorizer in combination with multi threading. > The load/blend/store scheme introduces a race condition in this scenario. > > I don't know if this is a valid use case for you, but it may be worth > keeping in mind. > > > > Cheers, > > Ralf > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131122/7e7a3bb2/attachment.html>
Renato Golin
2013-Nov-22 21:54 UTC
[LLVMdev] Vectorization of loops with conditional dereferencing
On 22 November 2013 19:11, Stephen Lin <swlin at post.harvard.edu> wrote:> Nadav and Arnold, > > What is the current status of vectorization pragmas? Do you think that's > something I might be able to take on if you two are busy with other things? >Hi Stephen, I was planing on having a look at that this month, but if you have the bandwidth for it, I won't impose. Unfortunately, my feature implementation time is restricted with so much admin going on, so you're likely to finish before I even start. Feel free to keep me in the loop, though. cheers, --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131122/d111c2fb/attachment.html>
Reasonably Related Threads
- [LLVMdev] Vectorization of loops with conditional dereferencing
- [LLVMdev] Vectorization of loops with conditional dereferencing
- [LLVMdev] Vectorization of loops with conditional dereferencing
- [LLVMdev] Vectorization of loops with conditional dereferencing
- [LLVMdev] Vectorization of loops with conditional dereferencing