From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 07:05:31 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC8610656A3 for ; Fri, 20 Aug 2010 07:05:31 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 91DD88FC26 for ; Fri, 20 Aug 2010 07:05:31 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B12A.dip.t-dialin.net [87.179.177.42]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 254A2844010; Fri, 20 Aug 2010 09:05:25 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 09F0613DC; Fri, 20 Aug 2010 09:05:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1282287922; bh=Dp5suOfU4xFyhAHbiUY+TbeST+Ne278XS9ZBxEzN+vU=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=SFg3HoH4937VeXrF/DF3azBMg0y/Fps+BPOkCJUrIIfzFfYfR53kZ5/nzr5QVoG0n ZzVDkml/3TDtLp5uS5oYFsTkTJh5VYQB4AeH2f7nQf1XtrxLCwfA0JpqmBi3O4ClkH ZWq7Rc+3DebunU8TocD3AJiJWPhjYcUlbg93LIfsa+eqvi4G6YM/4WpMaoKriG/n0t KLulvocAXvenX4ahgLZif3rXUiVA1m5Uy2gplPJCsG9IbiYZLGtlNG4+4fBnb8xAt5 2GLO5Y1h6QcnXw5ednhuNR3Y5KYpBsDDnUKUpjVLgEM4qPVhaZQq7jvFdwwI+LepTK trCMoIJuQUp9A== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o7K75LMP002969; Fri, 20 Aug 2010 09:05:21 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 20 Aug 2010 09:05:21 +0200 Message-ID: <20100820090521.63233enpg5276tes@webmail.leidinger.net> Date: Fri, 20 Aug 2010 09:05:21 +0200 From: Alexander Leidinger To: Anton Shterenlikht References: <65F17C45-55C1-4349-A4D1-A3D6AD0D9A80@FreeBSD.org> <4C6C1EB1.5000004@FreeBSD.org> <20100819090128.22597bbvyogdw9wk@webmail.leidinger.net> <86fwybdkt4.fsf@ds4.des.no> <20100819113548.72614imi2zxx9log@webmail.leidinger.net> <20100819201024.GA20254@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20100819201024.GA20254@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 254A2844010.A501C X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.023, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, TW_BM 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1282892728.90181@AhQk1S1lWlD3ygl+Doyosw X-EBL-Spam-Status: No Cc: current@freebsd.org Subject: HPC/CUDA on FreeBSD (was: Re: Removal of ICC (intel compiler) bits from mk) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 07:05:32 -0000 Hi, I'm taking out arch and some people from the CC and only keep =20 current@. This is getting off topic for the initial thread. Quoting Anton Shterenlikht (from Thu, 19 Aug =20 2010 21:10:24 +0100): > On Thu, Aug 19, 2010 at 11:35:48AM +0200, Alexander Leidinger wrote: >> >> Quoting Dag-Erling Sm=C3=83??rgrav (from Thu, 19 Aug 2010 >> 11:16:23 +0200): >> >> > Alexander Leidinger writes: >> >> If someone would get icc 11.x up and runnig as a port (similar to wha= t >> >> we have for outdated icc version in the ports collection), I would >> >> have a look if my contact at Intel is still working there in a >> >> position which allows him to get a commercial license for us. >> > >> > Does that really matter? We're not going to start building releases >> > with icc, are we? >> >> It could matter for ports, I do not know if it matters for parts in >> src. The commercial license is also the only way that we could get icc >> installed on machines in the FreeBSD cluster (if there's interest to >> have another compiler *for FreeBSD development* to check the source >> against... the warnng and error messages are better that those of gcc, >> I do not know how they compare to clang). > > If one begins to mention FreeBSD clusters, and moreover FreeBSD HPC, then > this becomes a somewhat different discussion. One of the stubmling > blocks for HPC on FreeBSD (just one of many, perhaps not even the > major one) is a complete lack of good quality commercial compilers. > All we=C3=83'got is gcc or clang. Both are not really that great, and > definitely inferior to commercial compilers, e.g. Intel. What I=C3=83'm > saying is that it would be great if Intel sold a compiler for FreeBSD. > I'd ve bought a copy. But from what others have said, my impression is th= at > the ICC port is unlikely to fill this void. After I (and other people which provided patches) ported icc to =20 FreeBSD someone from IIRC Asia took the port as an example and ported =20 Intels Fortran compiler to FreeBSD in the same way (he was able to use =20 a lot of the icc port, only some minor modifications where necessary). I had the impression that this was used for HPC. > P.S. My interests and expertise are in computational mechanics, not in > compilers, so feel free to correct me if I=C3=83'm wrong. In general: The resulting code (for icc and ifc) was working. The =20 application binary code itself was/is the same (modulo differences in =20 system headers), the "only" things which need to be changed are the =20 startup code and the libs. We managed to do that. > P.P.S. Regarding FreeBSD HPC see also this thead: > http://lists.freebsd.org/pipermail/freebsd-questions/2010-August/220264.= html > (FreeBSD, GPGPU and OpenCL/CUDA) That's not the way we would like it to be, but at least it is possible: http://blogs.freebsdish.org/jhb/2010/07/20/using-cuda-with-the-native-freeb= sdamd64-nvidia-driver/ When I was working on icc, I had an idea about a liblinux2freebsd =20 which would provide common linux-symbols and map them to =20 FreeBSD-equivalents (together with some predefined objdump/objcopy/... =20 scripts to modify linux libs) so that you can take a linux lib and use =20 it to create native FreeBSD programs. Sort of like the NDIS layer in =20 the kernel to run Windows binary drivers. Unfortunately I never got =20 the time to work on this. Something like this could have maybe been =20 used to "mangle" the linux cuda libs to be used on FreeBSD natively. Bye, Alexander. --=20 Neither spread the germs of gossip nor encourage others to do so. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137