-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL][NATIVECPU] Fix linker errors for WorkGroup collective functions #15144
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
Conversation
} else { | ||
printf("test failed!\n"); | ||
} | ||
assert(fails == 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assert might get compiled away so it's probably better to return fails
to not lose the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's done, thank you
Hi @intel/llvm-reviewers-runtime, after #15142 the ownership of |
@intel/llvm-gatekeepers this looks ready to merge, thank you |
This PR fixes some link-time error related to WorkGroup collective functions:
_Float16
data type and the__spirv_GroupBroadcast
function, which leads toundefined reference
linker errors.clang-offload-deps
is not emitted by the driver: the call introduced anllvm.used
array, which contained function pointers to the kernels which prevented eliminating those functions from the module even when they are not needed anymore (due to inlining). This lead to otherundefined reference
linker errors for WorkGroup collectives.