Skip to content

Commit 4014d83

Browse files
authored
clang: Remove unnecessary host-supports-cuda from test (#171174)
1 parent eecce16 commit 4014d83

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/lib/Headers/__clang_cuda_runtime_wrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
// Include some standard headers to avoid CUDA headers including them
4040
// while some required macros (like __THROW) are in a weird state.
41+
#include <climits>
4142
#include <cmath>
4243
#include <cstdlib>
4344
#include <stdlib.h>

clang/test/Headers/cuda_with_openmp.cu

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Reported in https://bugs.llvm.org/show_bug.cgi?id=48014
33
///==========================================================================///
44

5-
// REQUIRES: nvptx-registered-target, host-supports-cuda
5+
// REQUIRES: nvptx-registered-target
66

7-
// RUN: %clang -x cuda -fopenmp -c %s -o - --cuda-path=%S/../Driver/Inputs/CUDA/usr/local/cuda -nocudalib -isystem %S/Inputs/include -isystem %S/../../lib/Headers -fsyntax-only
7+
// RUN: %if x86-registered-target %{ %clang -target x86_64-unknown-linux -x cuda -fopenmp -c %s -o - --cuda-path=%S/../Driver/Inputs/CUDA/usr/local/cuda -nocudalib -isystem %S/Inputs/include -isystem %S/../../lib/Headers -fsyntax-only %}
8+
// RUN: %if systemz-registered-target %{ %clang -target s390x-ibm-zos -x cuda -fopenmp -c %s -o - --cuda-path=%S/../Driver/Inputs/CUDA/usr/local/cuda -nocudalib -isystem %S/Inputs/include -isystem %S/../../lib/Headers -fsyntax-only %}
89

0 commit comments

Comments
 (0)