From owner-freebsd-stable@freebsd.org Wed Aug 31 13:19:22 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 07E4DBC929D for ; Wed, 31 Aug 2016 13:19:22 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 C3A6C81E; Wed, 31 Aug 2016 13:19:21 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id e124so869670ith.0; Wed, 31 Aug 2016 06:19:21 -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=Qxu5bBuJAQKQI3LZ0lSbeaylTYZ0DNXZO+Mca84lNGo=; b=qutDgU3TfuXNmHnhVlGDz1mP1uv103DgHYSyipFF8Ew+QDxMzdZq3SS88e9S3MCZWV t33NuDAlpb1yytqM0ESo4hcNh45h42erdPemixK/GDbLgllXcm14QzxhFyj7iYr9c/gV gYJ8jJQO+uvY4d2wxr2roUv2xUW6SMgSzDB+k/58yq4egtBybOdZF3Rkx46pMVvu0oRn PatxOSy5PKjWiY9Vm/7O6GPLNmgRhIToPL8dDC2i/iIb8Zlc3UTcur9n/NNYCjaHjFJn iGcmm+u78FRpfkqPm3lvVbQlfEf6Ptk43qeJ1RhT5xcABELd8cxiTY/Bf5ofHsiquiI0 /bbA== 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=Qxu5bBuJAQKQI3LZ0lSbeaylTYZ0DNXZO+Mca84lNGo=; b=fyn3REwn9CJLYh24s/K8rswbl/WbmCwe6deA4ala/+npOLBzg6/THwckp0aueKZ0gb dzqeAv5HK1ZIV9EctYNTrU0u6Bzj3JOxx71RDYDOcHdec3t8hcP3S9oALRQul6zVZwEb aR0rqvDcQ9gi6wksmcfu4HtdGKB+QQDNUWoGq1cpEpAOz2QxdC4GrRC0aS9RNNCpRS1h CutdJz9sEHuvmRB5O1pzyXQ8TsROnQyA7bJXUEeb7fUd4krwbAoKoejNXsPqHHZuWVW5 4cwzHrylbRTiXFeuX3BzJ1K44G3H9e2GGh8TvVifHq4vBAlnkUGK/XEe35xqqXuTOgZu n17A== X-Gm-Message-State: AE9vXwMjUTqcMYSTCLMilW+sKdglBhbMk6mMswocxbe43c8CEI5c1r3phldY0gJWwMhC2ve5iqMjQlsjjVfyqw== X-Received: by 10.107.22.132 with SMTP id 126mr5407552iow.142.1472649560939; Wed, 31 Aug 2016 06:19:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.42 with HTTP; Wed, 31 Aug 2016 06:19:20 -0700 (PDT) In-Reply-To: References: From: "Eric A. Borisch" Date: Wed, 31 Aug 2016 08:19:20 -0500 Message-ID: Subject: Re: Benchmarks results for FreeBSD 11 To: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= Cc: "K. Macy" , FreeBSD Stable 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: Wed, 31 Aug 2016 13:19:22 -0000 Plans for usage of LLVM's linker were just discussed on BSDNow (from toolchain mailing list): http://www.bsdnow.tv/episodes/2016_08_24-the_fresh_bsd_experience https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-August/002240.ht= ml - Eric On Wednesday, August 31, 2016, Fernando Herrero Carr=C3=B3n wrote: > That's great news! Thanks a lot! > > Excuse me if I drift off-topic, how about -flto? LTO requires both > compiler and linker support, however clang3? from ports still calls the > system linker 'ld'. LLVM has its own linker, 'lld', but it is not > straightforward, AFAIK, to make clang3? call it. > > My trick up to now is to create a symbolic link in the current directory > and have '.' in the PATH before anything else. > > ln -s /usr/local/llvm37/bin/lld ./ld > clang37 -flto ... > > Am I missing something or is there a chance for improvement here? > > 2016-08-31 3:17 GMT+02:00 K. Macy >: > >> On Tue, Aug 30, 2016 at 10:39 AM, Eric A. Borisch > > wrote: >> > FWIW, in MacPorts, we patch clang such that it can find the (MacPorts >> > provided) libomp headers and library. This lets -fopenmp "just work," >> > and configure scripts can do their job. The libomp headers and lib in >> > dedicated sub-directories to minimize the impact of -fopenmp adding >> > them to the include and link paths. >> > >> > It is a fairly minor patch, and shouldn't (tm) have any impact on >> > clang executions without an openmp flag: >> > https://trac.macports.org/browser/trunk/dports/lang/llvm-3. >> 8/files/openmp-locations.patch >> > >> > To get a simple OpenMP test script to compile on FreeBSD, I currently >> > need to pass (note I'm not the one using -lm): >> > >> > clang38 -fopenmp -o test test.c -L /usr/local/llvm38/lib -lm >> > >> > instead of (~ what configure will try) >> > >> > clang38 -fopenmp -o test test.c >> > >> > (11.0RC2 w/ llvm38 installed via pkg) >> > >> > I'd love to see base include llvm's OpenMP support, but failing that, >> > the one from ports should be made to work as configure scripts expect. >> > >> > And who knows, if it is there, maybe some items in base will start to >> > use it. We've got a chicken-and-egg problem right now. >> >> Thanks for the patch. Johannes Dieterich hacked the llvm38 port in my >> graphics branch and: >> >> >> mmacy@armageddon [~|18:13|81] clang++ omp.cpp -fopenmp >> mmacy@armageddon [~|18:13|81] cat omp.cpp >> #include >> #include >> using namespace std; >> int main(int argc, char** argv) { >> >> >> #pragma omp parallel for default(shared) >> for(int i =3D 0; i < 100; ++i){ >> #ifdef _OPENMP >> cout << "WITH OPENMP " << i << endl; >> #else >> cout << "WITHOUT OPENMP " << i << endl; >> #endif >> } >> return 0; >> } >> mmacy@armageddon [~|18:13|82] clang++38 omp.cpp -fopenmp >> mmacy@armageddon [~|18:13|83] ./a.out| head -5 >> WITH OPENMP WITH OPENMP 84WITH OPENMP 92WITH OPENMP >> 44 >> WITH OPENMP WITH OPENMP 9352WITH OPENMP >> 76WITH OPENMP WITH OPENMP 0 >> WITH OPENMP >> >> >> >> Fingers crossed that this can get propagated to master and the >> defaults for openblas, FFTW, and others can be made more sensible. >> >> -M >> _______________________________________________ >> freebsd-stable@freebsd.org >> mailing lis= t >> https://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org >> = " >> > >