Files
clang-p2996/offload/unittests/Conformance/sin.cpp
Joseph Huber 3cff3d882b [Offload] Add skeleton for offload conformance tests (#146391)
Summary:
This adds a basic outline for adding 'conformance' tests. These are
tests that are intended to check device code against a standard. In this
case, we will expect this to be filled with math conformance tests to
make sure their results are within the ULP requirements we demand.

Right now this just *assumes* the GPU libc is there, meaning you'll
likely need to do a manual `ninja` before doing `ninja -C
runtimes/runtimes-bins offload.conformance`.
2025-07-01 10:20:40 -05:00

9 lines
226 B
C++

#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <OffloadAPI.h>
#include <math.h>
llvm::StringRef DeviceBinsDirectory = DEVICE_CODE_PATH;
int main() { llvm::errs() << sin(0.0) << "\n"; }