Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:09:05

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/global/detail/TrackSlotUtils.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Assert.hh"
0010 #include "corecel/Macros.hh"
0011 #include "corecel/Types.hh"
0012 #include "corecel/data/Collection.hh"
0013 #include "corecel/sys/ThreadId.hh"
0014 
0015 namespace celeritas
0016 {
0017 namespace detail
0018 {
0019 //---------------------------------------------------------------------------//
0020 // Shuffle track slot indices
0021 void shuffle_track_slots(
0022     Collection<TrackSlotId::size_type, Ownership::value, MemSpace::host, ThreadId>*,
0023     StreamId);
0024 void shuffle_track_slots(
0025     Collection<TrackSlotId::size_type, Ownership::value, MemSpace::device, ThreadId>*,
0026     StreamId);
0027 
0028 //---------------------------------------------------------------------------//
0029 // INLINE DEFINITIONS
0030 //---------------------------------------------------------------------------//
0031 #if !CELER_USE_DEVICE
0032 inline void shuffle_track_slots(
0033     Collection<TrackSlotId::size_type, Ownership::value, MemSpace::device, ThreadId>*,
0034     StreamId)
0035 {
0036     CELER_NOT_CONFIGURED("CUDA or HIP");
0037 }
0038 #endif
0039 //---------------------------------------------------------------------------//
0040 }  // namespace detail
0041 }  // namespace celeritas