Re: Cocoa framework for GPU utilization
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1663804038; bh=0x16Zhy5lh8XuLa1CeavtQUORf1hU2HlmR1v1atgoZM=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=siLo1ID5Ty3nuUKp09lonAFtaxZffoQf8yQMfma06kqbSUzvTuni3ozPggpp04ioP ynzatJdapJ35NBfJPHSQDH2tvGJe9kktAJV4YdI3Z2SY373w2TbaWGnI/wNlebdaJ8 +JeyfiEvqMHJjASyMjuRRBKezO7Jhn55BgEr/AjE20AjKjTVXH/n28YNd7RVJ2gNoe 8o2VuY8qAeJ13/ipJXx+GOHgnFHE27r47fHoOx25lDVPvU0OraL/tTomS/t+gwZCKg 8HIVhTOqx7JJyfhQP3V5qMbfMFnyhBV8KIB62Lybsr/C/PjWHn4zEw8TIUVPSpDpmK 1efEwiQIZ7zQw== You can try writing a GPU program in the Metal Shading Language <https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf> and then dispatch that program to the GPU using the Metal <https://developer.apple.com/metal/> framework in your Cocoa app. Thanks, Gabriel Jacoby-Cooper Rensselaer Polytechnic Institute
On Sep 21, 2022, at 4:42 PM, Carl Hoefs via Cocoa-dev <cocoa-dev@lists.apple.com> wrote:
I just got a new M1 Max Mac Studio (10-core CPU / 32-core GPU / 16-core neural engine). How can I take advantage of the GPUs and "neural" engine from Cocoa? Is there a Cocoa framework or other API to access these?
In my case, I have a highly parallelizable Cocoa task that uses dispatch_apply() to run on all CPUs simultaneously. It averages about 0.2s per process thread, but doesn't utilize the GPUs, only the CPUs. I'm sure that offloading this task to the GPUs would speed this up tremendously, but I don't know where to start.
Thx, -Carl
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/gjacobycooper%40icloud.com
This email sent to gjacobycooper@icloud.com
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com smime.p7s
participants (1)
-
Gabriel Jacoby-Cooper via Cocoa-dev