[all-commits] [llvm/llvm-project] 53f5bf: [libc][libm][GPU] Populating 'libmgpu.a' for math ...

Anton Rydahl via All-commits all-commits at lists.llvm.org
Tue Aug 1 13:38:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53f5bfdb58f18951a185c7c7efe41c3827da112f
      https://github.com/llvm/llvm-project/commit/53f5bfdb58f18951a185c7c7efe41c3827da112f
  Author: Anton Rydahl <rydahl2610 at gmail.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M libc/config/gpu/entrypoints.txt
    M libc/src/math/CMakeLists.txt
    M libc/src/math/gpu/CMakeLists.txt
    A libc/src/math/gpu/modf.cpp
    A libc/src/math/gpu/modff.cpp
    A libc/src/math/gpu/nearbyint.cpp
    A libc/src/math/gpu/nearbyintf.cpp
    A libc/src/math/gpu/remainder.cpp
    A libc/src/math/gpu/remainderf.cpp
    A libc/src/math/gpu/remquo.cpp
    A libc/src/math/gpu/remquof.cpp
    A libc/src/math/gpu/rint.cpp
    A libc/src/math/gpu/rintf.cpp
    R libc/src/math/gpu/roundl.cpp
    A libc/src/math/gpu/scalbn.cpp
    A libc/src/math/gpu/scalbnf.cpp
    A libc/src/math/gpu/sinh.cpp
    A libc/src/math/gpu/sinhf.cpp
    A libc/src/math/gpu/sqrt.cpp
    A libc/src/math/gpu/sqrtf.cpp
    A libc/src/math/gpu/tan.cpp
    A libc/src/math/gpu/tanf.cpp
    A libc/src/math/gpu/tanh.cpp
    A libc/src/math/gpu/tanhf.cpp
    A libc/src/math/gpu/trunc.cpp
    A libc/src/math/gpu/truncf.cpp
    M libc/src/math/gpu/vendor/CMakeLists.txt
    M libc/src/math/gpu/vendor/amdgpu/amdgpu.h
    M libc/src/math/gpu/vendor/amdgpu/declarations.h
    A libc/src/math/gpu/vendor/nextafter.cpp
    A libc/src/math/gpu/vendor/nextafterf.cpp
    M libc/src/math/gpu/vendor/nvptx/declarations.h
    M libc/src/math/gpu/vendor/nvptx/nvptx.h
    A libc/src/math/gpu/vendor/sincos.cpp
    A libc/src/math/gpu/vendor/sincosf.cpp
    A libc/src/math/gpu/vendor/sinf.cpp
    A libc/src/math/gpu/vendor/sinh.cpp
    A libc/src/math/gpu/vendor/sinhf.cpp
    A libc/src/math/gpu/vendor/tan.cpp
    A libc/src/math/gpu/vendor/tanf.cpp
    A libc/src/math/gpu/vendor/tanh.cpp
    A libc/src/math/gpu/vendor/tanhf.cpp
    A libc/src/math/sinh.h
    A libc/src/math/tanh.h

  Log Message:
  -----------
  [libc][libm][GPU] Populating 'libmgpu.a' for math on the GPU

This commit populates `libmgpu.a` with wrappers for the following built-ins
- modf, modff
- nearbyint, nearbyintf
- remainder, remainderf
- remquo, remquof
- rint, rintf
- scalbn, scalbnf
- sqrt, sqrtf
- tan, tanf
- tanh, tanhf
- trunc, truncf
and wrappers the following vendor implementations
- nextafter, nextafterf
- sincos, sincosf
- sinh, sinhf
- sinf
- tan, tanf
- tanh, tanhf

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D153395




More information about the All-commits mailing list