File indexing completed on 2024-09-07 04:38:05
0001 #include <cstdlib>
0002 #include <iostream>
0003
0004 #include "FWCore/Utilities/interface/stringize.h"
0005 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0006 #include "HeterogeneousCore/AlpakaInterface/interface/devices.h"
0007
0008 #include "VertexFinder_t.h"
0009
0010 using namespace ALPAKA_ACCELERATOR_NAMESPACE;
0011
0012 int main() {
0013
0014 auto const& devices = cms::alpakatools::devices<Platform>();
0015 if (devices.empty()) {
0016 std::cerr << "No devices available for the " EDM_STRINGIZE(ALPAKA_ACCELERATOR_NAMESPACE) " backend, "
0017 "the test will be skipped.\n";
0018 exit(EXIT_FAILURE);
0019 }
0020
0021
0022 for (auto const& device : devices) {
0023 Queue queue(device);
0024 vertexfinder_t::runKernels(queue);
0025 }
0026
0027 return EXIT_SUCCESS;
0028 }