Skip to content

Commit

Permalink
Fix cuda_test
Browse files Browse the repository at this point in the history
  • Loading branch information
hofbi committed Oct 12, 2023
1 parent 79161f1 commit 5fdc4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda/private/macros/cuda_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("//cuda/private:rules/cuda_library.bzl", _cuda_library = "cuda_library")

def cuda_test(name, **attrs):
"""Wrapper to ensure the test is compiled with the CUDA compiler."""
cuda_library_only_attrs = ["deps"]
cuda_library_only_attrs = ["deps", "srcs", "hdrs"]

# https://bazel.build/reference/be/common-definitions?hl=en#common-attributes-tests
cc_test_only_attrs = ["args", "env", "env_inherit", "size", "timeout", "flaky", "shard_count", "local"]
Expand Down

0 comments on commit 5fdc4f7

Please sign in to comment.