Skip to content

Commit a0b119b

Browse files
Set underlying class for enum class exec_tag to uint16_t, rather than default uint32_t
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.
1 parent b1551d2 commit a0b119b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nvbench/exec_tag.cuh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#pragma once
2020

21+
#include <cuda/std/cstdint>
2122
#include <nvbench/flags.cuh>
2223

2324
#include <type_traits>
@@ -26,7 +27,7 @@ namespace nvbench::detail
2627
{
2728

2829
// See the similarly named tags in nvbench::exec_tag:: for documentation.
29-
enum class exec_flag
30+
enum class exec_flag : ::cuda::std::uint16_t
3031
{
3132
none = 0x0,
3233

0 commit comments

Comments
 (0)