We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3899d commit 6fd05efCopy full SHA for 6fd05ef
plugin_execution_providers/tensorrt/cuda_allocator.cc
@@ -20,8 +20,6 @@ void CUDAAllocator::CheckDevice(bool throw_when_fail) const {
20
} else if (throw_when_fail) {
21
CUDA_RETURN_IF_ERROR(cuda_err);
22
}
23
-#else
24
-// ORT_UNUSED_PARAMETER(throw_when_fail);
25
#endif
26
27
@@ -45,7 +43,6 @@ void* CUDAAllocator::Alloc(size_t size) {
45
43
CheckDevice(true);
46
44
void* p = nullptr;
47
if (size > 0) {
48
- // BFCArena was updated recently to handle the exception and adjust the request size
49
CUDA_RETURN_IF_ERROR(cudaMalloc((void**)&p, size));
50
51
return p;
0 commit comments