Skip to content

Releases: bazel-contrib/rules_cuda

v0.2.3

19 Aug 02:04
775ba0c
Compare
Choose a tag to compare

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "c92b334d769a07cd991b7675b2f6076b8b95cd3b28b14268a2f379f8baae58e0",
    strip_prefix = "rules_cuda-v0.2.3",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.2.3/rules_cuda-v0.2.3.tar.gz"],
)

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

What's Changed

  • Make it clear that "integrity" field expects SRI by @zifeitong in #259
  • Fix strip_prefix when publishing to BCR by @jsharpe in #269

New Contributors

Full Changelog: v0.2.2...v0.2.3

v0.2.2

13 Aug 12:58
f00f640
Compare
Choose a tag to compare

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "b066750579f33e93e9dc55b8ee2067b525d863c1ddcf09b47a6332c39f0701fb",
    strip_prefix = "rules_cuda-v0.2.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.2.2/rules_cuda-v0.2.2.tar.gz"],
)

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

What's Changed

  • Filter attrs properly for cuda_test by @cloudhan in #180
  • Fix cuda_test by @hofbi in #181
  • Add v0.2.1 to docs by @cloudhan in #184
  • Pass through --sysroot to host compiler by @lalten in #185
  • Add cuda_binary macro by @cloudhan in #186
  • Move non glob files out of glob by @hofbi in #192
  • Disallow autoupdate nccl by @cloudhan in #193
  • eliminate cpu architecture constraint for clang by @dmellosanjay in #208
  • Check nvcc version before adding --dopt on flags by @cloudhan in #212
  • Add alwayslink to cuda_binary and cuda_test macros by @cloudhan in #210
  • Add additional tests for LTS releases by @cloudhan in #215
  • Fix cquery-ing with cuda targets by @mvukov in #209
  • Propose new solution for know issue (nvcc filesystem race condition) by @hofbi in #216
  • Fix a typo in if_cuda doc by @rygx in #222
  • Ignore MODULE.bazel.lock file by @rygx in #224
  • ci: avoid nvcc /tmp race condition by @cloudhan in #232
  • ci: disable doc test workflow cache to avoid excessive space wasting by @cloudhan in #231
  • feat: Add features for compiling with -arch=all or -arch=all-major by @jsharpe in #245
  • Fix spelling by @Vertexwahn in #250
  • Change example rules_cuda version by @Vertexwahn in #249
  • Document how to use rules_cuda with Bzlmod by @Vertexwahn in #252
  • Do not assume libcupti.so location by @tyb0807 in #253
  • ci: use absolute path for XDG_CACHE_HOME as github actions and bazel doesn't resolve ~ automatically by @cloudhan in #260
  • ci: cover major bazel releases in utilities tests by @cloudhan in #262
  • test: workaround label resolving with bzlmod by @cloudhan in #263
  • fix(bzlmod): allow both root module and our module to call cuda.local_toolchain by @cloudhan in #264

New Contributors

Full Changelog: v0.2.1...v0.2.2

v0.2.1

08 Oct 14:54
894603f
Compare
Choose a tag to compare

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "2f8c8c8c85f727bec4423efecec12d3b751cb0a98bda99f0f9d351608a23b858",
    strip_prefix = "rules_cuda-v0.2.1",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.2.1/rules_cuda-v0.2.1.tar.gz"],
)

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: v0.2.0...v0.2.1

v0.2.0

07 Sep 02:17
22a46e6
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "1efa8c3e514d8a770a27c7ed968a26ed8ee967ec7d471858da270ab03046a6b4",
    strip_prefix = "rules_cuda-v0.2.0",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.2.0/rules_cuda-v0.2.0.tar.gz"],
)

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

What's Changed

  • Add host compiler flag to device link step by @jordancharest in #65
  • Use merge_cc_infos to calculate common flags by @jsharpe in #60
  • chore(deps): update dependency bazel to v6.1.0 by @renovate in #68
  • chore(deps): update jimver/cuda-toolkit action to v0.2.9 by @renovate in #69
  • chore(deps): update dependency bazel to v6.1.1 by @renovate in #70
  • chore(deps): update jimver/cuda-toolkit action to v0.2.10 by @renovate in #71
  • Add ci docs gen and github pages pub by @cloudhan in #73
  • Change building test combination by @cloudhan in #75
  • Various fixes to get rules_cuda to work with Lambda-stack by @EthanSteinberg in #74
  • Decorate docs by @cloudhan in #76
  • chore(deps): update dependency mkdocs-material to v9.1.4 by @renovate in #77
  • Stop using ubuntu-18.04 by @cloudhan in #80
  • Relax the _check_opts impl by @cloudhan in #79
  • chore(deps): update dependency mkdocs-material to v9.1.5 by @renovate in #82
  • chore(deps): update dependency mkdocs-material to v9.1.6 by @renovate in #83
  • Allow //cuda:copts to be repeatable by @cloudhan in #85
  • Fix local docs build hint by @cloudhan in #87
  • Allow multiple 'local' installs of cuda to be specified by @jsharpe in #66
  • Fix possibly conflict artifact names by @cloudhan in #81
  • chore(deps): update dependency bazel to v6.1.2 by @renovate in #89
  • chore(deps): update dependency mkdocs-material to v9.1.7 by @renovate in #90
  • chore(deps): update dependency mkdocs-material to v9.1.8 by @renovate in #91
  • chore(deps): update dependency mkdocs-material to v9.1.9 by @renovate in #92
  • Overhaul the URLs to the update new repo by @cloudhan in #93
  • chore(deps): update dependency mkdocs-material to v9.1.11 by @renovate in #94
  • chore(deps): update dependency bazel to v6.2.0 by @renovate in #95
  • chore(deps): update dependency mkdocs-material to v9.1.12 by @renovate in #96
  • chore(deps): update dependency io_bazel_stardoc to v0.5.4 by @renovate in #98
  • chore(deps): update dependency mkdocs-material to v9.1.13 by @renovate in #97
  • chore(deps): update dependency mkdocs-material to v9.1.14 by @renovate in #100
  • Slow the renovate bot down by @cloudhan in #101
  • chore(deps): update dependency mkdocs-material to v9.1.15 by @renovate in #104
  • chore(deps): update dependency io_bazel_stardoc to v0.5.6 by @renovate in #103
  • Add NPP by @lalten in #106
  • Use windows-2019 for utilities tests by @cloudhan in #112
  • add cuda_device_debug feature by @garymm in #108
  • Add support for missing archs by @cloudhan in #110
  • chore(deps): update dependency mkdocs-material to v9.1.17 by @renovate in #116
  • chore(deps): update dependency bazel to v6.2.1 by @renovate in #115
  • chore(deps): update dependency bazel_skylib to v1.4.2 by @renovate in #117
  • Ignore MODULE.bazel for renovate bot by @cloudhan in #118
  • Include versioned so files in cuda_runtime by @garymm in #114
  • support toolkit_path in rules_cuda_dependencies by @garymm in #121
  • apply some pre-commit fixes by @garymm in #124
  • run pre-commit in GitHub check by @garymm in #122
  • Format to fix precommit by @cloudhan in #126
  • set nvcc --generate-line-info when compilation_mode=fastbuild by @garymm in #120
  • upgrade buildifier by @garymm in #127
  • have cuda_library output RDC by @garymm in #125
  • Fix obvious typo of templates by @cloudhan in #131
  • Fix deps of rdc example by @cloudhan in #133
  • chore(deps): update dependency mkdocs-material to v9.1.21 by @renovate in #137
  • chore(deps): update actions/cache action to v3 by @renovate in #140
  • chore(deps): update jimver/cuda-toolkit action to v0.2.11 by @renovate in #138
  • chore(deps): update dependency bazel to v6.3.1 by @renovate in #139
  • Add flag "--host_copts" to specify global host copts by @noaxp in #141
  • Fix _wrapper_device_link artifact name conflict by @cloudhan in #135
  • Fix incorrect tools label for _wrapper_device_link by @cloudhan in #134
  • The flags -x c++ should be passed as compile_flags, instead of host_compile_flags by @cloudhan in #132
  • Add basic CI testing for clang by @cloudhan in #143
  • Fix default dbg and fastbuild optimization level for nvcc by @cloudhan in #129
  • Add attr provides for cuda_library and cuda_objects by @Zeratul-Aiur in #147
  • chore(deps): update dependency bazel to v6.3.2 by @renovate in #148
  • Fix precommit by @cloudhan in #151
  • Update stardoc to v0.6.2 manually by @cloudhan in #152
  • chore(deps): update dependency mkdocs-material to v9.2.6 by @renovate in #150
  • Update bazel_skylib to 1.4.2 by @cloudhan in #155
  • Factor out build env preparation by @cloudhan in #156
  • Add nccl as an example by @cloudhan in #157
  • Let cuda_objects expose transitive objects by @cloudhan in #154
  • Add integration test CI pipeline by @cloudhan in #158
  • allow .cpp and .cc files in srcs by @garymm in #99
  • Improve hermeticity for clang by @cloudhan in #159
  • Update matrix versions by @cloudhan in #161

New Contributors

Full Changelog: v0.1.2...v0.2.0

v0.1.2

07 Jan 11:18
17ca7f8
Compare
Choose a tag to compare

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "dc1f4f704ca56e3d5edd973f98a45f0487d0f28c689d0a57ba236112148b1833",
    strip_prefix = "rules_cuda-v0.1.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)

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

What's Changed

  • chore(deps): update actions/upload-artifact action to v3 by @renovate in #58
  • Fix typos and grammar in README.md by @jsharpe in #61
  • Add option to add files to the toolchain configuration by @jsharpe in #59
  • Initial bzlmod support by @jsharpe in #36
  • Allow inl as header suffix. by @liuliu in #62
  • Add publish-to-bcr configuration by @jsharpe in #64

New Contributors

Full Changelog: v0.1.1...v0.1.2

v0.1.1

02 Jan 15:12
a81b6bc
Compare
Choose a tag to compare

This release adds a new build artifact, rules_cuda-vx.y.z.tar.gz, for all future releases. This artifact is to be used by http_archive
repository rules. This also fixes the sha256 sum included in the sample WORKSPACE code.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_cuda",
    sha256 = "b2750e65a2c0f34be643146b3975ded79b8c6edc47b529a5b774418139694032",
    strip_prefix = "rules_cuda-v0.1.1",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.1/rules_cuda-v0.1.1.tar.gz"],
)

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

What's Changed

  • fix: generate release .tgz and correct checksum by @ryanleary in #57

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

v0.1.0

23 Dec 17:19
Compare
Choose a tag to compare

#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