From owner-freebsd-stable@freebsd.org Tue Aug 30 17:39:06 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 7DAD5BC9482 for ; Tue, 30 Aug 2016 17:39:06 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (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 49FE8AF8 for ; Tue, 30 Aug 2016 17:39:06 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-it0-x235.google.com with SMTP id g62so51099282ith.1 for ; Tue, 30 Aug 2016 10:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=v/mrFgvDOAGTtlQvTES1UW2yUXoSJMSG+LTMxkEbPA8=; b=aAe7KSe/29pEj8BB7Ekcu9hq7aPwKI5z6xRBwzjAqTfyAScxWC75xAvTtzC2ZNXgs+ d2i+lDqTZSXMe0fZVInHU3wDlttcuC2dkGVp4vhfPeMVYzyoTQtRJqu7U6X2U017YeBJ 42jmhuXbh42JOp16d5mnWUFxHQsBRFnfQ92Ugf8X6i4+ksa3RIzlzT4TzJDyIDK5o7Tz H8XrbCvlooIhTgFr37c7DRjTqK57ayx1wwCJ/O0COatrp9X+1hblgq6hVgyG7HDw4gPE KnS9sifkU7gcrLHGxewAFmud07RbSOV1PLXRiPhHqE1E0i5S1wF3jBMvBNKbGgAQ8u7J vG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=v/mrFgvDOAGTtlQvTES1UW2yUXoSJMSG+LTMxkEbPA8=; b=Z6NYmbJ2/2c/euPT99k8/maCEJDGfPtbfpPl5uMEg+w9uLbZoGeE6SntNKSAh9Xlfd VY217hyEe7CIHDCKAzFm8NwFm6QmG9jaHzhgCJA1ME2YeEqM3tVZw+UroRFxAk78XgPO 5rp9vBwGagszq8k63K+ItYcvZLT0smhp3/0J4/IvdyxT2Vy51rTH40U5NgdOgpgTLvLL R8AzwhjGFGXCKGmeLElTBmsO/UyvuJtxMmeKGuyUZW55D4RnXIvyPeYEMCMjs2gvSiH3 HVhI0b1alCsrSFJGvglmZpD3V8RBlZ7bmgAMqjiDMQPNi476Skb2CZdFwkM+Lj5yiNwR 9DDQ== X-Gm-Message-State: AE9vXwOmEhgJ4p/UyA7Zfv8ee8gEPTjLgSBMN2D4c63abUKTnK+KTG9xQMEEYILMNkJUp2ie+jUj/64QQbdrcA== X-Received: by 10.36.28.203 with SMTP id c194mr8347278itc.95.1472578745215; Tue, 30 Aug 2016 10:39:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.42 with HTTP; Tue, 30 Aug 2016 10:39:04 -0700 (PDT) From: "Eric A. Borisch" Date: Tue, 30 Aug 2016 12:39:04 -0500 Message-ID: Subject: Re: Benchmarks results for FreeBSD 11 To: freebsd-stable@freebsd.org 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: Tue, 30 Aug 2016 17:39:06 -0000 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. - Eric