changing pool size from log2 to bytes

This commit is contained in:
Evgeny
2019-02-04 17:57:16 -06:00
orang tua 940fe8e14f
melakukan 2b0452fd5f
3 mengubah file dengan 3 tambahan dan 5 penghapusan
+1 -3
Melihat File
@@ -152,8 +152,7 @@ class MemoryPool {
}
// Pool definition
buffer_size_shift_ = properties.buffer_size;
buffer_size_ = 1 << buffer_size_shift_;
buffer_size_ = properties.buffer_size;
const size_t pool_size = 2 * buffer_size_;
pool_begin_ = NULL;
alloc_fun_(&pool_begin_, pool_size, alloc_arg_);
@@ -272,7 +271,6 @@ class MemoryPool {
void* alloc_arg_;
// Pool definition
size_t buffer_size_shift_;
size_t buffer_size_;
char* pool_begin_;
char* pool_end_;
@@ -247,7 +247,7 @@ void init_tracing() {
std::cout << "# START #############################" << std::endl << std::flush;
// Allocating tracing pool
roctracer_properties_t properties{};
properties.buffer_size = 12;
properties.buffer_size = 0x1000;
properties.buffer_callback_fun = activity_callback;
ROCTRACER_CALL(roctracer_open_pool(&properties));
}
+1 -1
Melihat File
@@ -329,7 +329,7 @@ extern "C" PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version,
printf(" HIP-trace()\n");
// Allocating tracing pool
roctracer_properties_t properties{};
properties.buffer_size = 12;
properties.buffer_size = 0x1000;
properties.buffer_callback_fun = hcc_activity_callback;
ROCTRACER_CALL(roctracer_open_pool(&properties));
ROCTRACER_CALL(roctracer_enable_domain_activity(ACTIVITY_DOMAIN_HCC_OPS));