![]() |
|
|||
File indexing completed on 2025-02-22 10:31:32
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2023-2024 UT-Battelle, LLC, and other Celeritas developers. 0003 // See the top-level COPYRIGHT file for details. 0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0005 //---------------------------------------------------------------------------// 0006 //! \file celeritas/user/detail/SimpleCaloImpl.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "corecel/Macros.hh" 0011 #include "corecel/Types.hh" 0012 0013 #include "../SimpleCaloData.hh" 0014 #include "../StepData.hh" 0015 0016 namespace celeritas 0017 { 0018 namespace detail 0019 { 0020 //---------------------------------------------------------------------------// 0021 void simple_calo_accum(HostRef<StepStateData> const& step, 0022 HostRef<SimpleCaloStateData>& calo); 0023 0024 void simple_calo_accum(DeviceRef<StepStateData> const& step, 0025 DeviceRef<SimpleCaloStateData>& calo); 0026 0027 #if !CELER_USE_DEVICE 0028 inline void simple_calo_accum(DeviceRef<StepStateData> const&, 0029 DeviceRef<SimpleCaloStateData>&) 0030 { 0031 CELER_NOT_CONFIGURED("CUDA or HIP"); 0032 } 0033 #endif 0034 0035 //---------------------------------------------------------------------------// 0036 } // namespace detail 0037 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |