Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe: GPU functions in Mojo #15

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

BradLarson
Copy link
Collaborator

Adds a recipe that encapsulates the very basic GPU programming model in MAX and Mojo of defining functions in Mojo and dispatching them on the GPU directly with the MAX Driver API. This is a programming model very familiar to CUDA developers, and can be an initial entry point for those mapping how to program in MAX to how they would have approached a problem in CUDA.

Examples are sourced from https://github.com/modular/max/tree/main/examples/gpu_functions

@ematejska ematejska merged commit f4947b6 into modular:main Mar 3, 2025
1 check passed
@BradLarson BradLarson deleted the gpu-functions-mojo branch March 6, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants