Skip to content

Commit d184db2

Browse files
committed
enable device lib test for gpu device
Signed-off-by: gejin <[email protected]>
1 parent f562cdf commit d184db2

8 files changed

+16
-4
lines changed

sycl/test/devicelib/cmath_fp64_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// UNSUPPORTED: windows
2+
// REQUIRES: cpu, gpu, accelerator
23
// RUN: %clangxx -fsycl -fsycl-device-lib=libm-fp64 %s -o %t.out
34
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %CPU_RUN_PLACEHOLDER %t.out
57
// RUN: %ACC_RUN_PLACEHOLDER %t.out
68
#include <CL/sycl.hpp>

sycl/test/devicelib/cmath_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// UNSUPPORTED: windows
2+
// REQUIRES: cpu, gpu, accelerator
23
// RUN: %clangxx -fsycl %s -o %t.out
34
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %CPU_RUN_PLACEHOLDER %t.out
57
// RUN: %ACC_RUN_PLACEHOLDER %t.out
68
#include <CL/sycl.hpp>

sycl/test/devicelib/math_fp64_test.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// REQUIRES: cpu, linux
1+
// REQUIRES: cpu, gpu, accelerator, linux
22
// RUN: %clangxx -fsycl -fsycl-device-lib=libm-fp64 %s -o %t.out
33
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %CPU_RUN_PLACEHOLDER %t.out
56
// RUN: %ACC_RUN_PLACEHOLDER %t.out
67
#include "math_utils.hpp"

sycl/test/devicelib/math_fp64_windows_test.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// REQUIRES: cpu, windows
1+
// REQUIRES: cpu, gpu, accelerator, windows
22
// RUN: %clangxx -fsycl -fsycl-device-lib=libm-fp64 %s -o %t.out
33
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %CPU_RUN_PLACEHOLDER %t.out
56
// RUN: %ACC_RUN_PLACEHOLDER %t.out
67
#include "math_utils.hpp"

sycl/test/devicelib/math_test.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// REQUIRES: cpu, linux
1+
// REQUIRES: cpu, gpu, accelerator, linux
22
// RUN: %clangxx -fsycl %s -o %t.out
33
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %CPU_RUN_PLACEHOLDER %t.out
56
// RUN: %ACC_RUN_PLACEHOLDER %t.out
67
#include "math_utils.hpp"

sycl/test/devicelib/math_windows_test.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// REQUIRES: cpu, windows
1+
// REQUIRES: cpu, gpu, windows, accelerator
22
// RUN: %clangxx -fsycl %s -o %t.out
33
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %CPU_RUN_PLACEHOLDER %t.out
56
// RUN: %ACC_RUN_PLACEHOLDER %t.out
67
#include "math_utils.hpp"

sycl/test/devicelib/std_complex_math_fp64_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// UNSUPPORTED: windows
2+
// REQUIRES: cpu, gpu, accelerator
23
// RUN: %clangxx -fsycl -fsycl-device-lib=libm-fp64 %s -o %t.out
34
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %CPU_RUN_PLACEHOLDER %t.out
57
// RUN: %ACC_RUN_PLACEHOLDER %t.out
68

sycl/test/devicelib/std_complex_math_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// UNSUPPORTED: windows
2+
// REQUIRES: cpu, gpu, accelerator
23
// RUN: %clangxx -fsycl %s -o %t.out
34
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %CPU_RUN_PLACEHOLDER %t.out
57
// RUN: %ACC_RUN_PLACEHOLDER %t.out
68

0 commit comments

Comments
 (0)