[PATCH] D89971: [OpenMP][CUDA] Add missing overload for `remquo(float,float,int*)`

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 09:45:16 PDT 2020


tra added a comment.

Looks like it breaks CUDA:  http://lab.llvm.org:8011/#/builders/46/builds/304

  [10/873] Building CXX object External/CUDA/CMakeFiles/printf-cuda-11.0-c++14-libstdc++-6.dir/printf.cu.o
  FAILED: External/CUDA/CMakeFiles/printf-cuda-11.0-c++14-libstdc++-6.dir/printf.cu.o 
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/bin/clang++  -DNDEBUG  -O3 -DNDEBUG   -w -Werror=date-time -UNDEBUG --cuda-path=/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0 -I/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include --cuda-gpu-arch=sm_75 -std=c++14 -stdlib=libstdc++ -gcc-toolchain /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/gcc-6 -DSTDLIB_VERSION=2014 -MD -MT External/CUDA/CMakeFiles/printf-cuda-11.0-c++14-libstdc++-6.dir/printf.cu.o -MF External/CUDA/CMakeFiles/printf-cuda-11.0-c++14-libstdc++-6.dir/printf.cu.o.d -o External/CUDA/CMakeFiles/printf-cuda-11.0-c++14-libstdc++-6.dir/printf.cu.o -c /buildbot/cuda-t4-0/work/None_clang-cuda-t4/llvm-test-suite/External/CUDA/printf.cu
  In file included from <built-in>:1:
  In file included from /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_runtime_wrapper.h:412:
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_cmath.h:177:18: error: redefinition of 'remquo'
  __DEVICE__ float remquo(float __n, float __d, int *__q) {
                   ^
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include/crt/math_functions.hpp:685:31: note: previous definition is here
  __MATH_FUNCTIONS_DECL__ float remquo(float a, float b, int *quo)
                                ^
  1 error generated when compiling for sm_75.
  [11/873] Building CXX object External/CUDA/CMakeFiles/builtin_var-cuda-11.0-c++14-libstdc++-7.dir/builtin_var.cu.o
  FAILED: External/CUDA/CMakeFiles/builtin_var-cuda-11.0-c++14-libstdc++-7.dir/builtin_var.cu.o 
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/bin/clang++  -DNDEBUG  -O3 -DNDEBUG   -w -Werror=date-time -UNDEBUG --cuda-path=/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0 -I/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include --cuda-gpu-arch=sm_75 -std=c++14 -stdlib=libstdc++ -gcc-toolchain /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/gcc-7 -DSTDLIB_VERSION=2014 -MD -MT External/CUDA/CMakeFiles/builtin_var-cuda-11.0-c++14-libstdc++-7.dir/builtin_var.cu.o -MF External/CUDA/CMakeFiles/builtin_var-cuda-11.0-c++14-libstdc++-7.dir/builtin_var.cu.o.d -o External/CUDA/CMakeFiles/builtin_var-cuda-11.0-c++14-libstdc++-7.dir/builtin_var.cu.o -c /buildbot/cuda-t4-0/work/None_clang-cuda-t4/llvm-test-suite/External/CUDA/builtin_var.cu
  In file included from <built-in>:1:
  In file included from /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_runtime_wrapper.h:412:
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_cmath.h:177:18: error: redefinition of 'remquo'
  __DEVICE__ float remquo(float __n, float __d, int *__q) {
                   ^
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include/crt/math_functions.hpp:685:31: note: previous definition is here
  __MATH_FUNCTIONS_DECL__ float remquo(float a, float b, int *quo)
                                ^
  1 error generated when compiling for sm_75.
  [12/873] Building CXX object External/CUDA/CMakeFiles/assert-cuda-11.0-c++14-libstdc++-7.dir/assert.cu.o
  FAILED: External/CUDA/CMakeFiles/assert-cuda-11.0-c++14-libstdc++-7.dir/assert.cu.o 
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/bin/clang++  -DNDEBUG  -O3 -DNDEBUG   -w -Werror=date-time -UNDEBUG --cuda-path=/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0 -I/buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include --cuda-gpu-arch=sm_75 -std=c++14 -stdlib=libstdc++ -gcc-toolchain /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/gcc-7 -DSTDLIB_VERSION=2014 -MD -MT External/CUDA/CMakeFiles/assert-cuda-11.0-c++14-libstdc++-7.dir/assert.cu.o -MF External/CUDA/CMakeFiles/assert-cuda-11.0-c++14-libstdc++-7.dir/assert.cu.o.d -o External/CUDA/CMakeFiles/assert-cuda-11.0-c++14-libstdc++-7.dir/assert.cu.o -c /buildbot/cuda-t4-0/work/None_clang-cuda-t4/llvm-test-suite/External/CUDA/assert.cu
  In file included from <built-in>:1:
  In file included from /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_runtime_wrapper.h:412:
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/clang/lib/clang/12.0.0/include/__clang_cuda_cmath.h:177:18: error: redefinition of 'remquo'
  __DEVICE__ float remquo(float __n, float __d, int *__q) {
                   ^
  /buildbot/cuda-t4-0/work/None_clang-cuda-t4/external/cuda/cuda-11.0/include/crt/math_functions.hpp:685:31: note: previous definition is here
  __MATH_FUNCTIONS_DECL__ float remquo(float a, float b, int *quo)
                                ^
  1 error generated when compiling for sm_75.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89971/new/

https://reviews.llvm.org/D89971



More information about the cfe-commits mailing list