Skip to content

Commit 4431e8c

Browse files
committed
Use SYCL_EXTERNAL and remove main
Signed-off-by: Steffen Larsen <[email protected]>
1 parent 9f15813 commit 4431e8c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

sycl/test/basic_tests/free_function_queries/free_function_queries_interface.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ template <template <int, bool = true> class Item, int Dims> void test() {
5353
"Wrong return type of free function query for Item");
5454
}
5555

56-
void test_all() {
56+
SYCL_EXTERNAL void test_all() {
5757
test<sycl::id>(this_id_caller<1>{});
5858
test<sycl::id>(this_id_caller<2>{});
5959
test<sycl::id>(this_id_caller<3>{});
@@ -75,12 +75,3 @@ void test_all() {
7575
sycl::ext::oneapi::sub_group>::value,
7676
"Wrong return type of free function query for Sub Group");
7777
}
78-
79-
int main() {
80-
// Test on host.
81-
test_all();
82-
83-
// Test on device.
84-
sycl::queue Q;
85-
Q.single_task([]() { test_all(); });
86-
}

0 commit comments

Comments
 (0)