14 lines · plain
1// REQUIRES: x86-registered-target2// REQUIRES: nvptx-registered-target3//4// RUN: %clang -std=c++11 -fsyntax-only -target x86_64-linux -nocudainc -nocudalib --cuda-gpu-arch=sm_86 --cuda-device-only -S %s5// RUN: %clang -std=c++11 -fsyntax-only -target x86_64-linux -nocudainc -nocudalib --cuda-gpu-arch=sm_86 --cuda-host-only -S %s6 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 texture11// ID hash has no collisions for known texture operations, otherwise the12// compilation would fail with an attempt to redefine a type.13#include <__clang_cuda_texture_intrinsics.h>14