Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 18:06:04 +0930
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Dennis Glatting <freebsd@pki2.com>, Brooks Davis <brooks@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Does OpenMP (iomp5) work for clang-devel?
Message-ID:  <55AE0474.5050207@ShaneWare.Biz>
In-Reply-To: <1437442196.57135.13.camel@pki2.com>
References:  <1437439738.57135.5.camel@pki2.com> <20150721010727.GA64147@spindle.one-eyed-alien.net> <1437442196.57135.13.camel@pki2.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21/07/2015 10:59, Dennis Glatting wrote:
> On Tue, 2015-07-21 at 01:07 +0000, Brooks Davis wrote:
>> On Mon, Jul 20, 2015 at 05:48:58PM -0700, Dennis Glatting wrote:
>>> I can't seem to get this working and it appears not to emit code. I have
>>> libiomp5 installed and I compile specifying:
>>>
>>>   clang++-devel -fopenmp=libiomp5 ...
>>>
>>> And the compiler says:
>>>
>>>   clang: warning: argument unused during compilation: '-fopenmp=libiomp5'

That should be just -fopenmp

 From http://blog.llvm.org/2015/05/openmp-support_22.html

To enable OpenMP, just add ‘-fopenmp’ to the command line and provide
paths to OpenMP headers and library with ‘-I <path to omp.h> -L <LLVM
OpenMP library path>’.

>> The most recent clang-devel port doesn't include the bits to make iomp
>> support automatic (it came not long after the update).  I'm working on
>> a update, but the ability to build clang and llvm separately appears to
>> have been broken quite badly so it's taking a while and the only port to
>> install will be devel/llvm-devel.

That will be great, been waiting for this.


-- 
FreeBSD - the place to B...Software Developing

Shane Ambler




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55AE0474.5050207>