Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Jan Vesely
On Thu, 2014-04-24 at 17:53 +0200, Francisco Jerez wrote: > Jan Vesely writes: > > > On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > > > >> >>> > >> >>> I don't think that using getTypeAllocSize() instead of > >> >>> getTypeStoreSize() to calculate clover::argument::size would be a

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Jan Vesely writes: > On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > >> >>> >> >>> I don't think that using getTypeAllocSize() instead of >> >>> getTypeStoreSize() to calculate clover::argument::size would be a >> >>> satisfactory solution. By doing that you'd redefine the API argu

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Jan Vesely
On Thu, 2014-04-24 at 12:05 +0200, Francisco Jerez wrote: > >>> > >>> I don't think that using getTypeAllocSize() instead of > >>> getTypeStoreSize() to calculate clover::argument::size would be a > >>> satisfactory solution. By doing that you'd redefine the API argument > >>> size exposed to th

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Francisco Jerez writes: > Jan Vesely writes: > >> On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: >>> Jan Vesely writes: >>> >>> > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: >>> > >>> > >>> >> >> I think this is what v96:128 is for >>> >> > according to [0], it specifi

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-24 Thread Francisco Jerez
Jan Vesely writes: > On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: >> Jan Vesely writes: >> >> > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: >> > >> > >> >> >> I think this is what v96:128 is for >> >> > according to [0], it specifies only alignment, not size. I could

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-23 Thread Erik Schnetter
On Apr 24, 2014, at 0:30 , Jan Vesely wrote: > On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: >> Jan Vesely writes: >> >>> On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: >>> >>> >> I think this is what v96:128 is for > according to [0], it specifies only alignment

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-23 Thread Jan Vesely
On Wed, 2014-04-23 at 19:49 +0200, Francisco Jerez wrote: > Jan Vesely writes: > > > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: > > > > > >> >> I think this is what v96:128 is for > >> > according to [0], it specifies only alignment, not size. I could not > >> > find an __attribute

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-23 Thread Francisco Jerez
Jan Vesely writes: > On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: > > >> >> I think this is what v96:128 is for >> > according to [0], it specifies only alignment, not size. I could not >> > find an __attribute__ that would change size either. >> > >> > It should be possible to have

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-23 Thread Jan Vesely
On Tue, 2014-04-22 at 17:50 -0700, Matt Arsenault wrote: > >> I think this is what v96:128 is for > > according to [0], it specifies only alignment, not size. I could not > > find an __attribute__ that would change size either. > > > > It should be possible to have ADMGPUDataLayout: public DataLa

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-22 Thread Matt Arsenault
On 04/22/2014 05:22 PM, Jan Vesely wrote: On Tue, 2014-04-22 at 14:40 -0700, Matt Arsenault wrote: On 04/22/2014 02:35 PM, Tom Stellard wrote: On Mon, Apr 21, 2014 at 10:02:27PM -0400, Jan Vesely wrote: Hi, I ran into a problem caused by this part of the OCL specs (6.1.5 Alignment of Types):

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-22 Thread Jan Vesely
On Tue, 2014-04-22 at 14:40 -0700, Matt Arsenault wrote: > On 04/22/2014 02:35 PM, Tom Stellard wrote: > > On Mon, Apr 21, 2014 at 10:02:27PM -0400, Jan Vesely wrote: > >> Hi, > >> > >> I ran into a problem caused by this part of the OCL specs (6.1.5 > >> Alignment of Types): > >> "For 3-component

Re: [Mesa-dev] [cfe-dev] 3 element vectors in opencl 1.1+

2014-04-22 Thread Matt Arsenault
On 04/22/2014 02:35 PM, Tom Stellard wrote: On Mon, Apr 21, 2014 at 10:02:27PM -0400, Jan Vesely wrote: Hi, I ran into a problem caused by this part of the OCL specs (6.1.5 Alignment of Types): "For 3-component vector data types, the size of the data type is 4 * sizeof(component)." and the cor