You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
288 B

3 years ago
  1. // Patric Zhao: patric.zhao@intel.com
  2. #include <CL/sycl.hpp>
  3. #include <iostream>
  4. using namespace sycl;
  5. int main() {
  6. queue my_gpu_queue( gpu_selector{} );
  7. std::cout << "Selected GPU device: " <<
  8. my_gpu_queue.get_device().get_info<info::device::name>() << "\n";
  9. return 0;
  10. }