[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sbcl-help
Subject:    Re: [Sbcl-help] Allocating aligned memory
From:       Stelian Ionescu <sionescu () cddr ! org>
Date:       2015-03-11 15:34:51
Message-ID: 1426088091.2391190.238939037.3E54B39B () webmail ! messagingengine ! com
[Download RAW message or body]

> I would like allocate memory suitable to processing via SSE/AVX
> instructions.  If there a way to request that data part of
> a vector or matrix is aligned on 16 byte or 32 byte boundary.
> One way to do this is to allocate foreign memory.  However,
> I would like to keep lage part of computation on Lisp side
> so I prefer Lisp object which can be passed to normal Lisp
> functions.

The static-vectors library can almost do that: I just need to use
posix_memalign() to allocate memory. I'll try to implement it this
weekend.

-- 
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
http://common-lisp.net/project/iolib

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sbcl-help mailing list
Sbcl-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-help
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic