Skip to content
Snippets Groups Projects
Commit 7a86cc8f authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Removing extraneous initTensorRt calls

parent 0de5fa72
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ void llvm_hpvm_initTensorRt(int gpuid){
if(!runtime_initialized){
printf("INITIALIZING TENSOR RUNTIME \n");
printf("INITIALIZING GPU %d \n", gpuid);
// NOTE: Setting the target GPU. Can we use multiple GPUs?
checkCudaErrors(cudaSetDevice(gpuid));
// Initializing cuDNN and cuBlas handles
......@@ -353,7 +353,7 @@ void printTensorDims2(void* tensor_ptr){
// Perhaps 3D, 2D tensors can be remapped to 4D tensors to make this work?
void* tensorAdd(void* x_ptr, void* bias_ptr){
llvm_hpvm_initTensorRt(0);
//llvm_hpvm_initTensorRt(0);
Tensor* x = (Tensor*) x_ptr;
Tensor* bias = (Tensor*) bias_ptr;
......@@ -413,7 +413,7 @@ void* tensorConvolution(void* input_ptr, void* filter_ptr,
int conv_mode, int conv_groups){
llvm_hpvm_initTensorRt(0);
//llvm_hpvm_initTensorRt(0);
INFO("*** TensorConvolution \n");
profileEvent("Conv");
......
hsharif3@tyler.cs.illinois.edu.16991:1541049775
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment