Releases: bazel-contrib/rules_cuda
v0.2.3
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
- @zifeitong made their first contribution in #259
Full Changelog: v0.2.2...v0.2.3
v0.2.2
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
- @dmellosanjay made their first contribution in #208
- @mvukov made their first contribution in #209
- @rygx made their first contribution in #222
- @Vertexwahn made their first contribution in #250
- @tyb0807 made their first contribution in #253
Full Changelog: v0.2.1...v0.2.2
v0.2.1
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
- Fix url for BCR publish app by @jsharpe in #165
- Add cuda_test rule by @hofbi in #168
- chore(deps): update nccl digest to 4365458 by @renovate in #171
- chore(deps): update dependency mkdocs-material to v9.4.2 by @renovate in #173
- chore(deps): update actions/checkout action to v4 by @renovate in #174
- chore(deps): update nccl-tests digest to 6c46206 by @renovate in #172
- Fix cuda test duplicate deps attribute by @hofbi in #176
- Improve RDC by @cloudhan in #167
New Contributors
Full Changelog: v0.2.0...v0.2.1
v0.2.0
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 ascompile_flags
, instead ofhost_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
- @jordancharest made their first contribution in #65
- @EthanSteinberg made their first contribution in #74
- @lalten made their first contribution in #106
- @garymm made their first contribution in #108
- @noaxp made their first contribution in #141
- @Zeratul-Aiur made their first contribution in #147
Full Changelog: v0.1.2...v0.2.0
v0.1.2
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
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
#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
- eliminate cpu architecture constraint for nvcc by @ryanleary in #8
- add support for some cudax libraries by @ryanleary in #9
- add defensive wiring for header-only libraries by @ryanleary in #11
- Fix typo by @ryanleary in #10
- add agx orin & hopper compute capabilities by @ryanleary in #12
- Add basic CI for utilities by @cloudhan in #13
- Add CI for building by @cloudhan in #14
- Add docs for various rule and macros by @cloudhan in #17
- Merge dlink_wrapper.bzl into dlink.bzl by @cloudhan in #18
- Add internal docstring by @cloudhan in #19
- Add bazelignore file by @jsharpe in #22
- Disable arch_native by default by @jsharpe in #21
- Silence deprecation warning by @jsharpe in #23
- chore: add pre-commit for buildifier/prettier by @ryanleary in #24
- Add CODEOWNERS file by @jsharpe in #28
- Enable tests on pull requests by @jsharpe in #27
- refactor!: make structure consistent w/ rule guidelines by @ryanleary in #25
- Use an older node version in pre-commit for compatibility with older … by @jsharpe in #29
- Move if_linux and if_windows into rules_cuda by @jsharpe in #30
- Build fix by @jsharpe in #33
- Fix flag_alias by @jsharpe in #34
- Set local and configure on local_cuda repository by @jsharpe in #37
- chore(deps): update dependency io_bazel_stardoc to v0.5.3 by @renovate in #41
- chore(deps): update dependency bazel to v5.3.2 by @renovate in #42
- Make examples its own workspace by @jsharpe in #44
- ci: create release automation by @ryanleary in #46
- Setup CI pipeline for testing docs generation by @cloudhan in #49
- Add features for relaxed-constexpr and extended-lambda by @jsharpe in #48
- Make CI eco-friendly by avoiding run pipelines twice on push within PR by @cloudhan in #50
- chore(deps): update dependency bazel to v5.4.0 by @renovate in #52
- chore(deps): update dependency bazel to v6 by @renovate in #53
- Enable rules_cuda by default, add docs by @ryanleary in #54
New Contributors
- @cloudhan made their first contribution in #13
- @jsharpe made their first contribution in #22
- @renovate made their first contribution in #41
Full Changelog: https://github.com/bazel-contrib/rules_cuda/commits/v0.1.0