Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit c231a9a

Browse files
[SYCL] Test info::device::local_mem_type (intel#1681)
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
1 parent 48c0dbb commit c231a9a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

SYCL/Basic/local_mem_type.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
//==--------------- local_mem_type.cpp - SYCL local mem type test ----------==//
4+
//
5+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6+
// See https://llvm.org/LICENSE.txt for license information.
7+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
//
9+
//===----------------------------------------------------------------------===//
10+
11+
#include <sycl/sycl.hpp>
12+
using namespace sycl;
13+
14+
int main() {
15+
assert(device().get_info<info::device::local_mem_type>() !=
16+
info::local_mem_type::none);
17+
}

0 commit comments

Comments
 (0)