You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a cuda project like https://github.com/NVIDIA-Merlin/HierarchicalKV/ , I can build it with it's cmake build guide.
Now I want to use this repo in my Bazel project, so I choose rules_foreign_cc's cmake rule to build it.
Here is my scripts,
WORKSPACE file
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_foreign_cc",
sha256 = "a2e6fb56e649c1ee79703e99aa0c9d13c6cc53c8d7a0cbb8797ab2888bbc99a3",
strip_prefix = "rules_foreign_cc-0.12.0",
url = "https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.12.0/rules_foreign_cc-0.12.0.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# This sets up some common toolchains for building targets. For more details, please see
# https://bazelbuild.github.io/rules_foreign_cc/0.12.0/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
http_archive(
name = "HierarchicalKV",
build_file = "hkv.BUILD",
sha256 = "a73d7bea159173db2038f7c5215a7d1fbd5362adfb232fabde206dc64a1e817c",
strip_prefix = "HierarchicalKV-0.1.0-beta.12",
url = "https://github.com/NVIDIA-Merlin/HierarchicalKV/archive/refs/tags/v0.1.0-beta.12.tar.gz",
)
I have a cuda project like https://github.com/NVIDIA-Merlin/HierarchicalKV/ , I can build it with it's cmake build guide.
Now I want to use this repo in my Bazel project, so I choose rules_foreign_cc's cmake rule to build it.
Here is my scripts,
WORKSPACE file
hkv.BUILD
BUILD file:
When I build the target with
bazel build build_test
, I got this error:So I want to know how to set my local nvcc compiler for the cmake rule
Other infomations:
OS version: Ubuntu 22.04
clang version: Ubuntu clang version 17.0.6
nvcc version: release 12.2, V12.2.140
bazel version: 6.5.0
The text was updated successfully, but these errors were encountered: