QMCPACK
SYCLruntime.cpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2022 QMCPACK developers.
6 //
7 // File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #include <sycl/sycl.hpp>
13 #include "SYCLDeviceManager.h"
14 #include "SYCLruntime.hpp"
15 
16 namespace qmcplusplus
17 {
19 
21 {
23  sycl::property::queue::in_order());
24 }
25 
27 {
29 }
30 
32 {
33  auto device = getSYCLDefaultDeviceDefaultQueue().get_device();
34  if (device.has(sycl::aspect::ext_intel_free_memory))
35  return getSYCLDefaultDeviceDefaultQueue().get_device().get_info<sycl::ext::intel::info::device::free_memory>();
36  else
37  return 0;
38 }
39 } // namespace qmcplusplus
sycl::queue createSYCLInOrderQueueOnDefaultDevice()
create an in-order queue using the default device
Definition: SYCLruntime.cpp:20
sycl::queue & getSYCLDefaultDeviceDefaultQueue()
return a reference to the per-device default queue
Definition: SYCLruntime.cpp:18
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
sycl::queue createSYCLQueueOnDefaultDevice()
create a out-of-order queue using the default device
Definition: SYCLruntime.cpp:26
size_t getSYCLdeviceFreeMem()
query free memory on the default device
Definition: SYCLruntime.cpp:31
static sycl::queue & getDefaultDeviceDefaultQueue()
access the the DeviceManager owned default queue.