Skip to content

Commit

Permalink
Formatting pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Gerstmann committed Dec 3, 2024
1 parent 4660552 commit e040eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/runtime/vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ WEAK int halide_vulkan_release_unused_device_allocations(void *user_context) {

WEAK void halide_vulkan_release_all() {
debug(nullptr) << "halide_vulkan_release_all()\n";
if(halide_vulkan_is_initialized()) {
if (halide_vulkan_is_initialized()) {
halide_vulkan_device_release(nullptr);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/vulkan_resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -1693,10 +1693,10 @@ int vk_destroy_shader_modules(void *user_context, VulkanMemoryAllocator *allocat
#ifdef DEBUG_RUNTIME
uint64_t t_before = halide_current_time_ns(user_context);
#endif
if(allocator != nullptr) {
if (allocator != nullptr) {
compilation_cache.delete_context(user_context, allocator->current_device(), vk_destroy_compilation_cache_entry);
}

#ifdef DEBUG_RUNTIME
uint64_t t_after = halide_current_time_ns(user_context);
debug(user_context) << " Time: " << (t_after - t_before) / 1.0e6 << " ms\n";
Expand Down

0 comments on commit e040eeb

Please sign in to comment.