src
DataFormats
PortableTestObjects
interface
alpaka
TestDeviceObject.h
Go to the documentation of this file.
1
#ifndef DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h
2
#define DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h
3
4
#include "
DataFormats/Portable/interface/alpaka/PortableObject.h
"
5
#include "
DataFormats/PortableTestObjects/interface/TestHostObject.h
"
6
#include "
DataFormats/PortableTestObjects/interface/TestStruct.h
"
7
#include "
HeterogeneousCore/AlpakaInterface/interface/config.h
"
8
9
namespace
ALPAKA_ACCELERATOR_NAMESPACE
{
10
11
namespace
portabletest
{
12
13
// make the names from the top-level portabletest namespace visible for unqualified lookup
14
// inside the ALPAKA_ACCELERATOR_NAMESPACE::portabletest namespace
15
using namespace
::
portabletest
;
16
17
// struct with x, y, z, id fields in device global memory
18
using
TestDeviceObject
=
PortableObject<TestStruct>
;
19
20
}
// namespace portabletest
21
22
}
// namespace ALPAKA_ACCELERATOR_NAMESPACE
23
24
// check that the portable device collection for the host device is the same as the portable host collection
25
ASSERT_DEVICE_MATCHES_HOST_COLLECTION
(
portabletest::TestDeviceObject
,
portabletest::TestHostObject
);
26
27
#endif // DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h
portabletest
Definition:
TestHostCollection.h:7
ASSERT_DEVICE_MATCHES_HOST_COLLECTION
#define ASSERT_DEVICE_MATCHES_HOST_COLLECTION(DEVICE_COLLECTION, HOST_COLLECTION)
Definition:
AssertDeviceMatchesHostCollection.h:18
ALPAKA_ACCELERATOR_NAMESPACE::PortableObject
::PortableObject< T, Device > PortableObject
Definition:
PortableObject.h:17
TestStruct.h
ALPAKA_ACCELERATOR_NAMESPACE
Definition:
SiPixelCablingSoAESProducer.cc:21
ALPAKA_ACCELERATOR_NAMESPACE::portabletest::TestDeviceObject
PortableObject< TestStruct > TestDeviceObject
Definition:
TestDeviceObject.h:18
PortableObject.h
PortableHostObject
Definition:
PortableHostObject.h:16
config.h
TestHostObject.h
Generated for CMSSW Reference Manual by
1.8.14