mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-03 18:24:53 +00:00
d772201bf1
Added official examples from github.com/modular/modular: - gpu-intro, gpu-functions, gpu-block-and-warp (GPU programming) - layout_tensor, layouts (tensor operations) - life (Conway's Game of Life) - operators (custom operators) - process (subprocess handling) - python-interop (Python integration) - testing (unit test patterns) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
729 B
Python
33 lines
729 B
Python
load("//bazel:api.bzl", "modular_run_binary_test", "mojo_binary")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
mojo_binary(
|
|
name = "layout_tensor_examples",
|
|
srcs = ["layout_tensor_examples.mojo"],
|
|
deps = [
|
|
"//max:layout",
|
|
"@mojo//:std",
|
|
],
|
|
)
|
|
|
|
modular_run_binary_test(
|
|
name = "layout_tensor_examples_test",
|
|
binary = "layout_tensor_examples",
|
|
)
|
|
|
|
mojo_binary(
|
|
name = "layout_tensor_gpu_examples",
|
|
srcs = ["layout_tensor_gpu_examples.mojo"],
|
|
target_compatible_with = ["//:has_gpu"],
|
|
deps = [
|
|
"//max:layout",
|
|
"@mojo//:std",
|
|
],
|
|
)
|
|
|
|
modular_run_binary_test(
|
|
name = "layout_tensor_gpu_examples_test",
|
|
binary = "layout_tensor_gpu_examples",
|
|
)
|