Re: [eigen] glibc's malloc (x86-64) 16 byte aligned? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] glibc's malloc (x86-64) 16 byte aligned?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 25 Jan 2010 12:58:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CMf9pShxpe5YlLM4VOPJYakbUIYjSydit8gYZlz61Io=; b=A2QnfEre1eJzqBYlaBznB+Agx55KdOhe/umSklWA6PJPhHwjcE7u6liqiNwU1TWB8w Y93KSXXGqBJRi2QZ3iHasP+2sC2e5ZLYsHPd8wkk8gKk4rJ5ZVfDQAa3IzH2BU2CIPAe DaB7/5mxfKzwMf0sjhzETHaewAsgygH2J3OXY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ImnRb6PmkvrFqbceoDqHvzmUOchsjAS+vAeQuEloJSYfPHOYjjvOP516guMaaAq+Gp g8rHtGZLuH8BGQkT5mOaY5K6aXFK3OkYVzM/0IVPIVcBXMKeBhu+6w31P7LHtlhSu7Qh WnGOngDsvH4HJl3D/BZrAAgU6UVDRyBvICzbI=
oh!
i didn't read correctly - "(or sixteen on 64-bit systems)"
I think that's an error on their part. Here on linux x86-64 that's
definitely not the case.
Benoit
2010/1/25 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> I don't understand?
> on linux x86-64, malloc only returns 8-byte aligned pointers, and this
> page confirms it.
> Benoit
>
> 2010/1/25 Rohit Garg <rpg.314@xxxxxxxxx>:
>> Hi all,
>>
>> http://www.gnu.org/s/libc/manual/html_node/Aligned-Memory-Blocks.html
>>
>> I was quite surprised to come across this. I never knew this was the
>> case. I wrote a quick, dirty, non-comprehensive, non-exhaustive test
>> and all of the malloc'ed pointers were 16 byte aligned.
>>
>> May be it's worth trying to run the eigen's test suite on linux x86-64
>> assuming that the malloc is 16 byte aligned?
>>
>> Your thoughts?
>>
>> --
>> Rohit Garg
>>
>> http://rpg-314.blogspot.com/
>>
>> Senior Undergraduate
>> Department of Physics
>> Indian Institute of Technology
>> Bombay
>>
>>
>>
>