Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2016 15:36:18 -0700
From:      "K. Macy" <kmacy@freebsd.org>
To:        Matthieu Volat <mazhe@alkumuna.eu>
Cc:        Dimitry Andric <dim@freebsd.org>, Andrea Brancatelli <abrancatelli@schema31.it>,  Kubilay Kocak <koobs@freebsd.org>, Lars Engels <lars.engels@0x20.net>,  Erich Dollansky <erichsfreebsdlist@alogt.com>, Johannes Dieterich <dieterich.joh@gmail.com>,  freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Benchmarks results for FreeBSD 11
Message-ID:  <CAHM0Q_OqYTQUX69%2BQpYxiNDws_w9XY9B%2B3Pe3PxAN6rT5-AYpA@mail.gmail.com>
In-Reply-To: <CAHM0Q_MCGvfn5np7KdYq_h3cyv6w%2BVzjOMyOJzK7LYpPP6UaAA@mail.gmail.com>
References:  <20160819073422.4292997b@X220.alogt.com> <af0fefab-69d7-f0a9-3d6d-4a9891d5a156@FreeBSD.org> <20160821144505.27c0f55d@X220.alogt.com> <827183a944ee4052649c152d65204444@schema31.it> <20160822101423.GF18643@e-new.0x20.net> <CAHM0Q_My2otDtVSzTiQMHE=ty%2B7kEBP%2BwfFofBvOzoz8ro%2B-sQ@mail.gmail.com> <79F32FFD-BBDF-4359-A4CB-C80A3FC59EAD@FreeBSD.org> <20160828183242.759bb6c2@freedom.alkumuna.eu> <CAHM0Q_MCGvfn5np7KdYq_h3cyv6w%2BVzjOMyOJzK7LYpPP6UaAA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 28, 2016 at 2:01 PM, K. Macy <kmacy@freebsd.org> wrote:
>>>
>>
>> With 11, one can even simply install devel/openmp which will only install the libopenmp bits from llvm, and after that, base cc can do openmp.
>
> This isn't really useful unless the clang in base knows where to find
> libomp. Considering that even the devel/llvm ports aren't configured
> properly for that I don't see -fopenmp working. Without patching
> makefiles or configure. So although this is better than having to
> installing a complete copy of the compiler for the sake of a single
> library it's still forcing FreeBSD users to jump through extra hoops
> that they don't have to with gcc or on other platforms.

I just tried this on Ubuntu and it looks like even there clang doesn't
invoke ld correctly to make -fopenmp work. Both icc and gcc do this
automatically. Thus I wonder if anyone is actually using openmp in
earnest with clang.


mmacy@pandemonium:~$ clang++ -fopenmp omp.cpp
/usr/bin/ld: cannot find -liomp5
clang-3.5: error: linker command failed with exit code 1 (use -v to
see invocation)
mmacy@pandemonium:~$ clang++-3.8 -fopenmp omp.cpp
/usr/bin/ld: cannot find -lomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mmacy@pandemonium:~$ g++ -fopenmp omp.cpp
mmacy@pandemonium:~$ g++-4.9 -fopenmp omp.cpp
mmacy@pandemonium:~$

-M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHM0Q_OqYTQUX69%2BQpYxiNDws_w9XY9B%2B3Pe3PxAN6rT5-AYpA>