Skip to content

Commit 7ff2f71

Browse files
author
Wish
committed
change to cudaMalloc
1 parent a68ffed commit 7ff2f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensorRT/common/trt_tensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace TRT{
6666
release_gpu();
6767

6868
gpu_size_ = size;
69-
checkCudaRuntime(cudaMallocManaged(&gpu_, size));
69+
checkCudaRuntime(cudaMalloc(&gpu_, size));
7070
checkCudaRuntime(cudaMemset(gpu_, 0, size));
7171
}
7272
return gpu_;

0 commit comments

Comments
 (0)