alpaka
Abstraction Library for Parallel Kernel Acceleration
PlatformCpuSycl.hpp
Go to the documentation of this file.
1
/* Copyright 2024 Jan Stephan, Luca Ferragina, Andrea Bocci, Aurora Perego
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/dev/DevGenericSycl.hpp
"
8
#include "
alpaka/dev/Traits.hpp
"
9
#include "
alpaka/platform/PlatformGenericSycl.hpp
"
10
11
#if defined(ALPAKA_ACC_SYCL_ENABLED) && defined(ALPAKA_SYCL_ONEAPI_CPU)
12
13
# include <sycl/sycl.hpp>
14
15
namespace
alpaka
16
{
17
namespace
detail
18
{
19
template
<>
20
struct
SYCLDeviceSelector<TagCpuSycl>
21
{
22
auto
operator()(sycl::device
const
& dev)
const
->
int
23
{
24
return
dev.is_cpu() ? 1 : -1;
25
}
26
};
27
}
// namespace detail
28
29
//! The SYCL device manager.
30
using
PlatformCpuSycl = PlatformGenericSycl<TagCpuSycl>;
31
}
// namespace alpaka
32
33
#endif
DevGenericSycl.hpp
PlatformGenericSycl.hpp
Traits.hpp
alpaka
The alpaka accelerator library.
Definition:
AccCpuOmp2Blocks.hpp:49
include
alpaka
platform
PlatformCpuSycl.hpp
Generated on Thu Dec 12 2024 11:51:45 for alpaka by
1.9.1