src
HeterogeneousCore
AlpakaTest
src
alpaka
printAnswer.cc
Go to the documentation of this file.
1
#include "
HeterogeneousCore/AlpakaInterface/interface/config.h
"
2
#include "
HeterogeneousCore/AlpakaTest/interface/HostOnlyType.h
"
3
#include "
HeterogeneousCore/AlpakaTest/interface/alpaka/printAnswer.h
"
4
5
namespace
ALPAKA_ACCELERATOR_NAMESPACE::alpakatest
{
6
using namespace
::
alpakatest
;
7
8
// A simple function to demonstarte the dependency on host-only types from alpaka libraries
9
void
printAnswer
() {
10
HostOnlyType answer(42);
11
answer.print();
12
}
13
14
}
// namespace ALPAKA_ACCELERATOR_NAMESPACE::alpakatest
printAnswer.h
alpakatest
Definition:
HostOnlyType.h:4
ALPAKA_ACCELERATOR_NAMESPACE::alpakatest::printAnswer
void printAnswer()
Definition:
printAnswer.cc:9
HostOnlyType.h
ALPAKA_ACCELERATOR_NAMESPACE::alpakatest
Definition:
printAnswer.h:6
config.h
Generated for CMSSW Reference Manual by
1.8.14