comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Cc: anon@anon.org
Subject: Re: In case you need to remember...
Date: Wed, 11 Apr 2012 11:15:58 -0700 (PDT)
Date: 2012-04-11T11:15:58-07:00	[thread overview]
Message-ID: <8808643.738.1334168158242.JavaMail.geo-discussion-forums@ynvv7> (raw)
In-Reply-To: <jlnihi$ou9$1@speranza.aioe.org>

On Friday, April 6, 2012 3:09:24 PM UTC-5, an...@att.net wrote:
> The truth is Ada is Concurrent which means Ada uses one and only one 
> thread for all tasks. 

That's certainly not what the video over here implies:
http://www.adapower.com/index.php?Command=Class&ClassID=AdvocacyVideos&Title=Ada+Advocacy+Videos

(I'm not sure which segment, I'm currently on a no-sound computer so I can't check.)

Further, because TASK is a language-construct it may be handled in any number of ways, so long as that implementation conforms to the requirements of the ARM. Though even that could conceivably be handled differently via pragma usage; the ARM is quite permissive about implementation defined pragmas:
"In addition, an implementation may provide implementation-defined pragmas, which must then be described in Appendix F. An implementation is not allowed to define pragmas whose presence or absence influences the legality of the text outside such pragmas. Consequently, the legality of a program does not depend on the presence or absence of implementation-defined pragmas."
(see http://archive.adaic.com/standards/83lrm/html/lrm-02-08.html )

The above means that NVidia could have used Ada tasks as its CUDA/GPU-processor code via pragma; allowing the compiler to a) reject code which could not be run on the GPU, or b) pass the task on to the main CPU and issue a warning with the technical limitation barring it from being put onto the GPUs. {Further, such code would also be able to be compiled with any regular Ada compiler which only warned about the unrecognized pragmas.}




  parent reply	other threads:[~2012-04-11 18:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 15:20 In case you need to remember mockturtle
2012-04-06 15:32 ` Pascal Obry
2012-04-06 20:09 ` anon
2012-04-06 20:14   ` Ludovic Brenta
2012-04-11 18:15   ` Shark8 [this message]
2012-04-11 21:22     ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox