Skip to content

Commit

Permalink
include->include/taichi
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Oct 10, 2019
1 parent 1e56ee8 commit d39e1f4
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lang/src/backends/cuda_context.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if defined(TLANG_WITH_CUDA)
#include <cuda.h>
#include "llvm_jit.h"
#include "context.h"
#include <taichi/context.h>

TLANG_NAMESPACE_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion lang/src/backends/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class KernelCodeGen : public CodeGenBase {
emit("#define TLANG_KERNEL\n");
if (prog->config.debug)
emit("#define TL_DEBUG");
emit("#include <kernel.h>\n");
emit("#include <taichi/kernel.h>\n");
emit("#include \"{}\"", prog->layout_fn);
emit("using namespace taichi; using namespace Tlang;");
}
Expand Down
2 changes: 1 addition & 1 deletion lang/src/backends/llvm_jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <cuda.h>
#endif
#include "llvm_jit.h"
#include "context.h"
#include <taichi/context.h>
#include "cuda_context.h"

TLANG_NAMESPACE_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion lang/src/backends/struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ StructCompiler::StructCompiler() : CodeGenBase(), loopgen(this) {
emit("#define TL_DEBUG");
}
emit("#define TL_HOST");
emit("#include <kernel.h>");
emit("#include <taichi/kernel.h>");
emit(" namespace taichi {{");
emit(" namespace Tlang {{");
emit("\n");
Expand Down
10 changes: 5 additions & 5 deletions lang/src/common.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "util.h"
#include "../include/common.h"
#include "../include/unified_allocator.h"
#include "../include/arithmetics.h"
#include "../include/struct.h"
#include "profiler.h"
#include <taichi/common.h>
#include <taichi/unified_allocator.h>
#include <taichi/arithmetics.h>
#include <taichi/struct.h>
#include <taichi/profiler.h>

TLANG_NAMESPACE_BEGIN

Expand Down
6 changes: 3 additions & 3 deletions lang/src/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#pragma once

#include "../include/context.h"
#include "../include/unified_allocator.h"
#include "../include/profiler.h"
#include <taichi/context.h>
#include <taichi/unified_allocator.h>
#include <taichi/profiler.h>
#include "util.h"
#include "snode.h"
#include "ir.h"
Expand Down
2 changes: 1 addition & 1 deletion lang/src/unified_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cuda_runtime.h>
#endif
#include "util.h"
#include "../include/unified_allocator.h"
#include <taichi/unified_allocator.h>
#include <taichi/system/virtual_memory.h>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion lang/src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma once
#include <taichi/common/util.h>
#include <taichi/io/io.h>
#include "../include/common.h"
#include <taichi/common.h>

TLANG_NAMESPACE_BEGIN

Expand Down

0 comments on commit d39e1f4

Please sign in to comment.