From owner-freebsd-stable@freebsd.org Mon Aug 29 00:59:37 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB183BC7EB9 for ; Mon, 29 Aug 2016 00:59:37 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C27FF70; Mon, 29 Aug 2016 00:59:37 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: by mail-it0-x22c.google.com with SMTP id g62so75049575ith.1; Sun, 28 Aug 2016 17:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0PUM08Avhmgc9RZ8OVVsCixIKAX+xq3vUDChctKoMGo=; b=PozkbkGaeDU6TzQPEOOpCnOeAS6dhPbWAVVgL7T2bDxbWBC8p2epu53AyAO52pu5K4 eaIdj7pKvFJ3ZnJ1/ErYmVzhYYySuD7PZg4XAJF+a3oJ9cadyjWqddZvzZkJ4oEOMtia YUQi5Go+4+1IZaBzzlr1Z1898gCKdOVbJtJsfR6NNimNyrQWeaNDfiY0kFnj+0vGkZjd V1a8CI4L0q9KIdpR5ZASe/OgfO5114IvocprayfnPUDbCNxk2iHBvsDU/J8OB4qAGV5m F84RZmeK1CuiY9XulvYgdG2yEPnFlyfMwewEEJuk+PSI58MOMW+/4mRXYbqcKS0O/KLy DaPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0PUM08Avhmgc9RZ8OVVsCixIKAX+xq3vUDChctKoMGo=; b=DJp9gKnw8Zc099SndtdmRJEjNGTQ2nRgtdO3XgiecYp/4AMU3CRr49SMFagi3BkJ3y P0HHYG+yYm2RaQ0bRfWe4R0G71J7j+6RVDCqCxnkJVX9LOGOXFF7JaxJoIVw+P9JVLje z6bAAZn9XQSUUcSKPXM49GCoM+dUZCbhTenhqnseo9h3hRZyyXurRIEgmbgktfoJzq+f C7Nh0oy/dbBIRdqv+29mu7XmdEVO2IMnQZDTSWna0cTEzvGBLocFMF9rR3aujrtgfTRz ocdh3t10ujDN5x1u6nXx77xWyK1lR+wDcLkxryKEQcXY5VBwqTpMj3uKHzHq5Rp4VucU Cikg== X-Gm-Message-State: AE9vXwO6xjYlzgGlvXVhLU8AlgphYp6dYiFNPxldnpMQrrUUQtkdERZPCpoqoW83Yx26E8mZTzzwigssABE2iw== X-Received: by 10.36.39.67 with SMTP id g64mr11189149ita.93.1472432377053; Sun, 28 Aug 2016 17:59:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.95.18 with HTTP; Sun, 28 Aug 2016 17:59:36 -0700 (PDT) Received: by 10.36.95.18 with HTTP; Sun, 28 Aug 2016 17:59:36 -0700 (PDT) In-Reply-To: References: <20160819073422.4292997b@X220.alogt.com> <20160821144505.27c0f55d@X220.alogt.com> <827183a944ee4052649c152d65204444@schema31.it> <20160822101423.GF18643@e-new.0x20.net> <79F32FFD-BBDF-4359-A4CB-C80A3FC59EAD@FreeBSD.org> <20160828183242.759bb6c2@freedom.alkumuna.eu> From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= Date: Mon, 29 Aug 2016 02:59:36 +0200 Message-ID: Subject: Re: Benchmarks results for FreeBSD 11 To: "K. Macy" Cc: freebsd-stable , Dimitry Andric , Matthieu Volat , Johannes Dieterich , Lars Engels , Erich Dollansky , Andrea Brancatelli , Kubilay Kocak Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 00:59:38 -0000 El 29 ago. 2016 12:36 a. m., "K. Macy" escribi=C3=B3: > > On Sun, Aug 28, 2016 at 2:01 PM, K. Macy 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:~$ > I'm writing from my cellphone away from my computer, so take this with a grain of salt: -L/usr/local/llvm38/lib