Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] memory scopes in atomic instructions"
2014 Nov 14
3
[LLVMdev] memory scopes in atomic instructions
On 11/15/2014 12:08 AM, Tom Stellard wrote:
> Can you send a plain-text version of this email. It's easier to read
> and reply to.
Sorry about that! Here's the plain text (I hope!):
Hi all,
OpenCL 2.0 introduced the notion of memory scope in atomic operations to
global memory. These scopes are a hint to the underlying platform to
optimize how synchronization is achieved. HSAIL
2014 Nov 19
2
[LLVMdev] memory scopes in atomic instructions
On 11/19/2014 4:05 AM, Chandler Carruth wrote:
>
> On Fri, Nov 14, 2014 at 1:09 PM, Sahasrabuddhe, Sameer
> <sameer.sahasrabuddhe at amd.com <mailto:sameer.sahasrabuddhe at amd.com>>
> wrote:
>
> 1. Update the synchronization scope field in atomic instructions
> from a
> single bit to a wider field, say 32-bit unsigned integer.
>
>
> I
2014 Nov 19
2
[LLVMdev] memory scopes in atomic instructions
> On Nov 18, 2014, at 2:35 PM, Chandler Carruth <chandlerc at google.com> wrote:
>
>
> On Fri, Nov 14, 2014 at 1:09 PM, Sahasrabuddhe, Sameer <sameer.sahasrabuddhe at amd.com <mailto:sameer.sahasrabuddhe at amd.com>> wrote:
> 1. Update the synchronization scope field in atomic instructions from a
> single bit to a wider field, say 32-bit unsigned integer.
2014 Dec 11
2
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
Hi all,
Attached is a sequence of patches that changes the IR to support more
than two synchronization scopes. This is still a work in progress, and
these patches are only meant to start a more detailed discussion on the
way forward.
One big issue is the absence of any backend that actually makes use of
intermediate synchronization scopes. This work is meant to be just one
part of the
2014 Dec 24
2
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
I've not had a good chance to look at the patches in detail, but just to
clarify one point:
I don't really care whether we number things going up or down from single
threaded to "every thread". I just think it makes sense to expose them in
the in-memory IR interface as an enum with a particular ordering so that
code can use the obvious sorts of tests for comparing two orderings
2015 Jan 06
3
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On 1/6/2015 1:01 PM, Chandler Carruth wrote:
>
> On Mon, Jan 5, 2015 at 10:51 PM, Owen Anderson <resistor at mac.com
> <mailto:resistor at mac.com>> wrote:
>
> Hi Sameer,
>
> > On Jan 5, 2015, at 4:51 AM, Sahasrabuddhe, Sameer
> <Sameer.Sahasrabuddhe at amd.com
> <mailto:Sameer.Sahasrabuddhe at amd.com>> wrote:
> >
2015 Jan 07
3
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On 1/7/2015 8:59 AM, Chandler Carruth wrote:
>
> Essentially, I think target-independent optimizations are still
> attractive, but we might want to just force them to go through an
> actual target-implemented API to interpret the scopes rather than
> making the interpretation work from first principles. I just worry
> that the targets are going to be too different and we may
2015 Jan 06
2
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
Hi Sameer,
> On Jan 5, 2015, at 4:51 AM, Sahasrabuddhe, Sameer <Sameer.Sahasrabuddhe at amd.com> wrote:
>
> Right. The second version of my patches fixes the bitcode encoding. But now I see another potential problem with future bitcode if we require an ordering on the scopes. What happens when a backend later introduces a new scope that goes into the middle of the order? If they
2014 Nov 17
2
[LLVMdev] memory scopes in atomic instructions
Copying #5 here for reference:
> 5. Possibly add the following constraint on memory scopes: "The scope
> represented by a larger value is nested inside (is a proper subset
> of) the scope represented by a smaller value." This would also imply
> that the value used for single-thread scope must be the largest
> value used by the target.
> This constraint
2016 Mar 29
1
Memory scope proposal
Ke,
I'll be the bearer of bad news here. The radio silence this proposal
has gotten probably means there is not enough interest in the community
in this proposal to see it land.
One concern I have with the current proposal is that the optimization
value of these scopes is not clear to me. Is it only the backend which
is expected to support optimizations over these scopes? Or are you
2016 Jan 28
6
Memory scope proposal
Hi all,
Currently, the LLVM IR uses a binary value (SingleThread/CrossThread) to
represent synchronization scope on atomic instructions. We would like to
enhance the representation of memory scopes in LLVM IR to allow more values
than just the current two. The intention of this email is to invite
comments on our proposal. There are some discussion before and it can be
found here:
2015 Jan 09
2
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On 1/9/2015 4:14 AM, Chandler Carruth wrote:
> On Wed, Jan 7, 2015 at 8:03 PM, Sahasrabuddhe, Sameer
> <sameer.sahasrabuddhe at amd.com <mailto:sameer.sahasrabuddhe at amd.com>>
> wrote:
>
> Here's what this looks like to me:
>
> 1. LLVM text format will use string symbols for memory scopes,
> and not numbers. The set of strings is target
2015 Jan 08
2
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On 1/7/2015 9:42 AM, Chandler Carruth wrote:
> I think it is significantly more friendly (and easier to debug
> mistakes) if the textual IR uses human readable names. We already have
> a hard time due to the totally opaque nature of address spaces --
> there are magical address spaces for segment stuff in x86.
>
> The strings are only opaque to the target-independent
2016 Apr 18
3
Memory scope proposal
> On Apr 18, 2016, at 9:12 AM, Tom Stellard via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Here is the initial proposal with some formatting fixed:
>
> Currently, the LLVM IR uses a binary value (SingleThread/CrossThread) to
> represent synchronization scope on atomic instructions. We would like to
> enhance the representation of memory scopes in LLVM IR to allow
2016 Mar 22
1
Memory scope proposal
Dear all,
Here is the plain text version of the proposal:
Currently, the LLVM IR uses a binary value (SingleThread/CrossThread) to
represent synchronization scope on atomic instructions. We would like to
enhance the representation of memory scopes in LLVM IR to allow more values
than just the current two. The intention of this email is to invite
comments on our proposal. There are some
2015 Jan 14
3
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On Tue, Jan 13, 2015 at 10:27 PM, Sameer Sahasrabuddhe <
sameer.sahasrabuddhe at amd.com> wrote:
> Ping! We need to close on whether everyone is convinced that symbolic
> memory scopes have a significant advantage over opaque numbers. Either of
> them will be examined by optimizations using a target-implemented API. I
> personally don't think that readability in the LLVM
2016 Aug 17
3
Memory scope proposal
> On Aug 17, 2016, at 2:08 PM, Zhuravlyov, Konstantin <Konstantin.Zhuravlyov at amd.com> wrote:
>
> >Why not going with a metadata attachment directly and kill the "singlethread" keyword? Something like:
> >Something like:
> > cmpxchg i32* %addr, i32 42, i32 0 monotonic monotonic, 3, !memory.scope{!42}
> > cmpxchg i32* %addr, i32 42, i32 0 monotonic
2016 Aug 17
2
Memory scope proposal
Hi,
I have updated the review here:
https://reviews.llvm.org/D21723
As Sameer pointed out, the motivation is:
In OpenCL 2.x, two atomic operations on the same atomic object need to have the same scope to prevent a data race. This derives from the definition of "inclusive scope" in OpenCL 2.x. Encoding OpenCL 2.x scope as metadata in LLVM IR would be a problem because there cannot be a
2015 Jan 08
2
[LLVMdev] Is address space 1 reserved?
On 1/8/2015 1:55 AM, Philip Reames wrote:
>>>> I think the problems aren’t so much that accessing 0 doesn’t work
>>>> (although I imagine there are problems with that), but expectations
>>>> of comparison with null. The main problem I’m aware of is
>>>> comparisons with null pointers. The first global object in
>>>> addrspace(3) will
2016 Aug 21
2
Memory scope proposal
> On Aug 21, 2016, at 11:14 AM, Philip Reames <listmail at philipreames.com> wrote:
>
> On 08/17/2016 03:05 PM, Mehdi Amini wrote:
>>
>>> On Aug 17, 2016, at 2:08 PM, Zhuravlyov, Konstantin <Konstantin.Zhuravlyov at amd.com <mailto:Konstantin.Zhuravlyov at amd.com>> wrote:
>>>
>>> >Why not going with a metadata attachment directly