Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-07 09:59:25

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/user/detail/SimpleCaloImpl.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Macros.hh"
0010 #include "corecel/Types.hh"
0011 
0012 #include "../SimpleCaloData.hh"
0013 #include "../StepData.hh"
0014 
0015 namespace celeritas
0016 {
0017 namespace detail
0018 {
0019 //---------------------------------------------------------------------------//
0020 void simple_calo_accum(HostRef<StepStateData> const& step,
0021                        HostRef<SimpleCaloStateData>& calo);
0022 
0023 void simple_calo_accum(DeviceRef<StepStateData> const& step,
0024                        DeviceRef<SimpleCaloStateData>& calo);
0025 
0026 #if !CELER_USE_DEVICE
0027 inline void simple_calo_accum(DeviceRef<StepStateData> const&,
0028                               DeviceRef<SimpleCaloStateData>&)
0029 {
0030     CELER_NOT_CONFIGURED("CUDA or HIP");
0031 }
0032 #endif
0033 
0034 //---------------------------------------------------------------------------//
0035 }  // namespace detail
0036 }  // namespace celeritas