/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/PortableTestObjects/interface/alpaka/TestDeviceObject.h
27 строк
1 KB
adriano
Implement PortableObject types
22 ноя 2023, 10:58
Не верифицирован
22 ноя 2023, 10:58
91235b5
Код
Авторство
О чём код?
#ifndef DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h #define DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h #include "DataFormats/Portable/interface/alpaka/PortableObject.h" #include "DataFormats/PortableTestObjects/interface/TestHostObject.h" #include "DataFormats/PortableTestObjects/interface/TestStruct.h" #include "HeterogeneousCore/AlpakaInterface/interface/config.h" namespace ALPAKA_ACCELERATOR_NAMESPACE { namespace portabletest { // make the names from the top-level portabletest namespace visible for unqualified lookup // inside the ALPAKA_ACCELERATOR_NAMESPACE::portabletest namespace using namespace ::portabletest; // struct with x, y, z, id fields in device global memory using TestDeviceObject = PortableObject<TestStruct>; } // namespace portabletest } // namespace ALPAKA_ACCELERATOR_NAMESPACE // check that the portable device collection for the host device is the same as the portable host collection ASSERT_DEVICE_MATCHES_HOST_COLLECTION(portabletest::TestDeviceObject, portabletest::TestHostObject); #endif // DataFormats_PortableTestObjects_interface_alpaka_TestDeviceObject_h