Back to home page

EIC code displayed by LXR

 
 

    


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

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/sys/KernelTraits.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "detail/KernelTraitsImpl.hh"
0010 
0011 namespace celeritas
0012 {
0013 //---------------------------------------------------------------------------//
0014 //! Predicates used for \c __launch_bounds__ arguments
0015 template<typename T>
0016 inline constexpr bool kernel_no_bound
0017     = !detail::has_max_block_size_v<T> && !detail::has_min_warps_per_eu_v<T>;
0018 
0019 template<typename T>
0020 inline constexpr bool kernel_max_blocks
0021     = detail::has_max_block_size_v<T> && !detail::has_min_warps_per_eu_v<T>;
0022 
0023 template<typename T>
0024 inline constexpr bool kernel_max_blocks_min_warps
0025     = detail::has_max_block_size_v<T> && detail::has_min_warps_per_eu_v<T>;
0026 
0027 //---------------------------------------------------------------------------//
0028 }  // namespace celeritas