Set underlying type for enum class exec_tag to uint16_t (#233)

This change reduces size of exec_tag instance from 4 bytes to 2 bytes, it also
makes it more explicit what underlying type exec_tag is using.
This commit is contained in:
Oleksandr Pavlyk
2025-06-28 20:03:25 -05:00
committed by GitHub
parent 8e3e0ad117
commit c2a30cf0d2

View File

@@ -20,13 +20,15 @@
#include <nvbench/flags.cuh>
#include <cuda/std/cstdint>
#include <type_traits>
namespace nvbench::detail
{
// See the similarly named tags in nvbench::exec_tag:: for documentation.
enum class exec_flag
enum class exec_flag : ::cuda::std::uint16_t
{
none = 0x0,