Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

cuda::std::complex doesn't work with NVRTC because some <cmath> functions are missing #101

Closed
brycelelbach opened this issue Jan 11, 2021 · 1 comment · Fixed by #109
Closed
Assignees
Milestone

Comments

@brycelelbach
Copy link
Collaborator

******************** TEST 'libcu++ :: std/numerics/complex.number/complex/types.pass.cpp' FAILED ********************
Compiled With: '/data/tmp/libcudacxx/utils/nvidia/nvrtc/nvrtc.sh  nvcc -o /data/tmp/libcudacxx/build/libcxx/test/std/numerics/complex.number/complex/Output/types.pass.cpp.o -x cu /data/tmp/libcudacxx/.upstream-tests/test/std/numerics/complex.number/complex/types.pass.cpp -c -v -ftemplate-depth=270 -ccbin=g++ -std=c++11 -include /data/tmp/libcudacxx/test/support/nasty_macros.h -I/data/tmp/libcudacxx/include -I/data/tmp/libcudacxx/build/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Xcompiler -fno-exceptions -Xcompiler -fno-rtti -D_LIBCUDACXX_NO_RTTI -I/data/tmp/libcudacxx/test/support -I/data/tmp/libcudacxx/include -I/data/tmp/libcudacxx/../cuda/tools/cooperative_groups -I/data/tmp/libcudacxx/../cuda/tools/libcudacxxext --extended-lambda -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_61,code=compute_61 -Xcudafe --display_error_number -Werror all-warnings -D_LIBCUDACXX_DISABLE_PRAGMA_GCC_SYSTEM_HEADER -c && /data/tmp/libcudacxx/utils/nvidia/nvrtc/nvrtc.sh  nvcc -o /data/tmp/libcudacxx/build/libcxx/test/std/numerics/complex.number/complex/Output/types.pass.cpp.exe /data/tmp/libcudacxx/build/libcxx/test/std/numerics/complex.number/complex/Output/types.pass.cpp.o -v -ftemplate-depth=270 -ccbin=g++ -L/data/tmp/libcudacxx/build/lib -Xcompiler "-Wl,-rpath,/data/tmp/libcudacxx/build/lib" -L/data/tmp/libcudacxx/build/lib -Xcompiler "-Wl,-rpath,/data/tmp/libcudacxx/build/lib" -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc'
Command: ['/data/tmp/libcudacxx/build/libcxx/test/std/numerics/complex.number/complex/Output/types.pass.cpp.exe']
Exit Code: 1
Standard Output:
--
CUDA devices found: 1
Device 0: "TITAN Xp", Selected, SM61, 12787122176 [bytes]
/data/tmp/libcudacxx/include/cuda/std/detail/libcxx/include/cmath(324): error: the global scope has no "fpclassify"
/data/tmp/libcudacxx/include/cuda/std/detail/libcxx/include/cmath(325): error: the global scope has no "isnormal"
/data/tmp/libcudacxx/include/cuda/std/detail/libcxx/include/cmath(326): error: the global scope has no "isgreater"
/data/tmp/libcudacxx/include/cuda/std/detail/libcxx/include/cmath(327): error: the global scope has no "isgreaterequ
...
  libcu++ :: std/numerics/complex.number/complex.transcendentals/tan.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.transcendentals/tanh.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/abs.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/arg.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/conj.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/imag.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/norm.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/polar.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/proj.pass.cpp
  libcu++ :: std/numerics/complex.number/complex.value.ops/real.pass.cpp
  libcu++ :: std/numerics/complex.number/complex/types.fail.cpp
  libcu++ :: std/numerics/complex.number/complex/types.pass.cpp
  libcu++ :: std/numerics/complex.number/layout.pass.cpp
  libcu++ :: std/utilities/utilities.general/broken_constant_eval.pass.cpp
Testing Time: 295.06s
  Unsupported      : 434
  Passed           : 421
  Expectedly Failed:   2
  Failed           :  76
# WALLTIME libcu++: 301.531 [sec]
@brycelelbach brycelelbach added this to the 2.0.0 milestone Jan 11, 2021
@brycelelbach
Copy link
Collaborator Author

This is NVBug 200700038

@brycelelbach brycelelbach modified the milestones: 2.0.0, 1.4.1 Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants