Skip to content

Commit

Permalink
[Vulkan][Refactor] Split out vulkan.cc into separate distinct functio…
Browse files Browse the repository at this point in the history
…nality. (apache#8157)

This is in preparation for additional refactoring.  Functions are
organized according to group similar functionality together, to
minimize the amount of file-to-file transfers needed later.  The main
divisions are between VulkanDeviceAPI,
VulkanModuleNode/VulkanWrappedFunc, VulkanThreadEntry, and
VulkanContext.

Other than minimal renaming of private functions and addition of some
comments, this commit should have zero changes to the functions
definitions themselves, only to their arrangement within the
src/runtime/vulkan directory.

Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
  • Loading branch information
2 people authored and Trevor Morris committed Jun 17, 2021
1 parent 1a866a7 commit a29b87c
Show file tree
Hide file tree
Showing 17 changed files with 2,299 additions and 1,774 deletions.
2 changes: 1 addition & 1 deletion cmake/modules/Vulkan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if(USE_VULKAN)
endif()
include_directories(SYSTEM ${Vulkan_INCLUDE_DIRS})
message(STATUS "Build with Vulkan support")
file(GLOB RUNTIME_VULKAN_SRCS src/runtime/vulkan/vulkan.cc)
file(GLOB RUNTIME_VULKAN_SRCS src/runtime/vulkan/*.cc)
file(GLOB COMPILER_VULKAN_SRCS src/target/spirv/*.cc)
list(APPEND RUNTIME_SRCS ${RUNTIME_VULKAN_SRCS})
list(APPEND COMPILER_SRCS ${COMPILER_VULKAN_SRCS})
Expand Down
1 change: 1 addition & 0 deletions src/runtime/pack_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define TVM_RUNTIME_PACK_ARGS_H_

#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/packed_func.h>

#include <cstring>
#include <vector>
Expand Down
Loading

0 comments on commit a29b87c

Please sign in to comment.