| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// REQUIRES: nvptx-registered-target |
| 3 |
// |
| 4 |
// RUN: %clang -std=c++11 -fsyntax-only -target x86_64-linux -nocudainc -nocudalib --cuda-gpu-arch=sm_86 --cuda-device-only -S %s |
| 5 |
// RUN: %clang -std=c++11 -fsyntax-only -target x86_64-linux -nocudainc -nocudalib --cuda-gpu-arch=sm_86 --cuda-host-only -S %s |
| 6 |
|
| 7 |
// Define bare minimum required for parsing the header file. |
| 8 |
#include "Inputs/include/cuda.h" |
| 9 |
|
| 10 |
// The header file is expected to compile w/o errors. This ensures that texture |
| 11 |
// ID hash has no collisions for known texture operations, otherwise the |
| 12 |
// compilation would fail with an attempt to redefine a type. |
| 13 |
#include <__clang_cuda_texture_intrinsics.h> |