Skip to content

Commit 755a55e

Browse files
author
Anurag Dixit
committed
Changes for review comments incorporated
Signed-off-by: Anurag Dixit <[email protected]>
1 parent 3df301e commit 755a55e

File tree

9 files changed

+156
-425
lines changed

9 files changed

+156
-425
lines changed

core/compiler.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
#include <cuda_runtime.h>
12
#include <iostream>
23
#include <memory>
34
#include <sstream>
45
#include <vector>
5-
#include <cuda_runtime.h>
66

77
#include <cuda_runtime.h>
88
#include "NvInfer.h"
@@ -48,7 +48,6 @@ void AddEngineToGraph(
4848
torch::jit::script::Module mod,
4949
std::shared_ptr<torch::jit::Graph>& g,
5050
std::string& serialized_engine) {
51-
5251
runtime::CudaDevice device;
5352

5453
// Read current CUDA device properties
@@ -184,7 +183,7 @@ torch::jit::script::Module CompileGraph(const torch::jit::script::Module& mod, C
184183
}
185184

186185
void set_device(const int gpu_id) {
187-
TRTORCH_CHECK((cudaSetDevice(gpu_id) == cudaSuccess), "Unable to set CUDA device: " << gpu_id);
186+
TRTORCH_CHECK((cudaSetDevice(gpu_id) == cudaSuccess), "Unable to set CUDA device: " << gpu_id);
188187
}
189188

190189
} // namespace core

core/compiler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ torch::jit::script::Module CompileGraph(const torch::jit::script::Module& module
2121

2222
void set_device(const int gpu_id);
2323

24-
void set_device(const int gpu_id);
25-
2624
} // namespace core
2725
} // namespace trtorch

core/execution/TRTEngine.cpp

Lines changed: 0 additions & 211 deletions
This file was deleted.

core/execution/execution.h

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)