Skip to content

Commit

Permalink
[SYCLomatic #1855] Add test for device filtering
Browse files Browse the repository at this point in the history
Signed-off-by: Ziran Zhang <ziran.zhang@intel.com>
  • Loading branch information
ziranzha committed May 6, 2024
1 parent adf8934 commit 7fcd098
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions help_function/help_function.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,6 @@
<test testName="sparse_utils_4_buffer" configFile="config/TEMPLATE_help_function_sparse_buffer.xml" splitGroup="double" />
<test testName="sparse_utils_4_usm" configFile="config/TEMPLATE_help_function_sparse_usm.xml" splitGroup="double" />
<test testName="atomic_compare_exchange_strong" configFile="config/TEMPLATE_help_function.xml" />
<test testName="filter_device" configFile="config/TEMPLATE_help_function.xml" />
</tests>
</suite>
16 changes: 16 additions & 0 deletions help_function/src/filter_device.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ====------ fft_set_workspace.cpp ------------------------- *- C++ -* ----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// ===----------------------------------------------------------------------===//

#define DPCT_HELPER_VERBOSE

#include "dpct/dpct.hpp"

int main() {
dpct::filter_device({"CPU"});
dpct::list_devices();
}

0 comments on commit 7fcd098

Please sign in to comment.