From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c08aa0f01f894da6 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!h12g2000vbx.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: GPUs and CUDA Date: Tue, 12 Jul 2011 16:49:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <98b32073-e1ef-4e97-80f8-ce068fba2738@h12g2000vbx.googlegroups.com> References: <783efc18-a581-4ae2-bde4-04afa3568ff8@glegroupsg2000goo.googlegroups.com> <4e1c2153$0$2581$703f8584@news.kpn.nl> NNTP-Posting-Host: 24.230.151.194 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1310514599 17804 127.0.0.1 (12 Jul 2011 23:49:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 12 Jul 2011 23:49:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h12g2000vbx.googlegroups.com; posting-host=24.230.151.194; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20186 Date: 2011-07-12T16:49:58-07:00 List-Id: On Jul 12, 5:26=A0am, "ldries46" wrote: > |"Rego, P." =A0schreef in berichtnews:783efc18-a581-4ae2-bde4-04afa3568ff= 8@glegroupsg2000goo.googlegroups.com... > | > |>This would allow something like > |> Pragma CUDA( Ralph ); > |>to indicate that the subprogram "Ralph" is to be run on the GPUs; and > |>it would also allow non-CUDA enabled compilers to compile the source > |>regardless of whether or not their compiler actually knows about CUDA. > | > |That's the idea. It would be very good. > > At this moment I don't know if this is a good idea, because CUDA is a > language developped only for NVidia GPU's. One of the purposes of Ada I > think is that a program can always be used on another computer with only = the > a simple recompilation. I would like a Pragma GPU( Ralph ) that can check > which GPU is used and if that GPU has a CUDA like environment available. > > L. Dries True; I was thinking more on the side of "what NVidia should have done" in making their compiler. The CUDA compiler is, after all, a a C-compiler with a bunch of [nasty] add-ons.