|
@ -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"; |
|
|