Skip to content

Commit 5ed4c77

Browse files
Set underlying type for enum class exec_tag to uint16_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 5ed4c77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nvbench/exec_tag.cuh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020

2121
#include <nvbench/flags.cuh>
2222

23+
#include <cuda/std/cstdint>
24+
2325
#include <type_traits>
2426

2527
namespace nvbench::detail
2628
{
2729

2830
// See the similarly named tags in nvbench::exec_tag:: for documentation.
29-
enum class exec_flag
31+
enum class exec_flag : ::cuda::std::uint16_t
3032
{
3133
none = 0x0,
3234

0 commit comments

Comments
 (0)