Skip to content

Commit 0a317b9

Browse files
committed
review.
1 parent 7ea60f5 commit 0a317b9

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

cmake/utils/FindVulkan.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ macro(find_vulkan use_vulkan use_khronos_spirv)
8282

8383
else()
8484

85-
message(STATUS "__vulkan_sdk:- " ${__vulkan_sdk})
8685
if(__vulkan_sdk)
8786
set(Vulkan_INCLUDE_DIRS ${__vulkan_sdk}/include)
8887
find_library(Vulkan_LIBRARY NAMES vulkan vulkan-1 PATHS ${__vulkan_sdk}/lib)

src/runtime/vulkan/vulkan_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class VulkanStream {
117117
// Synchronize the current stream `state_` with respect to the host.
118118
void Synchronize();
119119

120-
VkCommandPool CommanPool() const { return cmd_pool_; }
120+
VkCommandPool CommandPool() const { return cmd_pool_; }
121121

122122
private:
123123
const VulkanDevice* device_;

src/runtime/vulkan/vulkan_timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class VulkanTimerNode : public TimerNode {
6767
*/
6868
int64_t SyncAndGetElapsedNanos() override;
6969

70-
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("runtime.opencl.VulkanTimerNode", VulkanTimerNode, TimerNode);
70+
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("runtime.vulkan.VulkanTimerNode", VulkanTimerNode, TimerNode);
7171

7272
private:
7373
Device dev_; ///< The TVM device being used.

src/runtime/vulkan/vulkan_wrapped_func.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void VulkanWrappedFunc::operator()(ffi::PackedArgs args, ffi::Any* rv,
151151

152152
if (device.UseDebugUtilsLabel()) {
153153
VkDebugUtilsLabelEXT dispatch_label = {VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT,
154-
NULL,
154+
nullptr,
155155
func_name_.c_str(),
156156
{0.0f, 0.0f, 0.0f, 0.0f}};
157157
device.queue_insert_debug_utils_label_functions->vkQueueInsertDebugUtilsLabelEXT(
@@ -235,7 +235,7 @@ void VulkanWrappedFunc::operator()(ffi::PackedArgs args, ffi::Any* rv,
235235

236236
if (device.UseDebugUtilsLabel()) {
237237
VkDebugUtilsLabelEXT dispatch_label = {VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT,
238-
NULL,
238+
nullptr,
239239
func_name_.c_str(),
240240
{0.0f, 0.0f, 0.0f, 0.0f}};
241241
device.queue_insert_debug_utils_label_functions->vkQueueInsertDebugUtilsLabelEXT(

0 commit comments

Comments
 (0)