Skip to content

Commit d6aebea

Browse files
committed
[REFACTOR][RUNTIME][OPENCL] Fix missed texture.h include consumers
Four files outside of src/runtime/opencl/ referenced texture.h via its old path at src/runtime/texture.h. The move audit (commit 2) only checked for direct includees of opencl_common.h; these callers include texture.h directly and were not caught. Update the include path in all four files to src/runtime/opencl/texture.h: - src/relax/transform/static_plan_block_memory.cc - src/s_tir/backend/adreno/inject_texture_alloc.cc - src/s_tir/backend/adreno/texture_flatten.cc - src/target/opencl/codegen_opencl.cc
1 parent ebffd24 commit d6aebea

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/relax/transform/static_plan_block_memory.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#include <set>
7979
#include <vector>
8080

81-
#include "../../runtime/texture.h"
81+
#include "../../runtime/opencl/texture.h"
8282
#include "utils.h"
8383

8484
namespace tvm {

src/s_tir/backend/adreno/inject_texture_alloc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <tvm/tirx/stmt_functor.h>
2828

2929
#include "../../../arith/ir_mutator_with_analyzer.h"
30-
#include "../../../runtime/texture.h"
30+
#include "../../../runtime/opencl/texture.h"
3131
#include "../../../tirx/transform/ir_utils.h"
3232

3333
namespace tvm {

src/s_tir/backend/adreno/texture_flatten.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <unordered_map>
3434

3535
#include "../../../arith/ir_visitor_with_analyzer.h"
36-
#include "../../../runtime/texture.h"
36+
#include "../../../runtime/opencl/texture.h"
3737
#include "../../../runtime/thread_storage_scope.h"
3838

3939
namespace tvm {

src/target/opencl/codegen_opencl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <string>
3030
#include <vector>
3131

32-
#include "../../runtime/texture.h"
32+
#include "../../runtime/opencl/texture.h"
3333
#include "../../runtime/thread_storage_scope.h"
3434
#include "../build_common.h"
3535
#include "opencl_fallback_module.h"

0 commit comments

Comments
 (0)