Browse Source

Update async.cpp

main
PatricZhao 3 years ago
committed by GitHub
parent
commit
da4f0d124c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      code/async.cpp

+ 2
- 4
code/async.cpp View File

@ -1,6 +1,4 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: MIT
// Patric Zhao, patric.zhao@intel.com
#include <CL/sycl.hpp> #include <CL/sycl.hpp>
#include <iostream> #include <iostream>
@ -11,7 +9,7 @@
int main() { int main() {
// Enable queue profiling // Enable queue profiling
queue my_gpu_queue(gpu_selector{}, cl::sycl::property::queue::in_order());
queue my_gpu_queue(gpu_selector{});
std::cout << "Selected GPU device: " << std::cout << "Selected GPU device: " <<
my_gpu_queue.get_device().get_info<info::device::name>() << "\n"; my_gpu_queue.get_device().get_info<info::device::name>() << "\n";

Loading…
Cancel
Save