64-bit OpenMP?
By jefff at Tue, Mar 4 2008 1:30am |
I've been testing various things with OpenMP lately, and noticed that the OpenMP Intel implementation that is available over at the great hpc.sourceforge.net page only lets one compile i386 binaries, not x86_64. So now I'm stuck either getting 64-bit arch or using OpenMP. Is there something I need to know or do to be able to experiment with binaries that do both? Specifically, this is the error I get when trying to compile with gcc 4.3 w/ openmp:
% /usr/local/bin/gcc -std=c99 -o test test.c -fopenmp -arch x86_64
cc1: error: unrecognized command line option "-arch"
Compiling this without -fopenmp using /usr/bin/gcc works fine and produces a good 64-bit binary.



Not an apple gcc
Where did you get gcc-4.3? and which version is the other gcc? You know, built-in gcc is patched by apple to add some specific features (such as -arch flag). Also, default gcc is 4.0.x that doesn't support openmp (I believe). gcc-4.2 has been released by apple in the developer connection and should have openmp support.
d
/*
Davide Cittaro
HPC and Bioinformatics Systems @ Informatics Core
IFOM - Istituto FIRC di Oncologia Molecolare
via adamello, 16
20139 Milano
Italy
*/