Files
clang-p2996/clang/test/Headers/Inputs/include/crt/math_functions.hpp
Joachim Meyer 75e941b05c [NFC][OpenMP][CUDA] Add test for using -x cuda -fopenmp
This adds a very basic test in `cuda_with_openmp.cu` that just checks whether the CUDA & OpenMP integrated headers do compile, when a CUDA file is compiled with OpenMP (CPU) enabled.
Thus this basically adds the missing test for https://reviews.llvm.org/D90415.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D105322
2021-07-02 19:03:15 +02:00

13 lines
592 B
C++

// required for __clang_cuda_runtime_wrapper.h tests
#pragma once
__device__ int __isinff(float);
__device__ int __isinf(double);
__device__ int __finitef(float);
__device__ int __isfinited(double);
__device__ int __isnanf(float);
__device__ int __isnan(double);
__device__ int __signbitf(float);
__device__ int __signbitd(double);
__device__ double max(double, double);
__device__ float max(float, float);