From owner-freebsd-stable@freebsd.org Sun Aug 28 22:36:20 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 686CEBC54E0 for ; Sun, 28 Aug 2016 22:36:20 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (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 2DB34B5B; Sun, 28 Aug 2016 22:36:20 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-it0-x22f.google.com with SMTP id g62so72462960ith.1; Sun, 28 Aug 2016 15:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pT6u6xiRgoD3r5pdTSQ7TljPx4/UFWL5zEg99F/TWfg=; b=UWmO4YTuwiAUto3v/wIzMvFCAvynbiHGnSWC19K/A/xMYthleCZYoM65UDLchef4hD 1ifZ57L88eS0Pd4iGLSmo2VsxjA+Uim7d0USG4gi7J4qo6Xlz4HzW6IIAAxAvmyq1ZN0 1RKn+qHxc5kPPiOJdFGcDqvP0wUYBBbny86G5RfZAwoPIXVCEpZS8aZ8+Xw3TtUx9TEP dmvxbetM6ZNgx8I85N3zbpiZ7l36SR2531TCiqHl154KeQI3zPgC6IhpWxEp9A8382Xo NGqdu/9bFIKBkrio1VcEfQ/jj9Kf3YZr1GGqog/pgA/MvclpBVfpkoYHqFAre0z5LjOc uyNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pT6u6xiRgoD3r5pdTSQ7TljPx4/UFWL5zEg99F/TWfg=; b=EHLirJ+U2eALf3ETmCwRxcW/ewXN61ap+nLIKVcXKpwdedVOBRrPzDABr/UwJybFgB O6r+9tlBNTNAZ6pzT7253IJpz4FiDnW3VB/2lKOuwGaFCtindnhdN2wY6duPz3DWEVQW BM4qY9rsLMRPqrDmvfm1AX3t+tNqZtoO9OEZjw/MOqorlJvlhrDWuzjrAojIBcW3NsVl 62Jwjv6eyMO+0ByFWYqqIp0ZhvAtiuaeCoztoYg6Z/CStvVIS9eNtjzs/qwTBQtcs+G9 WX8vGvMgHlwR7I4VmZ64wxOThL2Be08DOihVn/63LkkWGU8cPi1Fixz8MVstGyUPOvDb Gc/A== X-Gm-Message-State: AE9vXwNhIeGwG1alIe57dgyYWFqi+q3h2AVS5FU3ypbJQzsjWDRnYidyFvzvt+3HJVSB3bJwh8elBcBp5Cs8dg== X-Received: by 10.36.112.11 with SMTP id f11mr11460970itc.57.1472423779349; Sun, 28 Aug 2016 15:36:19 -0700 (PDT) MIME-Version: 1.0 Sender: kmacybsd@gmail.com Received: by 10.107.143.11 with HTTP; Sun, 28 Aug 2016 15:36:18 -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: "K. Macy" Date: Sun, 28 Aug 2016 15:36:18 -0700 X-Google-Sender-Auth: 9gaqZwjpPfG3LkVZUOOwefeR07c Message-ID: Subject: Re: Benchmarks results for FreeBSD 11 To: Matthieu Volat Cc: Dimitry Andric , Andrea Brancatelli , Kubilay Kocak , Lars Engels , Erich Dollansky , Johannes Dieterich , freebsd-stable Content-Type: text/plain; charset=UTF-8 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: Sun, 28 Aug 2016 22:36:20 -0000 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:~$ -M