Skip to content

Commit 048e5d0

Browse files
committed
[SYCL][Test] Enable cmath lit test.
Signed-off-by: haonanya <[email protected]>
1 parent 88fc254 commit 048e5d0

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

sycl/test/devicelib/cmath_fp64_test.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl -c %s -o %t.o
33
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-cmath-fp64.o -o %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
47
#include <CL/sycl.hpp>
58
#include <cmath>
69
#include <iostream>

sycl/test/devicelib/cmath_test.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl -c %s -o %t.o
33
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-cmath.o -o %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
47
#include <CL/sycl.hpp>
58
#include <cmath>
69
#include <iostream>

sycl/test/devicelib/math_fp64_test.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl -c %s -o %t.o
33
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-cmath-fp64.o -o %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
47
#include <CL/sycl.hpp>
58
#include <iostream>
69
#include <math.h>

sycl/test/devicelib/math_override_test.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl -c %s -o %t.o
33
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-cmath.o -o %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
47
#include <CL/sycl.hpp>
58
#include <iostream>
69
#include <math.h>

sycl/test/devicelib/math_test.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl -c %s -o %t.o
33
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-cmath.o -o %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
5+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
47
#include <CL/sycl.hpp>
58
#include <iostream>
69
#include <math.h>

0 commit comments

Comments
 (0)