From 2621391dea4e82ddd33fe745b0a3aeed95c3d7a5 Mon Sep 17 00:00:00 2001 From: Ye Kuang Date: Thu, 27 Aug 2020 23:18:16 +0900 Subject: [PATCH] more fix.. --- taichi/backends/cuda/jit_cuda.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/taichi/backends/cuda/jit_cuda.cpp b/taichi/backends/cuda/jit_cuda.cpp index 71ddd99cc51f9..f80d89b47424e 100644 --- a/taichi/backends/cuda/jit_cuda.cpp +++ b/taichi/backends/cuda/jit_cuda.cpp @@ -18,10 +18,6 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h" -#define TI_RUNTIME_HOST -#include "taichi/program/context.h" -#undef TI_RUNTIME_HOST - #include "taichi/backends/cuda/cuda_context.h" #include "taichi/backends/cuda/cuda_driver.h" #include "taichi/jit/jit_session.h" @@ -30,6 +26,10 @@ #include "taichi/system/timer.h" #include "taichi/util/file_sequence_writer.h" +#define TI_RUNTIME_HOST +#include "taichi/program/context.h" +#undef TI_RUNTIME_HOST + TLANG_NAMESPACE_BEGIN #if defined(TI_WITH_CUDA)