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