This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Mark CUDA as a no-errno platform.
ClosedPublic

Authored by jlebar on Nov 2 2017, 6:49 PM.

Details

Summary

CUDA doesn't support errno at all, so this is the right thing -- or at
least, in the right direction.

But also, this unbreaks the CUDA test-suite math tests [0] after D39481.
cuda_cmath.h forwards nexttoward() to builtin_nexttoward, which,
after that patch, was lowering to a libcall that doesn't exist in NVPTX.

[0] http://lab.llvm.org:8011/builders/clang-cuda-build/builds/14999

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar created this revision.Nov 2 2017, 6:49 PM
tra accepted this revision.Nov 2 2017, 7:30 PM
This revision is now accepted and ready to land.Nov 2 2017, 7:30 PM
This revision was automatically updated to reflect the committed changes.