Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
9894ce1c
Commit
9894ce1c
authored
Jun 19, 2018
by
Daniel M. Weeks
Committed by
Tianqi Chen
Jun 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check common subdirs for vulkan/spirv headers (#1298)
parent
42b189cb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
cmake/util/FindVulkan.cmake
+5
-0
src/codegen/spirv/build_vulkan.cc
+1
-1
src/codegen/spirv/intrin_rule_spirv.cc
+1
-1
src/codegen/spirv/ir_builder.h
+1
-1
No files found.
cmake/util/FindVulkan.cmake
View file @
9894ce1c
...
...
@@ -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
)
src/codegen/spirv/build_vulkan.cc
View file @
9894ce1c
...
...
@@ -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>
...
...
src/codegen/spirv/intrin_rule_spirv.cc
View file @
9894ce1c
...
...
@@ -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
{
...
...
src/codegen/spirv/ir_builder.h
View file @
9894ce1c
...
...
@@ -15,7 +15,7 @@
#include <string>
#include <map>
#include <
vulkan/
spirv.hpp>
#include <spirv.hpp>
namespace
tvm
{
namespace
codegen
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment