Skip to content

Commit

Permalink
Check CUDA_VERSION definition (openvinotoolkit#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkogteva authored Sep 15, 2023
1 parent e2d59c1 commit 57388ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/nvidia_plugin/src/cuda/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ catch (std::exception &e) {
}
#endif

#if CUDA_VERSION >= 12020
#if defined(CUDA_VERSION) && CUDA_VERSION >= 12020
cudaGraphExecUpdateResultInfo GraphExec::update(const Graph &g) const {
cudaGraphExecUpdateResultInfo res;
throwIfError(cudaGraphExecUpdate(get(), g.get(), &res));
Expand Down
2 changes: 1 addition & 1 deletion modules/nvidia_plugin/src/cuda/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class GraphExec : public Handle<cudaGraphExec_t> {
public:
GraphExec(const Graph& g);

#if CUDA_VERSION >= 12020
#if defined(CUDA_VERSION) && CUDA_VERSION >= 12020
cudaGraphExecUpdateResultInfo update(const Graph& g) const;
#else
cudaGraphExecUpdateResult update(const Graph& g) const;
Expand Down

0 comments on commit 57388ff

Please sign in to comment.