MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CUDADot[] does not work with rectangular matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115512] Re: CUDADot[] does not work with rectangular matrices
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Thu, 13 Jan 2011 03:26:35 -0500 (EST)
  • References: <igis8j$pne$1@smc.vnet.net>

Same here. In addition to this, I also found that at least some CUDA
functions don't like rationals for input.

CUDAImageConvolve[img, {{-1, 1, 1}, {-2, 0.1, 2}, {-1, 1, 1}}] works
but
CUDAImageConvolve[img, {{-1, 1, 1}, {-2, 1/10, 2}, {-1, 1, 1}}]
doesn't

(with img some kind of image)

Cheers -- Sjoerd

On Jan 12, 1:22 am, Koslicki <kosli... at math.psu.edu> wrote:
> It seems like CUDADot[] does not work with rectangular matrices. For
> example:
>
> In[80]:= Dot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
> {125,25,5,1}]
> Out[80]= {194,194,194,194,194}
>
> Yet
>
> In[81]:= CUDADot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
> {125,25,5,1}]
> During evaluation of In[81]:= CUDADot::invdim: CUDALink encountered an
> object with invalid dimensions. >>
> Out[81]= CUDADot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
> {125,25,5,1}]
>
> So unless the first matrix is square with the same dimensions as the
> vector, CUDADot[] will not work.
>
> Has anyone else come across this and/or found a workaround?
>
> Thanks,
>
> ~David



  • Prev by Date: Re: Units question
  • Next by Date: GUIKit Buttons
  • Previous by thread: CUDADot[] does not work with rectangular matrices
  • Next by thread: Re: CUDADot[] does not work with rectangular matrices