Skip to content

Commit

Permalink
Use cached CPU heap for alloc_host memory
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianWildgrube committed Jan 23, 2024
1 parent 5666f52 commit 1b662df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pal_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void* PALPlatform::alloc(DeviceId dev, int64_t size) {

void* PALPlatform::alloc_host(DeviceId dev, int64_t size) {
auto& device = devices_[dev];
return reinterpret_cast<void*>(device.allocate_gpu_memory(size, Pal::GpuHeap::GpuHeapGartUswc));
return reinterpret_cast<void*>(device.allocate_gpu_memory(size, Pal::GpuHeap::GpuHeapGartCacheable));
}

void* PALPlatform::alloc_unified(DeviceId dev, int64_t size) {
Expand Down

0 comments on commit 1b662df

Please sign in to comment.