Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Fix diagnostic about non-external function/variable #15372

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

premanandrao
Copy link
Contributor

We were issuing a diagnostic when applying attributes like [[sycl_device]] or [[intel::device_indirectly_callable]] on functions/variables without external linkage - but the diagnostic text assumed that this occurred only with static entities or entities within unnamed namespaces.

The following example demonstrates a case where the previous diagnostic text was misleading:

namespace {
  struct S {};
}

[[sycl_device]] void foo(S);

We were issuing a diagnostic when applying attributes like [[sycl_device]]
or [[intel::device_indirectly_callable]] on functions/variables without
external linkage - but the diagnostic text assumed that this occurred
only with static entities or entities within unnamed namespaces.

The following example demonstrates a case where the previous
diagnostic text was misleading:

```
namespace {
  struct S {};
}

[[sycl_device]] void foo(S);
```
@premanandrao
Copy link
Contributor Author

@intel/llvm-gatekeepers - this is ready for a merge. The failing test is unrelated and seems to be an infrastructure issue.

@premanandrao
Copy link
Contributor Author

@intel/llvm-gatekeepers - this is ready for a merge. The failing test is unrelated and seems to be an infrastructure issue.

@intel/llvm-gatekeepers - ping.

@sarnex
Copy link
Contributor

sarnex commented Sep 20, 2024

the error isnt an infra issue, its because the time between build and test was too long so the build artifacts got deleted

@sarnex
Copy link
Contributor

sarnex commented Sep 20, 2024

i'd prefer we rerun build+test, ill do that now

@sarnex
Copy link
Contributor

sarnex commented Sep 20, 2024

fail is fixed in head, merging

@sarnex sarnex merged commit 9f53a78 into intel:sycl Sep 20, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants