Add support for compiling CUDA code on both amd64 and the orin
Change-Id: Ic7aca062c454fa1da3480667363e7250ddc2a8fe
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/tools/platforms/gpu/BUILD b/tools/platforms/gpu/BUILD
new file mode 100644
index 0000000..9686148
--- /dev/null
+++ b/tools/platforms/gpu/BUILD
@@ -0,0 +1,13 @@
+package(default_visibility = ["//visibility:public"])
+
+constraint_setting(name = "gpu")
+
+constraint_value(
+ name = "nvidia",
+ constraint_setting = ":gpu",
+)
+
+constraint_value(
+ name = "none",
+ constraint_setting = ":gpu",
+)