Hi Watchapon,

I just wanted to provide an additional workaround for OS X users. There is an 
active clang-omp compiler that is available outside of the Apple provided clang 
compiler. I believe work on clang-omp is being spearheaded by a couple of 
developers at Intel. You can grab clang-omp from https://clang-omp.github.io/ 
or if you have the homebrew package manager <https://brew.sh/> installed, you 
can install it simply via brew install clang-omp. Then under [backend-openmp] 
set cc = clang-omp.

Best Regards,



Zach Davis

> On Jun 22, 2015, at 2:41 PM, Watchapon Rojanaratanangkule 
> <[email protected]> wrote:
> 
> Hi Freddie,
> 
> Thank you very much indeed for your answer.
> 
> It does solve the problem.
> 
> Regards,
> Watchapon
> 
> On Monday, June 22, 2015 at 6:47:00 PM UTC+7, Freddie Witherden wrote:
> Hi Watchapon,
> 
> On 22/06/15 12:41, Watchapon Rojanaratanangkule wrote:
> > I am trying to run PyFR0.8.0 using openmp backend, but the following
> > error occurred. I am not sure if the error happened due to Python or gcc
> > or even Blas library. I am running PyFR on Mac OS X 10.10.3 and using
> > Python 3.4.3, gcc 4.9.2 and atlas for Blas library.
> 
> The issue is somewhat suble and can be reproduced as follows:
> 
> calcium:~ freddie$ cat test.c
> #include <stdio.h>
> 
> int main()
> {
>     printf("%f\n", 3.14);
>     return 0;
> };
> 
> calcium:~ freddie$ gcc-mp-4.9 -march=native test.c
> cc7YTUIB.s:13:no such instruction: `vmovd %rax, %xmm0'
> 
> where we see that it is an issue with the distribution of GCC being
> unable to handle AVX instructions correctly.
> 
> The workaround is to remove the "-march=native" flag from
> pyfr/backends/openmp/compiler.py file.
> 
> However, this is fundamentally a compiler problem: compilers should not
> be emitting instructions which they are uanble to assemble.
> 
> Regards, Freddie.
> 
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "PyFR Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/pyfrmailinglist 
> <http://groups.google.com/group/pyfrmailinglist>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to