Re: Lush Question
Yann LeCun <[email protected]> Sun, 23 Apr 2006 13:09:42 -0400
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Organization | Courant Institute, NYU |
| Message-ID | <[email protected]> |
Nikhil, It is possible to use shared memory to communicate data between Lush and another process (or between two Lush processes). We actually use this in some of our robotics projects. Our application actually copies the data between the IDX and the shmem area. It's fine for our purpose, but if you are interested in performance, you want the IDX to use the shmem area directly (so you don't need to copy). There is currently no mechanism to do this in Lush, but I see no reason why not. There should be a way to map an IDX (or rather a "storage") to a specified memory location. We already have a mechanism of that nature for mapping an IDX to a file (see storage_mmap() in lush/src/storage.c ). This mechanism could easily be extended to map an IDX to specified memory address. We need a volunteer to implement it! (which is why I am copying this message to the lush-devel list). -- Yann On Saturday 22 April 2006 04:23 am, you wrote: > Dear Yann > > Lush is a great tool. Thank You. My name is Nikhil and I am a student from > University of Louisiana at Lafayette trying to learn LUSH. > > I had a problem and was wondering if you could help me with it. I have an > implementation where I have parallel processes accessing a shared memory > (using "shmget()...etc in linux) . I would like an idx to refer the shared > memory and perform matrix operations on them. In other words I needed the > lush program to be one of the processes accessing the shared memory as a > storage, pointed by an IDX and capable of performing all matrix operations > on it. > > Is is possible to do that and if so how? > > Warm Regards > NIkhil Shetty > > Center for Advanced Computer Science > University of Louisiana at Lafayette ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642