https://bugs.llvm.org/show_bug.cgi?id=42798
Bug ID: 42798
Summary: FP_ constants not defined when offloading is turned on
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
The following constants are not defined when offload flag is added.
FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_INFINITE, FP_NAN
https://zh.cppreference.com/w/cpp/numeric/math/FP_categories
clang++ -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda test.cpp
#include <cmath>
int main()
{
double a(0);
return (std::fpclassify(a) != FP_ZERO);
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs