Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang*From*: Edward Lam <edward@xxxxxxxxxx>*Date*: Fri, 9 Feb 2018 08:56:33 -0500*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidefx.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=CvFK1XemxjAnf36G00b3reyvsLwoki4t/UEdytmMoYg=; b=ogIWhJORl/7cv5ebndLy0LUUlVVrF1GJLofson1gTYgif5tVj8WR5OPLklcB3mXNSA PfO55wD3sdl3IYigyKRcxD6MYcsoHt6LDxQT10519pnMmUH9d+Z2ro9eWsx5/zoXiXz2 z8vAHfvtQ2ZMh5gJ7apoNtfaUnJajhXmRjo4vhSlHEy9bSBD6v9YTQ0iyTAa+8U0dAVz 8Xl0RN6UARXl2vB5kp/EGT/O/eCTAhN+GyRQjqiVZy5uheRiQ9QkWCfFNV5RhZX5+LY0 vThyVpJxXCjMZQByNERaJgbUSKhfEn87wpg/lv2efzchhzpYHWDI+hUR9cayoaH2tMIn IZOw==

On 2/9/2018 3:16 AM, Gael Guennebaud wrote:

That works! For detection, the documentation at https://msdn.microsoft.com/en-us/library/b0084kay.aspx <https://msdn.microsoft.com/en-us/library/b0084kay.aspx> suggests that perhaps this will work: #if defined(_MSC_VER) && defined(__AVX2__) #define __FMA__ #endifTo implement that we need to make sure that on all architectures AVX2 => FMA.This seems to be true for Intel's ones, but I'm not sure about AMD.

-Edward

**Follow-Ups**:**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Christoph Hertzberg

**References**:**[eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Patrik Huber

**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Gael Guennebaud

**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Edward Lam

**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Christoph Hertzberg

**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Edward Lam

**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang** - Next by Date:
**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang** - Previous by thread:
**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang** - Next by thread:
**Re: [eigen] Matrix multiplication much slower on MSVC than on g++/clang**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |