![]() |
|
|||
File indexing completed on 2025-02-22 10:31:30
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2020-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/random/detail/mockrand.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "corecel/Assert.hh" 0011 0012 namespace celeritas 0013 { 0014 namespace detail 0015 { 0016 //---------------------------------------------------------------------------// 0017 //! Placeholder for CUDA random state to allow compiling 0018 struct MockRandState 0019 { 0020 }; 0021 0022 //---------------------------------------------------------------------------// 0023 //!@{ 0024 //! Random functions with cuRAND-like interface. 0025 inline void mockrand_init(unsigned long long, 0026 unsigned long long, 0027 unsigned long long, 0028 MockRandState*) 0029 { 0030 CELER_NOT_CONFIGURED("CUDA or HIP"); 0031 } 0032 0033 inline unsigned int mockrand(MockRandState*) 0034 { 0035 CELER_NOT_CONFIGURED("CUDA or HIP"); 0036 } 0037 inline float mockrand_uniform(MockRandState*) 0038 { 0039 CELER_NOT_CONFIGURED("CUDA or HIP"); 0040 } 0041 0042 inline double mockrand_uniform_double(MockRandState*) 0043 { 0044 CELER_NOT_CONFIGURED("CUDA or HIP"); 0045 } 0046 //!@} 0047 0048 //---------------------------------------------------------------------------// 0049 } // namespace detail 0050 } // 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 |
![]() ![]() |