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=-1.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c08aa0f01f894da6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!upload-2.xsnews.nl!10.10.69.1.MISMATCH!frontend-F09-01.ams.textnews.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada References: <783efc18-a581-4ae2-bde4-04afa3568ff8@glegroupsg2000goo.googlegroups.com> <4e1c2153$0$2581$703f8584@news.kpn.nl> <98b32073-e1ef-4e97-80f8-ce068fba2738@h12g2000vbx.googlegroups.com> In-Reply-To: <98b32073-e1ef-4e97-80f8-ce068fba2738@h12g2000vbx.googlegroups.com> Subject: Re: GPUs and CUDA Date: Wed, 13 Jul 2011 17:15:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3508.1109 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109 Message-ID: <4e1db6a7$0$2582$703f8584@textnews.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1310570151 textnews.kpn.nl 2582 77.168.179.107@kpn/77.168.179.107:49622 Xref: g2news1.google.com comp.lang.ada:20193 Date: 2011-07-13T17:15:49+02:00 List-Id: "Shark8" schreef in bericht news:98b32073-e1ef-4e97-80f8-ce068fba2738@h12g2000vbx.googlegroups.com... On Jul 12, 5:26 am, "ldries46" wrote: > |"Rego, P." schreef in > berichtnews:783efc18-a581-4ae2-bde4-04afa3568ff8@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 |done" in making their compiler. |The CUDA compiler is, after all, a a C-compiler with a bunch of |[nasty] add-ons. Perhaps this discussions must be continued on another forum. The best way to import GPU calculations in a regular program would be lijk graphics with an OpenGPU library to which you can link from any language. :. Dries