Skip to content

Commit

Permalink
change to cudaMalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Wish committed Sep 14, 2021
1 parent a68ffed commit 7ff2f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensorRT/common/trt_tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace TRT{
release_gpu();

gpu_size_ = size;
checkCudaRuntime(cudaMallocManaged(&gpu_, size));
checkCudaRuntime(cudaMalloc(&gpu_, size));
checkCudaRuntime(cudaMemset(gpu_, 0, size));
}
return gpu_;
Expand Down

0 comments on commit 7ff2f71

Please sign in to comment.