|
||||
File indexing completed on 2025-01-18 09:54:50
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 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 corecel/sys/KernelTraits.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "detail/KernelTraitsImpl.hh" 0011 0012 namespace celeritas 0013 { 0014 //---------------------------------------------------------------------------// 0015 //! Predicates used for \c __launch_bounds__ arguments 0016 template<typename T> 0017 inline constexpr bool kernel_no_bound 0018 = !detail::has_max_block_size_v<T> && !detail::has_min_warps_per_eu_v<T>; 0019 0020 template<typename T> 0021 inline constexpr bool kernel_max_blocks 0022 = detail::has_max_block_size_v<T> && !detail::has_min_warps_per_eu_v<T>; 0023 0024 template<typename T> 0025 inline constexpr bool kernel_max_blocks_min_warps 0026 = detail::has_max_block_size_v<T> && detail::has_min_warps_per_eu_v<T>; 0027 0028 //---------------------------------------------------------------------------// 0029 } // 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 |