- 
                Notifications
    
You must be signed in to change notification settings  - Fork 794
 
[SYCL] Implement device library linking for runtime compilation #15810
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] Implement device library linking for runtime compilation #15810
Conversation
`llvm::Module` must remain qualified to resolve the ambiguity with `clang::Module`. Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
8096e3e    to
    970b041      
    Compare
  
    Signed-off-by: Julian Oppermann <[email protected]>
| // TODO: Allow instrumentation again when device library linking is | ||
| // implemented. | ||
| CommandLine.push_back("-fno-sycl-instrument-device-code"); | 
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.
NB: This PR is tested by the existing E2E test, which now works with device instrumentation enabled.
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.
Device instrumentation was disabled by default recently (#14910); I added the flag to one of the E2E test's user-supplied arguments.
Signed-off-by: Julian Oppermann <[email protected]>
| 
           Reverted to draft while working on better handling of user arguments.  | 
    
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
…vice-linking Signed-off-by: Julian Oppermann <[email protected]>
| 
           @cperkinsintel @gmlueck @AlexeySachkov could you take a look, please?  | 
    
          
 Sorry, I can't commit to reviewing every PR for the jit compiler. I generally review changes to specifications, and I'm available to answer questions.  | 
    
Mimics
clang::driver::tools::SYCL::getDeviceLibrariesassuming a SPIR-V target (= no AoT, no third-party GPUs, no native CPU).Same as for the compilation step, warning/error reporting is still rudimentary and will be improved in a future PR.