Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 01:07:27 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Dennis Glatting <freebsd@pki2.com>
Cc:        ports@freebsd.org
Subject:   Re: Does OpenMP (iomp5) work for clang-devel?
Message-ID:  <20150721010727.GA64147@spindle.one-eyed-alien.net>
In-Reply-To: <1437439738.57135.5.camel@pki2.com>
References:  <1437439738.57135.5.camel@pki2.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
>=20
>  clang++-devel -fopenmp=3Dlibiomp5 ...
>=20
> And the compiler says:
>=20
>  clang: warning: argument unused during compilation: '-fopenmp=3Dlibiomp5'

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.

Simple programs to work if you link with -liomp5 manually.

> Is there a compile-time test involved somewhere, perhaps in llvm build?

Assuming I manage to include the openmp runtime in the next update, I think
it will work and I plan to configure the=20

> Should /usr/local/llvm-devel/lib/ be in /etc/ld.so.conf? (That doesn't
> seem to help).

ldconfig should be handled correctly by the ports infrastructure.

-- Brooks

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVrZtOAAoJEKzQXbSebgfAUZYH/0k5iJEdFtDDjjWibSrlJML2
6uRRJUepkzsD+EFHgKPopnaqV6DZBfDFluSGy/eJRs5KBrMuijR0DnKxkxOTbdXh
cnyzIlvFVNmt8RL4MqrvK4wxnLo1F5Z9PHVpU7tAA6wQ1t/XN/+7WYvECCrVBHdt
moq1bfpYM169HhI/Xu0vtY11IW8fU8YYo/4gu62IQ/LpSw0RbZcAHykZ9KARUVRE
D10FmM9wCRgx95I3HYOTJuiVQZAlkoSdRtIy5Pu+ag9rhrdM7NAR+rDHb81sIZ3p
9zdP6iPiSOr9OgOx84hUjjS1cvAMABoSqvNP9IwLf0AL4PPcVnw5sD3zKJ0GLdI=
=7Sh1
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--



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