Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-27 07:24:14

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 // Test include(s).
0012 #include "detray/test/device/device_fixture.hpp"
0013 
0014 // VecMem include(s).
0015 #include <vecmem/containers/vector.hpp>
0016 #include <vecmem/memory/sycl/shared_memory_resource.hpp>
0017 
0018 // GoogleTest include(s).
0019 #include <gtest/gtest.h>
0020 
0021 // SYCL include(s).
0022 #include <sycl/sycl.hpp>
0023 
0024 namespace detray::test::sycl {
0025 
0026 /// SYCL specific test fixture class
0027 template <class base_fixture_t>
0028 class sycl_test_fixture : public base_fixture_t {
0029  public:
0030   /// Constructor, setting up the inputs for all of the tests
0031   sycl_test_fixture() : base_fixture_t(m_resource) {}
0032 
0033  protected:
0034   /// Queue to be used by all of the tests.
0035   ::sycl::queue m_queue;
0036   /// Memory resource for all of the tests.
0037   vecmem::sycl::shared_memory_resource m_resource{&m_queue};
0038 };
0039 
0040 }  // namespace detray::test::sycl