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

Create one bitcode library for AMD #15055

Merged
merged 5 commits into from
Sep 25, 2024
Merged

Commits on Sep 17, 2024

  1. Create one bitcode library for AMD

    Enable compilation of libdevice for AMD by adding AMDGCN to macro
    guarded code parts in libdevice for enabling e.g. standard library
    math function.
    
    Add compilation workflow to SYCLLibdevice.cmake for AMD.
    
    Follow the compilation mechanism for NVPTX
    (3668c0a)
    and create a single bitcode library file.
    
    Do not select builtin LLVM intrinsics for AMDGCN by default to ensure
    that stdlib functions can be found when linking against libdevice.
    
    Ensure that the clang tests check for the correctness of the new
    clang driver actions and check if the driver still links the device
    code against the itt device libraries when device library linkage has
    been excluded.
    
    Fix a compilation error of Intel math function libraries for MSVC
    when targeting AMD. Include "device.h" before including "device_imf.hpp"
    to avoid the inclusion of <type_traits>, which failed with a
    redefinition of symbols error.
    Martin Wehking committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    2ef7b5e View commit details
    Browse the repository at this point in the history
  2. Add devicelib linking test

    Check if device lib flags get treated correctly for AMDGCN and
    that the linking actions for the correct device libraries are generated.
    Martin Wehking committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    71a64ed View commit details
    Browse the repository at this point in the history
  3. Fix unused argument error for devicelib test case

    Martin Wehking committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    43dfbee View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Change naming to a proper backend target

    Martin Wehking committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6ceefc6 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Remove not needed flag + add dummy input

    Martin Wehking committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    a7666f6 View commit details
    Browse the repository at this point in the history