delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/25/08:51:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,TW_NV
X-Spam-Check-By: sourceware.org
Message-ID: <508935CB.4060208@etr-usa.com>
Date: Thu, 25 Oct 2012 06:51:23 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: real beginer
References: <k675bo$q08$1 AT ger DOT gmane DOT org> <1351031752616-93926 DOT post AT n5 DOT nabble DOT com> <50872610 DOT 605 AT cs DOT umass DOT edu> <50873B62 DOT 3020601 AT cs DOT umass DOT edu> <1351081031692-93944 DOT post AT n5 DOT nabble DOT com> <k68s7o$9ml$1 AT ger DOT gmane DOT org> <1351088027625-93956 DOT post AT n5 DOT nabble DOT com> <508802F5 DOT 50506 AT cs DOT umass DOT edu> <1351103114379-93973 DOT post AT n5 DOT nabble DOT com> <k69l79$shl$1 AT ger DOT gmane DOT org> <1351119720396-93981 DOT post AT n5 DOT nabble DOT com> <k6ao61$nt1$1 AT ger DOT gmane DOT org>
In-Reply-To: <k6ao61$nt1$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/25/2012 1:02 AM, René Berber wrote:
> On 10/24/2012 6:02 PM, Trixie wrote:
>
>> Yes i found it later. It works fine i think.
>> Tomorrow I'll try configuring with --enable-cuda-gpu
>
> You need NVIDIA drivers for an NVIDIA card that supports CUDA, plus
> their libraries, and probably their development environment.  I don't
> think it will work with the version(s) of gcc used in Cygwin.

On Windows, the nVidia CUDA C compiler (nvcc) uses cl.exe[1], not gcc, 
but you can download that as part of Visual Studio Express for Windows 
Desktop 2012[2].  The CUDA SDK is reportedly[3] compatible with VS 2012 
already.

Since nvcc uses GCC on Linux, it *may* be possible to arm-twist it into 
using GCC under Cygwin.  The CUDA APIs are C-based, not C++-based, so 
the ABI should be compatible.

A hybrid approach may be possible.  You might be able to install Visual 
Studio and ignore its IDE, keeping it around purely so nvcc can find 
cl.exe, and do everything from within Cygwin.  You might even be able to 
link the resulting object files to Cygwin GCC-compiled object(s), 
producing a Cygwin executable.  I expect getting this to work will be 
somewhere in difficulty between getting a purely Cygwin GCC toolchain to 
work and using the pure Visual Studio toolchain, and closer to the 
former than the latter in difficulty.

Trixie, if you want to continue this topic on this list, you'll need to 
take one of those latter two paths.  But, as a "real beginner," I think 
you'll find it a lot easier to go down the pure Visual Studio path, at 
least until you start acquiring clues. ;)


[1] http://goo.gl/uhZWd
[2] http://goo.gl/i76AO
[3] http://goo.gl/Av3Ae

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019