Make column name optional for non-templated throughput setters.

This commit is contained in:
Allison Vacanti
2021-03-17 19:21:42 -04:00
parent 9f6404bac6
commit d928b9a50f

View File

@@ -107,7 +107,7 @@ struct state
this->add_global_memory_reads(count * sizeof(ElementType),
std::move(column_name));
}
void add_global_memory_reads(std::size_t bytes, std::string column_name);
void add_global_memory_reads(std::size_t bytes, std::string column_name = {});
template <typename ElementType>
void add_global_memory_writes(std::size_t count, std::string column_name = {})
@@ -115,7 +115,8 @@ struct state
this->add_global_memory_writes(count * sizeof(ElementType),
std::move(column_name));
}
void add_global_memory_writes(std::size_t bytes, std::string column_name);
void add_global_memory_writes(std::size_t bytes,
std::string column_name = {});
void set_global_memory_rw_bytes(std::size_t bytes)
{