Displaying 4 results from an estimated 4 matches for "vpint".
Did you mean:
apint
2010 Dec 07
3
[LLVMdev] [cfe-dev] OpenCL support
...The pointer is returned by a system-defined intrinsic
function dependent on the current work item. (The system knows what
work groups are in flight, which is why you need a system-defined
intrinsic.)
So a kernel function like this:
void foo(__global int*A) {
__local int vint;
__local int *vpint;
__local int const *vcpint;
__local int volatile vvint;
int a = A[0];
vint = a;
vvint = a;
int a2 = vint;
int va2 = vvint;
barrier(CLK_LOCAL_MEM_FENCE);
A[0] = a2 + va2;
}
is translated to this, which does pass through Clang, with __local
meaning attrib addrspace(2):
ex...
2010 Dec 09
0
[LLVMdev] [cfe-dev] OpenCL support
...intrinsic
> function dependent on the current work item. (The system knows what
> work groups are in flight, which is why you need a system-defined
> intrinsic.)
>
> So a kernel function like this:
>
> void foo(__global int*A) {
> __local int vint;
> __local int *vpint;
> __local int const *vcpint;
> __local int volatile vvint;
> int a = A[0];
> vint = a;
> vvint = a;
> int a2 = vint;
> int va2 = vvint;
> barrier(CLK_LOCAL_MEM_FENCE);
> A[0] = a2 + va2;
> }
>
[Villmow, Micah] This example is incorrect....
2010 Dec 06
0
[LLVMdev] [cfe-dev] OpenCL support
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Peter Collingbourne
> Sent: Monday, December 06, 2010 2:56 PM
> To: David Neto
> Cc: cfe-dev at cs.uiuc.edu; llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] [cfe-dev] OpenCL support
>
> Hi David,
>
> On Mon, Dec 06, 2010 at 11:14:42AM -0500,
2010 Dec 06
2
[LLVMdev] [cfe-dev] OpenCL support
Hi David,
On Mon, Dec 06, 2010 at 11:14:42AM -0500, David Neto wrote:
> >> It
> >> seems it would be a good idea to transform the code so that uses of x
> >> become loads and stores from memory, and the address for that memory
> >> is returned by a builtin function that itself is dependent on work
> >> group ids.
> >>
> >> I'm