Commit 9894ce1c by Daniel M. Weeks Committed by Tianqi Chen

Check common subdirs for vulkan/spirv headers (#1298)

parent 42b189cb
......@@ -46,5 +46,10 @@ macro(find_vulkan use_vulkan)
get_filename_component(VULKAN_LIBRARY_PATH ${Vulkan_LIBRARY} DIRECTORY)
find_library(Vulkan_SPIRV_TOOLS_LIBRARY SPIRV-Tools
${VULKAN_LIBRARY_PATH}/spirv-tools)
find_path(_libspirv libspirv.h HINTS ${Vulkan_INCLUDE_DIRS} PATH_SUFFIXES vulkan spirv-tools)
find_path(_spirv spirv.hpp HINTS ${Vulkan_INCLUDE_DIRS} PATH_SUFFIXES vulkan spirv/unified1)
find_path(_glsl_std GLSL.std.450.h HINTS ${Vulkan_INCLUDE_DIRS} PATH_SUFFIXES vulkan spirv/unified1)
list(APPEND Vulkan_INCLUDE_DIRS ${_libspirv} ${_spirv} ${_glsl_std})
endif(Vulkan_FOUND)
endmacro(find_vulkan)
......@@ -4,7 +4,7 @@
* \brief Build SPIRV block
*/
// Use libspirv for parsing and validating code.
#include <vulkan/libspirv.h>
#include <libspirv.h>
#include <dmlc/memory_io.h>
#include <tvm/ir_pass.h>
......
......@@ -4,7 +4,7 @@
*/
#include <tvm/packed_func_ext.h>
#include <tvm/ir.h>
#include <vulkan/GLSL.std.450.h>
#include <GLSL.std.450.h>
namespace tvm {
namespace codegen {
......
......@@ -15,7 +15,7 @@
#include <string>
#include <map>
#include <vulkan/spirv.hpp>
#include <spirv.hpp>
namespace tvm {
namespace codegen {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment