[NFC][OpenMP][CUDA] Add test for using `-x cuda -fopenmp`
authorJoachim Meyer <joachim@joameyer.de>
Thu, 1 Jul 2021 23:24:29 +0000 (01:24 +0200)
committerJoachim Meyer <joachim@joameyer.de>
Fri, 2 Jul 2021 17:03:15 +0000 (19:03 +0200)
commit75e941b05c78e19c51e5c960c925f334b08109bb
tree1fe71e07c0981dab10f9dc4da00f1ea2c89da4e9
parent99f00635d7acf1cbcdba35e7621f3a211aa3f237
[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
26 files changed:
clang/test/Headers/Inputs/include/crt/device_double_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/crt/device_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/crt/device_runtime.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/crt/host_runtime.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/crt/math_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/crt/sm_70_rt.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/cstdlib
clang/test/Headers/Inputs/include/cuda.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/cuda_runtime.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/curand_mtgp32_kernel.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/device_atomic_functions.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/device_atomic_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/device_double_functions.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/driver_types.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/host_config.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/host_defines.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/math_functions_dbl_ptx3.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/new
clang/test/Headers/Inputs/include/sm_20_atomic_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/sm_20_intrinsics.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/sm_32_atomic_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/sm_60_atomic_functions.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/sm_61_intrinsics.hpp [new file with mode: 0644]
clang/test/Headers/Inputs/include/string.h [new file with mode: 0644]
clang/test/Headers/Inputs/include/texture_indirect_functions.h [new file with mode: 0644]
clang/test/Headers/cuda_with_openmp.cu [new file with mode: 0644]