• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Audio Units and OpenCL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Units and OpenCL?


  • Subject: Re: Audio Units and OpenCL?
  • From: Markus Fritze <email@hidden>
  • Date: Wed, 9 Sep 2009 08:02:35 -0700

Ehm, you know that GCD is running at the main thread level? Which can be blocked by UI operations, etc. That doesn't seem like a wise choice for real-time processing. OpenCL also doesn't have a threading mode, so you tasks will be shared among all the others and your latency becomes unpredictable.


Markus

On Sep 9, 2009, at 12:44 AM, Jean-Daniel Dupas wrote:


Le 9 sept. 2009 à 06:09, Mike Lemmon a écrit :

Has anyone investigated the possibility of using OpenCL in an Audio Unit? I have a synthesizer (AUInstrument) where the main render process loops over a bunch of objects (50+, the more the merrier), and it could all be done concurrently. Any hope of using the newfangled technology, or is the overhead too big? If not OpenCL, then GCD queues at least?

Thanks,
Mike

I will try GDC first. So much simple, replace you loop with this:

void *objects[50];
dispatch_queue_t queue = dispatch_get_global_qeueue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_apply(50, queue, ^(size_t index) {
DoSomethingWithObject(objects[index]);
});
// Everything done, you can continue.




-- Jean-Daniel




_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Audio Units and OpenCL?
      • From: Richard Dobson <email@hidden>
    • Re: Audio Units and OpenCL?
      • From: tahome izwah <email@hidden>
References: 
 >Audio Units and OpenCL? (From: Mike Lemmon <email@hidden>)
 >Re: Audio Units and OpenCL? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Audio Units and OpenCL?
  • Next by Date: Re: Audio Units and OpenCL?
  • Previous by thread: Re: Audio Units and OpenCL?
  • Next by thread: Re: Audio Units and OpenCL?
  • Index(es):
    • Date
    • Thread