From owner-freebsd-questions@FreeBSD.ORG Sat Aug 14 09:53:12 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 097CB10656A6 for ; Sat, 14 Aug 2010 09:53:12 +0000 (UTC) (envelope-from ohartman@mail.zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id BBDF58FC08 for ; Sat, 14 Aug 2010 09:53:11 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-questions@freebsd.org with esmtp (envelope-from ) id <1OkDQM-0004Jq-LD>; Sat, 14 Aug 2010 11:53:10 +0200 Received: from e178022007.adsl.alicedsl.de ([85.178.22.7] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-questions@freebsd.org with esmtpsa (envelope-from ) id <1OkDQM-0000ic-Gj>; Sat, 14 Aug 2010 11:53:10 +0200 Message-ID: <4C666786.6000205@mail.zedat.fu-berlin.de> Date: Sat, 14 Aug 2010 11:53:10 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.8) Gecko/20100810 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.22.7 Subject: FreeBSD, GPGPU and OpenCL/CUDA X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2010 09:53:12 -0000 Hello. The problem behind the subject is a little bit frustrating, so I do not know were to start. I use FreeBSD at my lab and private for scientific stuff. In most cases, FreeBSD performed sufficiently for tasks we/I had to do. But this picture has changed. Modelling atsrodynamical problems I need to order and setup new multicore computer boxes and the preferred OS in mind was still FreeBSD (even 9.0-CURRENT). We use a highly parallelized and CUDA supported modellig software solving symplectic integrational problems (moving stars and planets and even lost of particles in ring systems like saturn). Getting involved with CUDA, I was looking for solutions and tools for usage with FreeBSD (priority is: we need 64 Bit and due to several issues I had with the main infrastructure, like OpenLDAP, Linuxulator isn't a way to go). Since most of my colleagues overseas now use CUDA-supported GPGPU software with Linux, I was looking for some solutions using this software (written in C++ and Fortran 95) with FreeBSD. First, and this hasn't changed since the last 15 years, FreeBSD lack in support of professional Compiler vendors. Pprtland Group offers only Linux compilers, as far as I know Intel does not offer a native FreeBSD 64 Bit compiler. So we are stuck with gcc and gfortran, but this isn't an matter, if OpenCL/CUDA stuff could be used. But there is then the next problem. It seems that there is no real chance getting support for executing high performance code portions of our software in any way on a graphics card (gpu). Most FreeBSD driver doesn't support any 3D acceleration and as far as I know, the driver's support of 3D is essential for GPGPU usage. I looked for nVidia's native 64 Bit driver for FreeBSD, I found it, was happy having it, but then I realised that obviously CUDA isn't usable with this driver, since the CUDA SDK is not to be ported to FreeBSD and not even to 64 Bit FreeBSDs. Well, FreeBSD doesn't support 64 Bit Linuxulator as far as I know, so there is no chance getting software run in 64 bit environments using OpenCL/CUDA with nVidia GPUs, neither natively under FreeBSD nor with a 64Bit Linuxulator, is this right? I havn't looked deeper into AMDs offerings, but I guess since it's silent around OpenCL and AMD-based GPGPU, even with Linux there isn't much. I'm not very close to the GPGPU scene, we even start thinking about porting and developing some mathematical stuff into libraries and thought about OpenCL. Unluckily, in my team I'm the only one utilizing FreeBSD. Maybe someone out here has solved some problems and could email me. Even AMD seems to be a white spot in the subject of GPGPU and FreeBSD for me, maybe someone could shed some light on this. Thanks in advance, Oliver