diff options
Diffstat (limited to 'src/compute/skc/allocator_host.c')
-rw-r--r-- | src/compute/skc/allocator_host.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compute/skc/allocator_host.c b/src/compute/skc/allocator_host.c index dbdcba0f51..0d7cbca9e4 100644 --- a/src/compute/skc/allocator_host.c +++ b/src/compute/skc/allocator_host.c @@ -33,7 +33,7 @@ // void * -skc_runtime_host_perm_alloc(struct skc_runtime * const runtime, +skc_runtime_host_perm_alloc(struct skc_runtime * const runtime, skc_mem_flags_e const flags, size_t const size) { @@ -42,7 +42,7 @@ skc_runtime_host_perm_alloc(struct skc_runtime * const runtime, } void -skc_runtime_host_perm_free(struct skc_runtime * const runtime, +skc_runtime_host_perm_free(struct skc_runtime * const runtime, void * const mem) { SKC_ALIGNED_FREE(mem); @@ -65,11 +65,11 @@ skc_runtime_host_temp_alloc(struct skc_runtime * const runtime, if (subbuf_size != NULL) *subbuf_size = 0; - + return NULL; } - return runtime->allocator.host.temp.extent + + return runtime->allocator.host.temp.extent + skc_suballocator_subbuf_alloc(&runtime->allocator.host.temp.suballocator, runtime->scheduler, size,subbuf_id,subbuf_size); @@ -101,7 +101,7 @@ skc_allocator_host_create(struct skc_runtime * const runtime) SKC_RUNTIME_HOST_CACHELINE_SIZE, runtime->config->suballocator.host.size); - runtime->allocator.host.temp.extent = + runtime->allocator.host.temp.extent = skc_runtime_host_perm_alloc(runtime, SKC_MEM_FLAGS_READ_WRITE, runtime->config->suballocator.host.size); |