Skip to content

Commit

Permalink
Fix TRTIS_ENABLE_GPU=OFF builds (#568)
Browse files Browse the repository at this point in the history
* fix #ifdef TRTIS_ENABLE_GPU logic in backend_context.cc
  • Loading branch information
dougn authored and deadeyegoodwin committed Aug 20, 2019
1 parent a2a24d6 commit 2cc2162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/backend_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ BackendContext::SetInputBuffer(
RequestStatusCode::INTERNAL,
"failed to use CUDA copy for input '" + name +
"': " + std::string(cudaGetErrorString(err)));
}
#else
payload.status_ = Status(
RequestStatusCode::INTERNAL,
"try to use CUDA copy for input '" + name +
"' while GPU is not supported"));
"' while GPU is not supported");
#endif // TRTIS_ENABLE_GPU
}
}
}
copied_byte_size += content_byte_size;
Expand Down

0 comments on commit 2cc2162

Please sign in to comment.