Skip to content

Commit

Permalink
Fixed an include guard in graph/instance.hpp which was enabling an …
Browse files Browse the repository at this point in the history
…unused parameter in CUDA 11.0 - 11.3.x
  • Loading branch information
eyalroz committed Sep 22, 2024
1 parent 48072a2 commit 20a03b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cuda/api/graph/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ void set_node_parameters(

inline instance_t instantiate(
const template_t& template_
#if CUDA_VERSION >= 11000
#if CUDA_VERSION >= 11040
, bool free_previous_allocations_before_relaunch = false
#endif
#if CUDA_VERSION >= 12000
Expand Down
2 changes: 1 addition & 1 deletion src/cuda/api/multi_wrapper_impls/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ inline instance_t template_t::instantiate(
{
return graph::instantiate(
*this
#if CUDA_VERSION >= 11000
#if CUDA_VERSION >= 11040
, free_previous_allocations_before_relaunch
#endif
#if CUDA_VERSION >= 11700
Expand Down

0 comments on commit 20a03b5

Please sign in to comment.