From: Malte H. <mal...@go...> - 2011-02-06 16:13:31
|
Thanks, it seems that, this is indeed the problem. I did not spend any thoughts on memory limitations on the graphics card. I don't think I will need tiling, as there are a lot of optimizations that can be done to reduce the calculation to a sparse-matrix vector product which should be far from exceeding the memory, even on my development system. Best, Malte On Sun, 2011-02-06 at 11:06 +0100, Karl Rupp wrote: > Hi Malte! > > The CL_OUT_OF_RESOURCES is most likely due to the exhausted GPU-RAM. > Considering that you compute the matrix-matrix-product of two 3000 x > 3000 matrices and write the result to another 3000 x 3000 matrix, a > total of 3 x 3000 x 3000 = 24 Mio entries have to be stored. With 4 > bytes per entry in single precision, this results in about 96 MB of > memory. I suppose that your GeForce GM 320 provides only 128 or 256 MB > of memory, so there is simply no more memory left for larger matrices. > > One remedy for larger matrix-matrix products is to decompose the system > matrix into smaller tiles (e.g. decompose 3000 x 3000 matrices into four > 1500 x 1500 matrices) and to have only two tiles at the same time on the > GPU. > > Hence, there are two options at present: Either use a graphics board > with more memory, or implement the tiling outlined above by hand. > > Best regards, > Karli > > > > On 02/06/2011 02:40 AM, Malte Harder wrote: > > Hi there, > > > > I have a problem using ViennaCL in one of my projects. I did some small > > OpenCL tests before, but I never really used it because there was no > > quick& easy way to plug it into Eigen which I usually use for linear > > algebra computations. ViennaCL seems to solve this problem very > > conveniently! > > > > However, I keep getting CL_OUT_OF_RESOURCES errors in a simple matrix > > multiplication. Is this the normal behaviour when the matrix is larger > > (in my case 3000x3000) than the work item sizes? > > > > I'm on a 64bit Arch Linux with Nvidia drivers 260.19.21, a GeForce GM > > 320 and I'm using the kernel parameters generated by the kernelparam > > programs supplied with the latest version of the library. > > > > Best regards, > > Malte > > > > > > > > ------------------------------------------------------------------------------ > > The modern datacenter depends on network connectivity to access resources > > and provide services. The best practices for maximizing a physical server's > > connectivity to a physical network are well understood - see how these > > rules translate into the virtual world? > > http://p.sf.net/sfu/oracle-sfdevnlfb > > > > > > > > _______________________________________________ > > ViennaCL-support mailing list > > Vie...@li... > > https://lists.sourceforge.net/lists/listinfo/viennacl-support > |