Skip to content

v0.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Dec 17:19
· 155 commits to main since this release

#rules_cuda Initial Release (v0.1.0)

This release adds support for builds using your local CUDA toolchain. It includes support for both cuda_library and cuda_objects rules (see README.md for more details).

Please try the examples, migrate your builds to use these rules, and provide feedback!

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "c03654f2bb3d4b8573c99f0203e8e5f48a1db94c9a1719f04993dcb90b57bc7b",
    strip_prefix = "rules_cuda-0.1.0",
    url = "https://github.com/bazel-contrib/rules_cuda/archive/refs/tags/v0.1.0.tar.gz",
)

######################
# rules_bazel setup  #
######################
# Fetches the rules_bazel dependencies and initializes the cuda toolchain.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.

load("@rules_cuda//cuda:repositories.bzl", "register_detected_cuda_toolchains", "rules_cuda_dependencies")
rules_cuda_dependencies()
register_detected_cuda_toolchains()

What's Changed

New Contributors

Full Changelog: https://github.com/bazel-contrib/rules_cuda/commits/v0.1.0